Sophie

Sophie

distrib > Mageia > 3 > i586 > media > core-release-src > by-pkgid > b426cc348d243ca291d0dd5548b4ff7b > files > 3

phatch-0.2.7.1-5.mga3.src.rpm

%define name phatch
%define version 0.2.7.1
%define release %mkrel 5

Summary:	Photo Batch Processor
Name:		%{name}
Version:	%{version}
License:	GPLv3+
Group:		Graphics/Photography
Release:	%{release}
Source:		http://photobatch.stani.be/download/package/%{name}-%{version}.tar.gz
URL:		http://photobatch.stani.be/
Patch1:		crash_fix.patch
Patch2:		pyexiv2_compat.patch
BuildRequires:	python-devel >= 2.5
BuildRequires:	desktop-file-utils
BuildRequires:	python-sphinx
BuildRequires:	mlocate
BuildRequires:	gettext
Requires:	findutils
Requires:	python-imaging
Requires:	python-notify
Requires:	wxPythonGTK
Requires:	python-exiv2
Requires:	mlocate

%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. Phatch allows you to use EXIF and IPTC
tags for renaming and data stamping. Phatch also supports a console
version to batch photos on webservers.

%files -f %{name}.lang
%doc AUTHORS COPYING README
%{py_puresitedir}/%{name}
%{py_puresitedir}/*.egg-info
%{_datadir}/%{name}
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/applications/%{name}-inspector.desktop
%{_datadir}/mime/packages/%{name}.xml
%{_mandir}/man1/%{name}.1.xz
%{_datadir}/pixmaps/%{name}.png
%{_datadir}/pixmaps/%{name}-inspector.png
%{_datadir}/icons/hicolor/*/apps/%{name}*.png
%{_datadir}/icons/hicolor/scalable/apps/%{name}*.svg 

%package nautilus-bindings
Summary:	Nautilus binding for Photo Batch Processor
Group:		Graphics/Photography
Requires:	wxPythonGTK
Requires:	nautilus-python
Requires:	%{name} 
%description nautilus-bindings

This package provides nautilus binding for Photo Batch Processor.

%files nautilus-bindings
%doc AUTHORS COPYING README
%{py_puresitedir}/%{name}/lib/linux/nautilusExtension.py

%package doc
Summary:	Documentation for Photo Batch Processor
Group:		Documentation
Requires:	%{name}
%description doc

This package provides the html documentation for Photo Batch Processor.

%files doc
%{_datadir}/%{name}/doc/html

#-----------------------------------------------------------------------

%prep
%setup -q -n %{name}-0.2.7
%patch1 -p1 -b .orig
%patch2 -p1 -b .orig

%build

%install
python setup.py install --root=%{buildroot}
# for non-executable-script
chmod +x %{buildroot}/%{python_sitelib}/%{name}/{%{name}.py,lib/pyWx/dialogsInspector.py,lib/metadataTest.py,other/surd.py,other/EXIF.py,other/pep8.py}

# Building documentation
cd docs
make html
%__mkdir -p %{buildroot}/%{_datadir}/%{name}/doc
%__mv build/html  %{buildroot}/%{_datadir}/%{name}/doc
cd ..
%find_lang %{name}


%changelog

* Sun Jan 13 2013 umeabot <umeabot> 0.2.7.1-5.mga3
+ Revision: 375648
- Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild

* Tue Dec 04 2012 malo <malo> 0.2.7.1-4.mga3
+ Revision: 326308
- update RPM group

* Mon Jun 25 2012 dams <dams> 0.2.7.1-3.mga3
+ Revision: 263491
- add 'mlocate' as a require

* Wed May 30 2012 dams <dams> 0.2.7.1-2.mga3
+ Revision: 249557
- add two patchs from Fedora to fix mga#6073

* Fri Mar 16 2012 dams <dams> 0.2.7.1-1.mga2
+ Revision: 223570
- clean spec file
- imported package phatch