SPECS: gscan2pdf.spec - PLDized a bit

jajcus jajcus at pld-linux.org
Tue Feb 17 14:51:57 CET 2009


Author: jajcus                       Date: Tue Feb 17 13:51:57 2009 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- PLDized a bit

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

---- Diffs:

================================================================
Index: SPECS/gscan2pdf.spec
diff -u SPECS/gscan2pdf.spec:1.1 SPECS/gscan2pdf.spec:1.2
--- SPECS/gscan2pdf.spec:1.1	Tue Feb 17 14:29:34 2009
+++ SPECS/gscan2pdf.spec	Tue Feb 17 14:51:51 2009
@@ -1,30 +1,38 @@
-Name:      gscan2pdf
-Version: 0.9.27
-Release:   1%{?dist}
-Summary:   A GUI to produce PDFs from scanned documents
-
-Group:     Applications/Publishing
-License:   GPL
-URL:       http://%{name}.sourceforge.net/
-Source0:   %{name}-%{version}.tar.gz
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
-BuildArch: noarch
-
-BuildRequires: perl(ExtUtils::MakeMaker), perl(Test::More)
-BuildRequires: gettext, desktop-file-utils
-Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
-Requires: ImageMagick-perl, ImageMagick, djvulibre, sane-backends >= 1.0.17
-Requires: sane-frontends, xdg-utils, unpaper, gocr, perl(Gtk2::ImageView)
-Requires: perl(Gtk2::Ex::PodViewer), perl(PDF::API2), perl(Config::General)
+# $Revision$, $Date$
+#
+%include	/usr/lib/rpm/macros.perl
+Summary:	A GUI to produce PDFs from scanned documents
+Name:		gscan2pdf
+Version:	0.9.27
+Release:	1
+License:	GPL
+Group:		Applications/Publishing
+Source0:	http://dl.sourceforge.net/gscan2pdf/%{name}-%{version}.tar.gz
+# Source0-md5:	957f4d5918892263bf71e4a82a8f656c
+URL:		http://gscan2pdf.sourceforge.net/
+BuildRequires:	desktop-file-utils
+BuildRequires:	gettext
+BuildRequires:	perl-devel
+BuildRequires:	rpm-perlprov >= 4.1-13
+Requires:	ImageMagick
+Requires:	ImageMagick-perl
+Requires:	djvulibre
+Requires:	gocr
+Requires:	sane-backends >= 1.0.17
+Requires:	sane-frontends
+Requires:	unpaper
+Requires:	xdg-utils
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
-Only two clicks are required to scan several pages and then save all or a
-selection as a PDF file, including metadata if required.
+Only two clicks are required to scan several pages and then save all
+or a selection as a PDF file, including metadata if required.
 
-gscan2pdf can control regular or sheet-fed (ADF) scanners with SANE via
-scanimage or scanadf, and can scan multiple pages at once. It presents a
-thumbnail view of scanned pages, and permits simple operations such as rotating
-and deleting pages. 
+gscan2pdf can control regular or sheet-fed (ADF) scanners with SANE
+via scanimage or scanadf, and can scan multiple pages at once. It
+presents a thumbnail view of scanned pages, and permits simple
+operations such as rotating and deleting pages.
 
 PDF conversion is done by PDF::API2.
 
@@ -35,20 +43,20 @@
 
 %build
 %{__perl} Makefile.PL INSTALLDIRS=vendor
