commit 7646f6073db167968e96639e951dd23ad4cf29aa20cb409bbd3ce835579e8401 Author: OBS User mrdocs Date: Fri Dec 30 02:46:04 2016 +0000 Accepting request 447853 from home:sebix OBS-URL: https://build.opensuse.org/request/show/447853 OBS-URL: https://build.opensuse.org/package/show/utilities/hollywood?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/718960725551c64a2419aab9bd8b60ee0b95b762.zip b/718960725551c64a2419aab9bd8b60ee0b95b762.zip new file mode 100644 index 0000000..9742d3b --- /dev/null +++ b/718960725551c64a2419aab9bd8b60ee0b95b762.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:92a8fb9d018a9ff43dee5194b9d4c8c6842b68675e46619dc97e8b5e8a1d3189 +size 3478896 diff --git a/_service b/_service new file mode 100644 index 0000000..4052832 --- /dev/null +++ b/_service @@ -0,0 +1,12 @@ + + + https + github.com + /dustinkirkland/hollywood/archive/718960725551c64a2419aab9bd8b60ee0b95b762.zip + + + _service:download_url:718960725551c64a2419aab9bd8b60ee0b95b762.zip + sha256 + 92a8fb9d018a9ff43dee5194b9d4c8c6842b68675e46619dc97e8b5e8a1d3189 + + \ No newline at end of file diff --git a/_service:download_url:718960725551c64a2419aab9bd8b60ee0b95b762.zip b/_service:download_url:718960725551c64a2419aab9bd8b60ee0b95b762.zip new file mode 100644 index 0000000..9742d3b --- /dev/null +++ b/_service:download_url:718960725551c64a2419aab9bd8b60ee0b95b762.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:92a8fb9d018a9ff43dee5194b9d4c8c6842b68675e46619dc97e8b5e8a1d3189 +size 3478896 diff --git a/hollywood.changes b/hollywood.changes new file mode 100644 index 0000000..4e337d4 --- /dev/null +++ b/hollywood.changes @@ -0,0 +1,6 @@ +------------------------------------------------------------------- +Mon Dec 26 21:31:29 UTC 2016 - sebix+novell.com@sebix.at + +- initial package +- use tmux-version-comp.patch to patch version comparison with dpkg + diff --git a/hollywood.spec b/hollywood.spec new file mode 100644 index 0000000..65701f4 --- /dev/null +++ b/hollywood.spec @@ -0,0 +1,101 @@ +# +# spec file for package hollywood +# +# Copyright (c) 2016 Sebastian Wagner +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# +%define commit 718960725551c64a2419aab9bd8b60ee0b95b762 + +Name: hollywood +Version: 1.12 +Release: 0 +License: Apache-2.0 +# TOOD: share/hollywood/mi.mp4 is CC0-1.0 +Summary: Fill your console with Hollywood melodrama technobabble +Url: http://launchpad.net/hollywood +Group: Applications/Other +Source: https://github.com/dustinkirkland/hollywood/archive/%commit.zip +Patch0: tmux-version-comp.patch +BuildRequires: unzip +#Requires: byobu +#Requires: apg +Requires: bmon +Requires: bsdmainutils +Requires: coreutils +Requires: ccze +Requires: cmatrix +Requires: htop +Requires: jp2a +Requires: mlocate +Requires: moreutils +Requires: mplayer +Requires: openssh-client +Requires: speedometer +Requires: tmux +Requires: tree +Requires: vim +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildArch: noarch + +%package -n wallstreet +Summary: Fill your console with Wall Street-like news and stats +#Requires: byobu +Requires: caca-utils +Requires: newsbeuter +Requires: perl-base +Requires: python3-minimal +Requires: rsstail +Requires: ticker +Requires: wget +Requires: w3m + +%description +This utility will split your console into a multiple panes of genuine +technobabble, perfectly suitable for any Hollywood geek melodrama. +It is particularly suitable on any number of computer consoles in the +background of any excellent schlock technothriller. + +%description -n wallstreet +This utility will split your console into a multiple panes of news +and statistics, like any good computer screen on Wall Street. + +%prep +%setup -n %name-%commit +%patch0 -p1 + +%build + +%install +%{__install} -Dm 0755 -t %{buildroot}%{_bindir} bin/hollywood +%{__install} -Dm 0755 -t %{buildroot}%{_libexecdir}/hollywood/ lib/hollywood/* +%{__install} -Dm 0644 -t %{buildroot}%{_mandir}/man1/ share/man/man1/hollywood.1 +%{__install} -Dm 0644 -t %{buildroot}%{_datarootdir}/hollywood/ share/hollywood/* + +%{__install} -Dm 0755 bin/wallstreet %{buildroot}%{_bindir} +%{__install} -Dm 0755 -t %{buildroot}%{_libexecdir}/wallstreet/ lib/wallstreet/* +%{__install} -Dm 0644 -t %{buildroot}%{_datarootdir}/wallstreet share/wallstreet/* + +%files +%defattr(-,root,root) +%_bindir/hollywood +%_libexecdir/hollywood/ +%{_mandir}/man1/hollywood.1* +%{_datarootdir}/hollywood + +%files -n wallstreet +%defattr(-,root,root) +%_bindir/wallstreet +%_libexecdir/wallstreet/ +%{_datarootdir}/wallstreet + +%changelog diff --git a/tmux-version-comp.patch b/tmux-version-comp.patch new file mode 100644 index 0000000..946f17f --- /dev/null +++ b/tmux-version-comp.patch @@ -0,0 +1,11 @@ +--- hollywood-718960725551c64a2419aab9bd8b60ee0b95b762/bin/wallstreet 2016-12-04 18:17:40.000000000 +0100 ++++ hollywood-718960725551c64a2419aab9bd8b60ee0b95b762/bin/wallstreet 2016-12-26 23:20:19.429361376 +0100 +@@ -50,7 +50,7 @@ + fi + + version=$(tmux -V | sed -e "s/.*\s//") +-if dpkg --compare-versions $version le 2.1; then ++if [[ "$(echo -e "$version\\n2.1" | sort -V | tail -n 1)" != 2.1 ]]; then + tmux new-window -n $PKG "$widget_dir/w3m" \; \ + set-option -g pane-active-border-bg "default" \; \ + set-option -g pane-active-border-fg "default" \; \