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

Name:           rapid-photo-downloader
Version:        0.0.8
Release:        3.b7%{?dist}
Summary:        Images downloader for external devices

Group:          Applications/Archiving
License:        GPLv2+
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch:      noarch

BuildRequires:  python
BuildRequires:  python-setuptools-devel

BuildRequires:  desktop-file-utils

Requires:       hicolor-icon-theme
Requires:       pyexiv2
Requires:       gtk2
Requires:       pygtk2
Requires:       gnome-python2-gconf
Requires:       gnome-python2
Requires:       notify-python

Rapid Photo Downloader is written by a photographer for professional
and amateur photographers. It can download photos from multiple memory
cards and Portable Storage Devices simultaneously. It provides a variety
of options for sub-folder creation, image renaming and backup.
It does not download images directly from a camera unless the camera
is recognized as an external drive.

%setup -q -n %{name}-%{version}~b7
#Remove shebang
for Files in rapid/ rapid/ rapid/ \
  rapid/ rapid/ \
  rapid/ rapid/ rapid/; do
  %{__sed} -i.orig -e 1d ${Files}
  touch -r ${Files}.orig ${Files}
  %{__rm} ${Files}.orig

python ./ build

rm -rf %{buildroot}
python ./ install -O1 --skip-build --root=%{buildroot}
desktop-file-install                                        \
    --dir=%{buildroot}%{_datadir}/applications              \

rm -rf %{buildroot}

touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :

if [ $1 -eq 0 ] ; then
    touch --no-create %{_datadir}/icons/hicolor &>/dev/null
    gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :

gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :

%doc rapid/AUTHORS rapid/ChangeLog README rapid/TODO

* Sat Apr 25 2009 Fabian Affolter <> - 0.0.8-3.b7
- Added update of the icon cache
- Fixed license

* Sat Apr 25 2009 Fabian Affolter <> - 0.0.8-2.b7
- Added notify-python as a requirement

* Sun Apr 12 2009 Fabian Affolter <> - 0.0.8-1.b7
- Updated to new upstream version b7

* Wed Apr 8 2009 Fabian Affolter <> - 0.0.8-1.b6
- Initial package for Fedora