File photoprint.spec of Package photoprint
#
# spec file for package photoprint (Version 0.3.6)
#
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: photoprint
Summary: Photo Print - Prints photos in various layouts and with color management
Version: 0.3.9
Release: 1
%define bordersversion 0.0.2
License: GPL
Group: Publishing
Source: http://www.blackfiveservices.co.uk/PhotoPrint/Downloads/%{name}-%{version}.tar.bz2
Source1: http://www.blackfiveservices.co.uk/PhotoPrint/Downloads/photoprint-borders-%{bordersversion}.tar.bz2
Url: http://www.blackfiveservices.co.uk/PhotoPrint/About.shtml
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: gcc-c++ libjpeg-devel liblcms-devel libnetpbm libtiff-devel
BuildRequires: cups-devel gtk2-devel gutenprint-devel
BuildRequires: ImageMagick
BuildRequires: update-desktop-files
%if 0%{?suse_version} > 1020
BuildRequires: fdupes
%endif
%description
Photo Print is a utility for printing images via Gutenprint (a
rebranding of Gimp-Print for the latest version).
It supports different printing layouts, as one picture per page,
several pictures (scaled to equal size) per page, a poster of one
picture put together of several sheets, or several pictures combined
to one round picture for a CD back.
Image frames (Templates in /usr/share/photoprint/borders/)
are also supported.
Photo Print can be used as GUI tool and also as command line tool in
batch mode.
Authors:
--------
Alastair M. Robinson
%lang_package
%prep
%setup -q
%setup -q -T -D -a 1 -n %{name}-%{version}
%build
%configure
%{__make}
%install
%makeinstall
# install borders
install -d %buildroot%{_datadir}/photoprint/borders
cp -a photoprint-borders*/. %buildroot%{_datadir}/photoprint/borders
# install man page
install -d %buildroot%{_mandir}/man1/
install -m 644 photoprint.1 %buildroot%{_mandir}/man1/
%suse_update_desktop_file fotoprint Graphics
%if 0%{?suse_version} > 1020
# create symlinks for man pages
%fdupes -s $RPM_BUILD_ROOT/%_mandir
# create hardlinks for the rest
%fdupes $RPM_BUILD_ROOT
%endif
%find_lang %{name}
%clean
%{__rm} -rf "%{buildroot}"
%files lang -f %{name}.lang
%files
%defattr(-,root,root)
%doc README COPYING NEWS TODO
%{_bindir}/*
%{_mandir}/man*/*
%{_datadir}/photoprint
%{_datadir}/icons/hicolor/48x48/apps/fotoprint.png
%{_datadir}/applications/fotoprint.desktop
%changelog