]> git.pld-linux.org Git - SPECS.git/blob - photoprint.spec
SPECS updated Wed 28 Jul 14:48:01 CEST 2021
[SPECS.git] / photoprint.spec
1 Summary:        Photo Print - Prints photos in various layouts and with color management
2 Name:           photoprint
3 Version:        0.4.1b
4 Release:        1
5 License:        GPL
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)
19
20 %description
21 Photo Print is a utility for printing images via Gutenprint (a
22 rebranding of Gimp-Print for the latest version).
23
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.
28
29 %prep
30 %setup -q
31 %patch0 -p1
32
33 %build
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
36 %configure
37 %{__make}
38
39 %install
40 rm -rf $RPM_BUILD_ROOT
41 install -d $RPM_BUILD_ROOT%{_datadir}/photoprint/{borders,ProfilingKit} \
42         $RPM_BUILD_ROOT{%{_iconsdir},%{_mandir}/man1}
43
44 %{__make} install \
45         DESTDIR=$RPM_BUILD_ROOT
46
47 # install man page
48 install photoprint.1 $RPM_BUILD_ROOT%{_mandir}/man1
49
50 # install menu icon
51 mv $RPM_BUILD_ROOT%{_iconsdir}/hicolor/48x48/apps/fotoprint.png $RPM_BUILD_ROOT%{_iconsdir}
52
53 %find_lang %{name} --with-gnome
54
55 %clean
56 rm -rf $RPM_BUILD_ROOT
57
58 %files -f %{name}.lang
59 %defattr(644,root,root,755)
60 %doc README COPYING NEWS TODO
61 %attr(755,root,root) %{_bindir}/*
62 %{_iconsdir}/*.png
63 %{_desktopdir}/*.desktop
64 %{_mandir}/man*/*
65 %{_datadir}/photoprint
This page took 0.099999 seconds and 3 git commands to generate.