File phatch.spec of Package phatch

Name:           phatch
Version:        0.2.7
Release:        0
License:	GPL-3.0
Summary:        Photo Batch Processor
Url:            http://photobatch.stani.be/
Group:          Productivity/Graphics/Convertors

Source0:        http://photobatch.stani.be/download/package/%{name}-%{version}.1.tar.gz
%if !0%{?sles_version}
BuildArch: 	noarch
%endif
BuildRoot:      %{_tmppath}/build-%{name}-%{version}
BuildRequires:  python
BuildRequires:  python-devel 
%if 0%{?suse_version} > 1130
BuildRequires:  python-wxWidgets
%else
BuildRequires:  python-wxGTK
%endif
BuildRequires:  python-imaging
BuildRequires:  update-desktop-files
BuildRequires:	fdupes

%py_requires

%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}



Requires:       python
%if 0%{?suse_version} > 1130
Requires:       python-wxWidgets
%else
Requires:       python-wxGTK
%endif
Requires:       findutils-locate
Requires:       python-imaging

%description
Phatch is an user friendly, cross-platform Photo Batch Processor and Exif Renamer with a nice graphical user interface. Phatch handles all popular image formats and can duplicate (sub)folder hierarchies. Phatch can batch resize, rotate, apply shadows, perspective, rounded corners, ... and do much more actions in minutes instead of hours or days if you do it manually.

%prep
%setup -q

%build
echo %{python_sitelib}

%install
%{__python} setup.py install --prefix=%{_prefix} --root=%{buildroot}


%suse_update_desktop_file  phatch Graphics Photography
%suse_update_desktop_file  phatch-inspector Graphics Photography


%fdupes -s %{buildroot}
%fdupes %{buildroot}

%find_lang %{name}

%clean
rm -rf %{buildroot}

%files -f %{name}.lang
%defattr(-,root,root)
%doc AUTHORS COPYING README

%{_bindir}/phatch
%dir %{python_sitelib}/phatch
%{python_sitelib}/phatch/*
%if 0%{?sles_version}!=10
%{python_sitelib}/Phatch*.egg-info
%endif
%{_datadir}/applications/phatch*
%{_datadir}/icons/hicolor/*/apps/phatch*
%dir %{_datadir}/phatch
%{_datadir}/phatch/*
%{_datadir}/pixmaps/phatch*
%{_mandir}/man1/phatch.1*
%{_datadir}/mime/packages/phatch.xml
%if 0%{?sles_version}
 %dir %{_datadir}/locale/fil
 %{_datadir}/locale/fil/*
%endif
%if 0%{?sles_version}==10
 %dir %{_datadir}/icons/hicolor
 %dir %{_datadir}/icons/hicolor/*
 %dir %{_datadir}/icons/hicolor/*/*
 %dir %{_datadir}/locale/hy
 %{_datadir}/locale/hy/*
%endif
%changelog
openSUSE Build Service is sponsored by