ae6d487
# This package depends on automagic byte compilation
ae6d487
# https://fedoraproject.org/wiki/Changes/No_more_automagic_Python_bytecompilation_phase_2
ae6d487
%global _python_bytecompile_extra 1
ae6d487
1429596
#For git snapshots, set to 0 to use release instead:
1429596
%global usesnapshot 1
1429596
%if 0%{?usesnapshot}
1429596
%global commit0 2dd2ee2fcaa5c45a0bf8d9847ea7e72622f72925
1429596
%global shortcommit0 %(c=%{commit0}; echo ${c:0:7})
1429596
%global snapshottag .git%{shortcommit0}
1429596
%endif
1429596
843a286
Name:           variety
1429596
%if 0%{?usesnapshot}
1429596
Version:        0.8.0
63f10f8
Release:        0.2%{?snapshottag}%{?dist}
1429596
%else
ee24894
Version:        0.7.2
63f10f8
Release:        2%{?dist}
1429596
%endif
843a286
Summary:        Wallpaper changer that automatically downloads wallpapers
843a286
License:        GPLv3
1429596
URL:            https://github.com/varietywalls/variety
1429596
1429596
%if 0%{?usesnapshot}
1429596
Source0:        %{url}/archive/%{commit0}/%{name}-%{shortcommit0}.tar.gz
1429596
%else
82ad2fb
Source0:        https://github.com/varietywalls/%{name}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
1429596
%endif
843a286
843a286
BuildArch:      noarch
843a286
20d897c
BuildRequires:  python3-devel
20d897c
BuildRequires:  python3-setuptools
20d897c
BuildRequires:  python3-distutils-extra
20d897c
BuildRequires:  python3-configobj
20d897c
BuildRequires:  python3-lxml
20d897c
BuildRequires:  python3-gexiv2
20d897c
BuildRequires:  python3-pycurl
20d897c
BuildRequires:  python3-requests
20d897c
BuildRequires:  python3-pillow-devel
843a286
BuildRequires:  intltool
843a286
BuildRequires:  yelp-devel
8de6ced
BuildRequires:  python3-dbus
20d897c
BuildRequires:  python3-cairo-devel
843a286
BuildRequires:  pkgconfig(libnotify)
843a286
BuildRequires:  gettext
843a286
BuildRequires:  desktop-file-utils
843a286
BuildRequires:  libappstream-glib
8de6ced
Requires:       python3-dbus
843a286
Requires:       hicolor-icon-theme
843a286
Requires:       ImageMagick
843a286
Requires:       libappindicator-gtk3
20d897c
Requires:       python3-lxml
20d897c
Requires:       python3-pillow
20d897c
BuildRequires:  python3-cairo
8de6ced
#Requires:       python3-appindicator -- not available yet
20d897c
Requires:       python3-beautifulsoup4
20d897c
Requires:       python3-configobj
20d897c
Requires:       python3-gexiv2
20d897c
Requires:       python3-pycurl
20d897c
Requires:       python3-requests
843a286
843a286
%description
843a286
Variety changes the desktop wallpaper on a regular basis, 
843a286
using user-specified or automatically downloaded images.
843a286
843a286
Variety sits conveniently as an indicator in the panel 
843a286
and can be easily paused and resumed. The mouse wheel 
843a286
can be used to scroll wallpapers back and forth until 
843a286
you find the perfect one for your current mood.
843a286
843a286
Apart from displaying images from local folders, several 
843a286
different online sources can be used to fetch wallpapers 
843a286
according to user-specified criteria.
843a286
843a286
Variety can also automatically apply various fancy 
843a286
filters to the displayed images - charcoal painting, 
843a286
oil painting, heavy blurring, etc. - so that your 
843a286
desktop is always fresh and unique. 
843a286
843a286
%prep
1429596
1429596
%if 0%{?usesnapshot}
1429596
%setup -q -n %{name}-%{commit0}
1429596
%else
843a286
%autosetup -p1
1429596
%endif
1429596
1429596
843a286
843a286
# remove debian part
843a286
rm -rf debian
843a286
843a286
%build
20d897c
%{__python3} setup.py build
843a286
843a286
%install
20d897c
%{__python3} setup.py install --root=%{buildroot}
843a286
843a286
%find_lang %{name}
843a286
843a286
%check
843a286
desktop-file-validate %{buildroot}%{_datadir}/applications/*.desktop
a9a159d
appstream-util validate-relax --nonet %{buildroot}/%{_metainfodir}/%{name}.appdata.xml
843a286
843a286
%files -f %{name}.lang
82ad2fb
%doc README.md
843a286
%license COPYING
843a286
%{_bindir}/%{name}
843a286
%{_datadir}/applications/%{name}.desktop
a9a159d
%{_metainfodir}/%{name}.appdata.xml
843a286
%{_datadir}/%{name}/
20d897c
%{python3_sitelib}/jumble/
20d897c
%{python3_sitelib}/%{name}-*-py*.egg-info
20d897c
%{python3_sitelib}/%{name}/
20d897c
%{python3_sitelib}/%{name}_lib/
843a286
%{_datadir}/icons/hicolor/22x22/apps/%{name}-indicator-dark.png
843a286
%{_datadir}/icons/hicolor/22x22/apps/%{name}-indicator.png
843a286
%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
843a286
843a286
%changelog
63f10f8
* Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.0-0.2.git2dd2ee2
63f10f8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
63f10f8
1429596
* Sat Jun 29 2019 Martin Gansser <martinkg@fedoraproject.org> - 0.8.0-0.1.git2dd2ee2
1429596
- Update to 0.8.0-0.1.git2dd2ee2
1429596
ee24894
* Mon Apr 22 2019 Martin Gansser <martinkg@fedoraproject.org> - 0.7.2-1
ee24894
- Update to 0.7.2
ee24894
8de6ced
* Fri Apr 19 2019 Miro HronĨok <mhroncok@redhat.com> - 0.7.1-4
8de6ced
- Drop obsolete Python 2 dependencies
8de6ced
b2345cf
* Mon Feb 04 2019 Kalev Lember <klember@redhat.com> - 0.7.1-3
b2345cf
- Drop obsolete pyexiv2 dependency
b2345cf
d27da1a
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.1-2
d27da1a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
d27da1a
bfe1162
* Fri Nov 09 2018 Martin Gansser <martinkg@fedoraproject.org> - 0.7.1-1
bfe1162
- Update to 0.7.1
bfe1162
a9a159d
* Fri Oct 05 2018 Martin Gansser <martinkg@fedoraproject.org> - 0.7.0-2
a9a159d
- Use Metainfo dir for appdata file
a9a159d
20d897c
* Mon Oct 01 2018 Martin Gansser <martinkg@fedoraproject.org> - 0.7.0-1
20d897c
- Update to 0.7.0
20d897c
- Switche to python3
20d897c
17d9ea0
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.9-2
17d9ea0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
17d9ea0
324b78f
* Fri May 18 2018 Martin Gansser <martinkg@fedoraproject.org> - 0.6.9-1
324b78f
- Update to 0.6.9
324b78f
f3d3ce0
* Tue May 01 2018 Martin Gansser <martinkg@fedoraproject.org> - 0.6.8-2
f3d3ce0
- Dropped RR pywebkitgtk (BZ#1573401)
f3d3ce0
9987168
* Mon Apr 23 2018 Martin Gansser <martinkg@fedoraproject.org> - 0.6.8-1
9987168
- Update to 0.6.8
9987168
31fcc0c
* Thu Apr 05 2018 Martin Gansser <martinkg@fedoraproject.org> - 0.6.7-2
31fcc0c
- Add bytecompile with Python 2 %%global __python %%{__python2}
31fcc0c
82ad2fb
* Wed Apr 04 2018 Martin Gansser <martinkg@fedoraproject.org> - 0.6.7-1
9987168
- Update to 0.6.7
82ad2fb
- Changed SOURCE link to github
82ad2fb
- Fix python requires for f28
82ad2fb
6048ece
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.6-3
6048ece
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
6048ece
ceb1cb6
* Thu Jan 18 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.6.6-2
ceb1cb6
- Remove obsolete scriptlets
ceb1cb6
a364b4a
* Tue Sep 19 2017 Martin Gansser <martinkg@fedoraproject.org> - 0.6.6-1
a364b4a
- Update to 0.6.6
a364b4a
231879c
* Wed Aug 23 2017 Martin Gansser <martinkg@fedoraproject.org> - 0.6.5-1
231879c
- Update to 0.6.5
231879c
- Cleanup spec file
231879c
- Dropped variety-0.6.4-fix_webkit_version.patch
231879c
- Dropped BR webkitgtk-devel
231879c
- Dropped RR webkitgtk4
231879c
843a286
* Mon Aug 21 2017 Martin Gansser <martinkg@fedoraproject.org> - 0.6.4-4
843a286
- Add variety-0.6.4-fix_webkit_version.patch
843a286
- Correct BR webkitgtk3 becomes webkitgtk4 
843a286
- Add RR pywebkitgtk
843a286
843a286
* Sat Aug 19 2017 Martin Gansser <martinkg@fedoraproject.org> - 0.6.4-3
843a286
- Add RR libappindicator-gtk3
843a286
- Correct RR ImageMagick it's case sensitive
843a286
- Add RR webkitgtk3
843a286
843a286
* Fri Aug 18 2017 Martin Gansser <martinkg@fedoraproject.org> - 0.6.4-2
843a286
- Add RR python-lxml
843a286
- Add RR python-pillow
843a286
- Add RR pycairo
843a286
- Add RR dbus-python
843a286
- Add RR python-appindicator
843a286
- Add RR python-beautifulsoup4
843a286
- Add RR python-configobj
843a286
- Add RR python2-gexiv2
843a286
- Add RR python-pycurl
843a286
- Add RR python2-requests
843a286
- Add RR pyexiv2
843a286
- Add RR imagemagick
843a286
- Add RR hicolor-icon-theme
843a286
- Add BR libappstream-glib
843a286
- Add appdata.xml file
843a286
843a286
* Tue Jul 18 2017 Martin Gansser <martinkg@fedoraproject.org> - 0.6.4-1
843a286
- initial build