-make %{?_smp_mflags}
-
+%{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-make install DESTDIR=$RPM_BUILD_ROOT
+%{__make} install \
+	DESTDIR=$RPM_BUILD_ROOT
 find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
 find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null ';'
-rm -f $RPM_BUILD_ROOT/%{perl_archlib}/perllocal.pod
+rm -f $RPM_BUILD_ROOT%{perl_archlib}/perllocal.pod
 chmod -R u+w $RPM_BUILD_ROOT/*
 
 desktop-file-install --delete-original  --vendor="" \
-  --dir=$RPM_BUILD_ROOT/%{_datadir}/applications         \
-  $RPM_BUILD_ROOT/%{_datadir}/applications/%{name}.desktop
+  --dir=$RPM_BUILD_ROOT%{_desktopdir}         \
+  $RPM_BUILD_ROOT%{_desktopdir}/%{name}.desktop
 
 %find_lang %{name}
 
@@ -73,70 +81,20 @@
 fi
 
 %files -f %{name}.lang
-%defattr(-,root,root,-)
+%defattr(644,root,root,755)
 %doc LICENCE
-%{_bindir}/*
+%attr(755,root,root) %{_bindir}/*
 %{perl_vendorlib}/Gscan2pdf.pm
 %{_datadir}/%{name}
-%{_datadir}/applications/%{name}.desktop
+%{_desktopdir}/%{name}.desktop
 %{_mandir}/man1/*.1*
 
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
-* Fri Dec 12 2008 Jeffrey Ratcliffe <ra28145 at users.sourceforge.net>
-  - New upstream release.
-    Closes: #500547 (fails to save PDF files)
-    Closes: #497629 (Rotation of pages does work on manual double sided scanning)
-    Closes: #497630 (Selection of all odd pages or all even pages)
-    Closes: #504543 (gscan2pdf: Resolution strangeness)
-    Closes: #504546 (gscan2pdf: Resolution not sent to gimp)
-    Closes: #507032 (improper window split between page list and preview pane)
-    New Depends: libsane-perl
-  - New upstream release.
-    Closes: #490356 (gscan2pdf: It is impossible to save current session)
-    Closes: #486115 (PDF files from gscan2pdf are huge)
-    Closes: #493837 (gscan2pdf: should depend on sane-utils, not libsane)
-    Closes: #494074 (Select All Text; Save all OCRed text)
-    New Depends: libarchive-tar-perl
-  - New upstream release.
-    Now Depends: libconfig-general-perl (>= 2.40) to avoid heredoc bug
-    Closes: #480947 (gscan2pdf: Defaults for pages are weird now)
-    Closes: #486553 (gscan2pdf: unable to save as DjVu)
-    Closes: #486680 (gscan2pdf: bizarre DjVu text zones)
-    Closes: #485641 (gscan2pdf: No longer saves resolution in TIFF files)
-    Closes: #484641 (gscan2pdf: prefix option for scanimage command)
-  - Bumped Standards-Version
-  - New upstream release.
-    New Depends: libgtk2-imageview-perl
-  - Updated Homepage and Vcs* sections
-  - Bumped compat 4->5
-  - New upstream release.
-    Closes: #463708 (gscan2pdf: Error when saving as PNG)
-    Closes: #462171 (importing DjVu files fails, hogs memory)
-  - New upstream release.
-    Closes: #461859 (better selected/current/all heuristic)
-    Closes: #461076 (importing PDFs causes /tmp/ overflow)
-  - New upstream release.
-    Closes: #449421 (Recognise warm-up message from gt68xx driver)
-    Closes: #457377 (Can't save files with spaces in names)
-    Closes: #457376 (gscan2pdf: Some paper sizes not available)
-    Closes: #457249 (gscan2pdf: Tries to set threshold option for color scans)
-    Closes: #457375 (gscan2pdf: Nondeterministic duplex scanning)
-    Closes: #461058 (does not ask when quitting without saving the PDF)
-  - Updated rules to dh-make-perl 0.35
-  - Bumped Standards-Version
-  - + watch file
-  - New upstream release.
-    Closes: #440902 (window placement of scan dialog)
-  - New upstream release.
-  - New upstream release.  Closes: #433497, #426525, #440204.
-  - Thanks to Jeffrey Ratcliffe for contributing to this Debian release.
-  - Added Jeffrey Ratcliffe to Uploaders.
-  - New upstream release.
-  - New upstream release.
-  - Initial upload to Debian.  Closes: #420953.
-  - Added support for negative ranges on sliders. [516c47fb2f00]
-  - Added support for brightness slider.  Needed for Visioneer Strobe XP
-    450 scanners.  [516c47fb2f00]
-  - Added scanners/xp450 [b68d6a627700]
-  - Add .tif extension when saving TIFF and DjVu files, to match PDF
-    code.  Fix up PDF saving extension regexp. [a0354eeeb4bf, 06425ce40520]
+* %{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  2009/02/17 13:51:51  jajcus
+- PLDized a bit
+
================================================================

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



More information about the pld-cvs-commit mailing list