From 843a28678e5a3ef9a1376974802948ef4b547b73 Mon Sep 17 00:00:00 2001 From: Martin Gansser Date: Aug 22 2017 16:52:33 +0000 Subject: Initial import (#1472663). --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..76f2b65 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/variety_0.6.4-0-589-201704290523.tar.gz diff --git a/README.md b/README.md deleted file mode 100644 index 366d7bd..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# variety - -The variety package \ No newline at end of file diff --git a/sources b/sources new file mode 100644 index 0000000..841e5e5 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (variety_0.6.4-0-589-201704290523.tar.gz) = ec488a50388514c85e0f8174b9c6ce715879090d18638b9c87afb1e3690f664e0ef0b00370542477aa025621225daf4d9161fb5e7d6f9dd9def241e86733ed9c diff --git a/variety-0.6.4-fix_webkit_version.patch b/variety-0.6.4-fix_webkit_version.patch new file mode 100644 index 0000000..0289833 --- /dev/null +++ b/variety-0.6.4-fix_webkit_version.patch @@ -0,0 +1,15 @@ +diff -up variety-0.6.4/variety/AddPanoramioDialog.py.fix_webkit_version variety-0.6.4/variety/AddPanoramioDialog.py +--- variety-0.6.4/variety/AddPanoramioDialog.py.fix_webkit_version 2017-08-21 12:43:51.512278896 +0200 ++++ variety-0.6.4/variety/AddPanoramioDialog.py 2017-08-21 13:55:36.305538659 +0200 +@@ -17,9 +17,9 @@ import json + + import logging + import gi +-gi.require_version('WebKit', '3.0') ++gi.require_version('WebKit2', '4.0') + +-from gi.repository import Gtk, WebKit, GObject # pylint: disable=E0611 ++from gi.repository import Gtk, WebKit2, GObject # pylint: disable=E0611 + from variety.Options import Options + from variety_lib.helpers import get_builder + from variety import _, _u diff --git a/variety-README b/variety-README new file mode 100644 index 0000000..3c10c86 --- /dev/null +++ b/variety-README @@ -0,0 +1,14 @@ +Variety changes the desktop wallpaper on a regular basis, using user-specified or automatically downloaded images. + +Variety sits conveniently as an indicator in the panel and can be easily paused and resumed. +The mouse wheel can be used to scroll wallpapers back and forth until you find the perfect one for your current mood. + +Apart from displaying images from local folders, several different online sources can be used to fetch wallpapers according to user-specified criteria. + +Variety can also automatically apply various fancy filters to the displayed images - charcoal painting, oil painting, heavy blurring, etc. +- so that your desktop is always fresh and unique. +Applying a heavy blurring filter for example is a great way to get abstract-looking and unobtrusive, yet colorful wallpapers, similar in spirit +to the default one in Ubuntu. + +Variety was developed by Peter Levi as part of the Ubuntu App Showdown, June-July 2012 +Variety was tested and runs on Ubuntu 12.04, Ubuntu 12.10, Xubuntu 12.04, Lubuntu 12.04, Kubuntu 12.04, Linux Mint 13 (Cinnamon and MATE editions). diff --git a/variety.appdata.xml b/variety.appdata.xml new file mode 100644 index 0000000..f7268df --- /dev/null +++ b/variety.appdata.xml @@ -0,0 +1,34 @@ + + + variety.desktop + CC0-1.0 + GPL-3.0 + Variety + Wallpaper changer that automatically downloads wallpapers + +

+ Variety changes the desktop wallpaper on a regular basis, + using user-specified or automatically downloaded images. +

+

+ Variety sits conveniently as an indicator in the panel + and can be easily paused and resumed. The mouse wheel + can be used to scroll wallpapers back and forth until + you find the perfect one for your current mood. +

+

+ Apart from displaying images from local folders, several + different online sources can be used to fetch wallpapers + according to user-specified criteria. +

+

+ Variety can also automatically apply various fancy + filters to the displayed images - charcoal painting, + oil painting, heavy blurring, etc. - so that your + desktop is always fresh and unique. +

+
+ https://launchpad.net/variety + https://bugs.launchpad.net/variety + eclipseo_at_fedoraproject.org +
diff --git a/variety.spec b/variety.spec new file mode 100644 index 0000000..00b796e --- /dev/null +++ b/variety.spec @@ -0,0 +1,158 @@ +Name: variety +Version: 0.6.4 +Release: 4%{?dist} +Summary: Wallpaper changer that automatically downloads wallpapers +License: GPLv3 +Url: https://launchpad.net/variety +Source0: https://launchpad.net/%{name}/trunk/%{version}/+download/%{name}_%{version}-0-589-201704290523.tar.gz +# https://bugs.launchpad.net/variety/+bug/1705199 +Source1: %{name}-README +# https://bugs.launchpad.net/variety/+bug/1711743 +Source2: %{name}.appdata.xml +# https://bugs.launchpad.net/variety/+bug/1712067 +Patch0: variety-0.6.4-fix_webkit_version.patch + +BuildArch: noarch + +BuildRequires: python2-devel +BuildRequires: python-setuptools +BuildRequires: python-distutils-extra +BuildRequires: python-appindicator +BuildRequires: python-beautifulsoup4 +BuildRequires: python-configobj +BuildRequires: python-lxml +BuildRequires: python2-gexiv2 +BuildRequires: python-pycurl +BuildRequires: python2-requests +BuildRequires: python-pillow-devel +BuildRequires: python-imaging-devel +BuildRequires: pyexiv2 +BuildRequires: intltool +BuildRequires: yelp-devel +BuildRequires: dbus-python +BuildRequires: pkgconfig(pycairo) +BuildRequires: pkgconfig(libnotify) +BuildRequires: gettext +BuildRequires: desktop-file-utils +BuildRequires: libappstream-glib +%if 0%{?fedora} <= 26 +BuildRequires: webkitgtk-devel +%endif +Requires: dbus-python +Requires: hicolor-icon-theme +Requires: ImageMagick +Requires: libappindicator-gtk3 +Requires: python-lxml +Requires: python-pillow +Requires: pycairo +Requires: python-appindicator +Requires: python-beautifulsoup4 +Requires: python-configobj +Requires: python2-gexiv2 +Requires: python-pycurl +Requires: python2-requests +Requires: pyexiv2 +Requires: pywebkitgtk +Requires: webkitgtk4 + +%description +Variety changes the desktop wallpaper on a regular basis, +using user-specified or automatically downloaded images. + +Variety sits conveniently as an indicator in the panel +and can be easily paused and resumed. The mouse wheel +can be used to scroll wallpapers back and forth until +you find the perfect one for your current mood. + +Apart from displaying images from local folders, several +different online sources can be used to fetch wallpapers +according to user-specified criteria. + +Variety can also automatically apply various fancy +filters to the displayed images - charcoal painting, +oil painting, heavy blurring, etc. - so that your +desktop is always fresh and unique. + +%prep +%autosetup -p1 +cp -p %{SOURCE1} ./README + +# remove debian part +rm -rf debian + +%build +%{__python2} setup.py build + +%install +%{__python2} setup.py install --root=%{buildroot} +install -Dp -m 644 %{SOURCE2} %{buildroot}/%{_datadir}/appdata/%{name}.appdata.xml + +# non-executable-script /usr/share/variety/scripts/install_ssl_deps.sh 644 /bin/bash +chmod a+x %{buildroot}%{_datadir}/%{name}/scripts/install_ssl_deps.sh + +%find_lang %{name} + +%check +desktop-file-validate %{buildroot}%{_datadir}/applications/*.desktop +appstream-util validate-relax --nonet %{buildroot}/%{_datadir}/appdata/%{name}.appdata.xml + +%post +/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || : +/usr/bin/update-desktop-database &> /dev/null || : + +%postun +if [ $1 -eq 0 ] ; then + /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null + /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : +fi +/usr/bin/update-desktop-database &> /dev/null || : + +%posttrans +/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : + +%files -f %{name}.lang +%doc README +%license COPYING +%{_bindir}/%{name} +%{_datadir}/applications/%{name}.desktop +%{_datadir}/appdata/%{name}.appdata.xml +%{_datadir}/%{name}/ +%{python2_sitelib}/jumble/ +%{python2_sitelib}/%{name}-*-py*.egg-info +%{python2_sitelib}/%{name}/ +%{python2_sitelib}/%{name}_lib/ +%{_datadir}/help/C/%{name}/ +%{_datadir}/icons/hicolor/22x22/apps/%{name}-indicator-dark.png +%{_datadir}/icons/hicolor/22x22/apps/%{name}-indicator.png +%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg + +%changelog +* Mon Aug 21 2017 Martin Gansser - 0.6.4-4 +- Add variety-0.6.4-fix_webkit_version.patch +- Correct BR webkitgtk3 becomes webkitgtk4 +- Add RR pywebkitgtk + +* Sat Aug 19 2017 Martin Gansser - 0.6.4-3 +- Add RR libappindicator-gtk3 +- Correct RR ImageMagick it's case sensitive +- Add RR webkitgtk3 + +* Fri Aug 18 2017 Martin Gansser - 0.6.4-2 +- Add RR python-lxml +- Add RR python-pillow +- Add RR pycairo +- Add RR dbus-python +- Add RR python-appindicator +- Add RR python-beautifulsoup4 +- Add RR python-configobj +- Add RR python2-gexiv2 +- Add RR python-pycurl +- Add RR python2-requests +- Add RR pyexiv2 +- Add RR imagemagick +- Add RR hicolor-icon-theme +- Add BR libappstream-glib +- Add appdata.xml file + +* Tue Jul 18 2017 Martin Gansser - 0.6.4-1 +- initial build