SPECS: photoprint.spec - adapterized, some parts to separate spec

blues blues at pld-linux.org
Thu Aug 28 23:55:57 CEST 2008


Author: blues                        Date: Thu Aug 28 21:55:57 2008 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- adapterized, some parts to separate spec

---- Files affected:
SPECS:
   photoprint.spec (1.1 -> 1.2) 

---- Diffs:

================================================================
Index: SPECS/photoprint.spec
diff -u SPECS/photoprint.spec:1.1 SPECS/photoprint.spec:1.2
--- SPECS/photoprint.spec:1.1	Thu Aug 28 23:28:22 2008
+++ SPECS/photoprint.spec	Thu Aug 28 23:55:52 2008
@@ -1,18 +1,17 @@
+# $Revision$, $Date$
 Summary:	Photo Print - Prints photos in various layouts and with color management
 Name:		photoprint
-Version:	0.3.1
-%define		bordersversion 0.0.1
-Release:	1mdk
+Version:	0.3.8b
+Release:	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
-Source2:	http://www.blackfiveservices.co.uk/PhotoPrint/Downloads/ProfilingKit.tar.bz2
-Url:		http://www.blackfiveservices.co.uk/PhotoPrint/About.shtml
-BuildRoot:	%_tmppath/%name-%version-%release-root
-BuildRequires:	liblcms-devel, libtiff-devel, libjpeg-devel, libnetpbm-devel
-BuildRequires:	libcups-devel, libgutenprint-devel, libgtk+2.0-devel
+Source0:	http://www.blackfiveservices.co.uk/photoprint_resources/%{name}-%{version}.tar.gz
+# Source0-md5:	9f8cc6552a799bbeeee42d64b2cb7a1a
+URL:		http://www.blackfiveservices.co.uk/photoprint.shtml
 BuildRequires:	ImageMagick
+BuildRequires:	libgutenprint-devel
+BuildRequires:	liblcms-devel
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
 
@@ -24,121 +23,63 @@
 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/) and color
-management (Profiling instructions in
-/usr/share/photoprint/ProfilingKit/ProfilingKit.html) are also
-supported.
-
-Photo Print can be used as GUI tool and also as command line tool in
-batch mode.
-
-Works nicely as an image editor in GQ-View.
-
 %prep
-
 %setup -q
-%setup -q -T -D -a 1 -n %{name}-%{version}
-%setup -q -T -D -a 2 -n %{name}-%{version}
 
 %build
-
 # Do not do any compiler optimizations, they break the program.
 #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
-
 %configure
 
-%make
+%{__make}
 
 # Generate menu icons in required format
 convert splashscreen/SplashScreen.tif -resize 32x32 photoprint.png
-convert splashscreen/SplashScreen.tif -resize 16x16 photoprint_mini.png
-convert splashscreen/SplashScreen.tif -resize 48x48 photoprint_large.png
 
 %install
 rm -rf $RPM_BUILD_ROOT
-%makeinstall
+install -d $RPM_BUILD_ROOT%{_datadir}/photoprint/{borders,ProfilingKit} \
+	$RPM_BUILD_ROOT{%{_iconsdir},%{_mandir}/man1}
 
-# install borders
-install -d %buildroot%{_datadir}/photoprint/borders
-cp -a photoprint-borders*/. %buildroot%{_datadir}/photoprint/borders
-install -d %buildroot%{_datadir}/photoprint/ProfilingKit
-cp -a ProfilingKit*/. %buildroot%{_datadir}/photoprint/ProfilingKit
-
-%find_lang %{name} --with-gnome
+%{__make} install \
+	DESTDIR=$RPM_BUILD_ROOT
 
 # install man page
-
-install -d %buildroot%{_mandir}/man1/
-install -m 644 photoprint.1 %buildroot%{_mandir}/man1/
+install photoprint.1 $RPM_BUILD_ROOT%{_mandir}/man1/
 
 # install menu icon
