%define src_ver %(echo %version | cut -d. -f 1-3) Name: phatch Version: 0.2.7.1 Release: 2mamba Summary: PHoto bATCH Processor & Renamer Group: Graphical Desktop/Applications/Graphics Vendor: openmamba Distribution: openmamba Packager: Ercole 'ercolinux' Carpanetto URL: http://photobatch.stani.be Source: http://photobatch.stani.be/download/package/phatch-%{version}.tar.gz License: GPL Requires: python >= %python_version BuildRoot: %{_tmppath}/%{name}-%{version}-root ## AUTOBUILDREQ-BEGIN BuildRequires: libpython-devel BuildRequires: python ## AUTOBUILDREQ-END %description Phatch is a simple to use cross-platform GUI Photo Batch Processor which handles all popular image formats and can duplicate (sub)folder hierarchies. Phatch can batch resize, rotate, apply perspective, shadows, rounded corners, ... and more in minutes instead of hours or days if you do it manually. %prep %setup -q -n %{name}-%{src_ver} %build python setup.py build %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %{__python} setup.py install \ --root="%{buildroot}" \ --install-headers=%{_includedir}/python \ --install-lib=%{python_sitearch} %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %files %defattr(-,root,root) %{_bindir}/phatch %{python_sitearch}/phatch/* %{python_sitearch}/Phatch-*-py*.egg-info %{_datadir}/applications/phatch.desktop %{_datadir}/applications/phatch-inspector.desktop %{_datadir}/pixmaps/phatch-inspector.png %{_datadir}/icons/hicolor/*/apps/phatch.png %{_datadir}/icons/hicolor/*/apps/phatch-actionlist.png %{_datadir}/icons/hicolor/*/apps/phatch-inspector*.png %{_datadir}/icons/hicolor/scalable/apps/phatch.svg %{_datadir}/icons/hicolor/scalable/apps/phatch-actionlist.svg %{_datadir}/icons/hicolor/scalable/apps/phatch-inspector.svg %{_datadir}/locale/* %{_mandir}/man1/phatch.1.gz %{_datadir}/mime/packages/phatch.xml %{_datadir}/phatch/data %{_datadir}/phatch/docs %{_datadir}/phatch/images/* %{_datadir}/pixmaps/phatch.png %changelog * Sun Jan 18 2015 Automatic Build System 0.2.7.1-2mamba - automatic rebuild by autodist * Fri Apr 30 2010 Silvan Calarco 0.2.7.1-1mamba - update to 0.2.7.1 - fixed changelog - removed files installed in /usr * Thu Oct 29 2009 Ercole 'ercolinux' Carpanetto 0.1.6-1mamba - update to 0.1.6 * Thu Jun 12 2008 Ercole 'ercolinux' Carpanetto 0.1.4-1mamba - package created by autospec