File photocollage.spec of Package photocollage
Summary: Graphical tool to make photo collage posters
Name: photocollage
Version: 1.4.3
Release: 0
Url: https://github.com/adrienverge/PhotoCollage
License: GPL-2.0+
Group: Productivity/Graphics/Bitmap Editors
Source0: %{name}-%{version}.tar.gz
BuildArch: noarch
BuildRequires: python3-devel
BuildRequires: gettext-runtime
BuildRequires: desktop-file-utils
BuildRequires: fdupes
BuildRequires: python3-distutils-extra
BuildRequires: intltool
Requires: python3-Pillow
Requires: python3-gobject
Requires: python3-cairo
Requires: gettext-runtime
Requires(post): gtk2-tools
Requires(postun): gtk2-tools
%description
PhotoCollage allows you to create photo collage posters. It assembles the
input photographs you give it to generate a big poster. Photos are arranged
to fill the whole poster, however you can influence the algorithm to change the
final layout. You can also set a custom border between photos, and save the
generated image in the resolution you want.
%prep
%setup -q -n PhotoCollage-%version
%build
%{_bindir}/python3 setup.py build
%install
%{_bindir}/python3 setup.py install -O1 --root %{buildroot}
%find_lang %{name}
desktop-file-install --dir=%{buildroot}%{_datadir}/applications --vendor="" \
--add-category=Graphics --add-category=RasterGraphics --remove-category=GNOME \
--remove-category=Utility data/%{name}.desktop
%fdupes %{buildroot}%{python3_sitelib}/%{name}
%post
%icon_theme_cache_post
%postun
%icon_theme_cache_postun
%files -f %{name}.lang
%defattr(-,root,root,-)
%doc README.rst LICENSE
%{python3_sitelib}/*
%{_bindir}/photocollage
%{_datadir}/applications/%{name}.desktop
%dir %{_datadir}/appdata
%{_datadir}/appdata/%{name}.appdata.xml
%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
%{_datadir}/icons/hicolor/*/apps/%{name}.png
%changelog
* Mon Sep 19 2016 Simone Sclavi <darkhado@gmail.com> - 1.4.3
- 1.4.3 release
* Tue Apr 19 2016 Simone Sclavi <darkhado@gmail.com> - 1.4.2
- 1.4.2 release
* Wed Dec 16 2015 Simone Sclavi <darkhado@gmail.com> - 1.3.1
- 1.3.1 release
* Tue Mar 03 2015 Simone Sclavi <darkhado@gmail.com> - 1.3.0
- 1.3.0 release
* Sat Jul 12 2014 Simone Sclavi <darkhado@gmail.com> - 1.1.0
- 1.1.0 release
* Wed Mar 05 2014 Simone Sclavi <darkhado@gmail.com> - 1.0.2
- initial build