-install -d %buildroot%{_datadir}/icons
-install -m 644 photoprint.png %buildroot%{_datadir}/icons/
-install -d %buildroot%{_datadir}/icons/mini
-install -m 644 photoprint_mini.png %buildroot%{_datadir}/icons/mini/photoprint.png
-install -d %buildroot%{_datadir}/icons/large
-install -m 644 photoprint_large.png %buildroot%{_datadir}/icons/large/photoprint.png
-
-# install menu entry
-install -d %buildroot/%_menudir
-cat <<EOF > %buildroot/%_menudir/photoprint
-?package(photoprint): needs=X11 \
-section="Multimedia/Graphics" \
-title="Photo Print" \
-longtitle="Prints photos in various layouts and with color management" \
-command="photoprint" \
-icon="photoprint.png"
-EOF
+install photoprint.png $RPM_BUILD_ROOT%{_iconsdir}
 
-%post
-%update_menus
+## install menu entry
+#install -d $RPM_BUILD_ROOT%_menudir
+#cat <<EOF > $RPM_BUILD_ROOT%_menudir/photoprint
+#?package(photoprint): needs=X11 \
+#section="Multimedia/Graphics" \
+#title="Photo Print" \
+#longtitle="Prints photos in various layouts and with color management" \
+#command="photoprint" \
+#icon="photoprint.png"
+#EOF
 
-%postun
-%clean_menus
+%find_lang %{name} --with-gnome
 
 %clean
-rm -fr %buildroot
+rm -fr $RPM_BUILD_ROOT
 
 %files -f %{name}.lang
-%defattr(-,root,root)
+%defattr(644,root,root,755)
 %doc README COPYING NEWS TODO
-%_bindir/*
-%_iconsdir/%name.png
-%_liconsdir/%name.png
-%_miconsdir/%name.png
-%_menudir/%name
-%_mandir/man*/*
-%_datadir/photoprint
+%attr(755,root,root) %{_bindir}/*
+%{_iconsdir}/%{name}.png
+%{_mandir}/man*/*
+%{_datadir}/photoprint
 
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
-* Tue Feb 21 2006 Till Kamppeter <till at mandriva.com> 0.3.1-1mdk
-- Updated to version 0.3.1 (Dedicated profile selector, path editor widget,
-  image selector, new "Paths" dialog for selecting profile and border paths,
-  batch mode fixed, various bug fixes).
-
-* Tue Nov  1 2005 Till Kamppeter <till at mandriva.com> 0.3.0-1mdk
-- Updated to version 0.3.0 (Color management improvements, bug fixes).
-
-* Sat Aug 27 2005 Till Kamppeter <till at mandriva.com> 0.2.9-2mdk
-- Improved package description.
-
-* Sat Aug 27 2005 Till Kamppeter <till at mandriva.com> 0.2.9-1mdk
-- Updated to version 0.2.8 (Changing of of modes for many/all photos,
-  canceling of transfer between layouts possible).
-- Added photoprint borders and profiling kit.
-
-* Sat Aug 13 2005 Till Kamppeter <till at mandriva.com> 0.2.8-2mdk
-- Rebuilt for new Gutenprint.
-
-* Sat Aug 13 2005 Till Kamppeter <till at mandriva.com> 0.2.8-1mdk
-- Updated to version 0.2.8 (Some bug fixes, optimized compilation works 
-  now.).
-- Activated optimized compilation again.
-- New home page and download URLs.
-
-* Tue Jul 25 2005 Till Kamppeter <till at mandriva.com> 0.2.7-1mdk
-- Updated to version 0.2.7 (Many bug fixes and improvements).
-- Do not do any compiler optimizations, they break the program.
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.2  2008/08/28 21:55:52  blues
+- adapterized, some parts to separate spec
 
-* Sun Jul 17 2005 Till Kamppeter <till at mandriva.com> 0.2.6-1mdk
-- initial release.
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/photoprint.spec?r1=1.1&r2=1.2&f=u



More information about the pld-cvs-commit mailing list