1 Summary: Photo Print - Prints photos in various layouts and with color management
6 Group: X11/Applications/Publishing
7 Source0: http://www.blackfiveimaging.co.uk/photoprint/%{name}-%{version}.tar.gz
8 # Source0-md5: 9db16efdccbecbcd0110aa67e21938ee
9 Patch0: %{name}-stdio.patch
10 URL: http://blackfiveimaging.co.uk/index.php?article=02Software%2F01PhotoPrint
11 BuildRequires: gettext-tools
12 BuildRequires: gtk+2-devel
13 BuildRequires: lcms-devel
14 BuildRequires: libgutenprint-devel
15 BuildRequires: libtiff-devel
16 BuildRequires: netpbm-devel
17 BuildRequires: pkgconfig
18 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 Photo Print is a utility for printing images via Gutenprint (a
22 rebranding of Gimp-Print for the latest version).
24 It supports different printing layouts, as one picture per page,
25 several pictures (scaled to equal size) per page, a poster of one
26 picture put together of several sheets, or several pictures combined
27 to one round picture for a CD back.
34 # Do not do any compiler optimizations, they break the program - MDK note
35 #CFLAGS='' CXXFLAGS='' ./configure --program-prefix= --prefix=%{_prefix} --exec-prefix=%{_prefix} --bindir=%{_bindir} --sbindir=%{_sbindir} --sysconfdir=%{_sysconfdir} --datadir=%{_datadir} --includedir=%{_includedir} --libdir=%{_libdir} --libexecdir=%{_libdir} --localstatedir=/var/lib --sharedstatedir=%{_prefix}/com --mandir=%{_mandir} --infodir=%{_infodir} --x-includes=%{_prefix}/X11R6/include --x-libraries=%{_prefix}/X11R6/lib
40 rm -rf $RPM_BUILD_ROOT
41 install -d $RPM_BUILD_ROOT%{_datadir}/photoprint/{borders,ProfilingKit} \
42 $RPM_BUILD_ROOT{%{_iconsdir},%{_mandir}/man1}
45 DESTDIR=$RPM_BUILD_ROOT
48 install photoprint.1 $RPM_BUILD_ROOT%{_mandir}/man1
51 mv $RPM_BUILD_ROOT%{_iconsdir}/hicolor/48x48/apps/fotoprint.png $RPM_BUILD_ROOT%{_iconsdir}
53 %find_lang %{name} --with-gnome
56 rm -rf $RPM_BUILD_ROOT
58 %files -f %{name}.lang
59 %defattr(644,root,root,755)
60 %doc README COPYING NEWS TODO
61 %attr(755,root,root) %{_bindir}/*
63 %{_desktopdir}/*.desktop
65 %{_datadir}/photoprint