packages: pdftk/pdftk.spec - fix possible deps

glen glen at pld-linux.org
Mon Oct 24 10:29:42 CEST 2011


Author: glen                         Date: Mon Oct 24 08:29:42 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- fix possible deps

---- Files affected:
packages/pdftk:
   pdftk.spec (1.26 -> 1.27) 

---- Diffs:

================================================================
Index: packages/pdftk/pdftk.spec
diff -u packages/pdftk/pdftk.spec:1.26 packages/pdftk/pdftk.spec:1.27
--- packages/pdftk/pdftk.spec:1.26	Sat Oct 22 10:23:37 2011
+++ packages/pdftk/pdftk.spec	Mon Oct 24 10:29:37 2011
@@ -1,5 +1,5 @@
 # $Revision$, $Date$
-%global		itextvers 2.1.7
+%define		itextvers 2.1.7
 Summary:	pdftk - the pdf tool kit
 Summary(pl.UTF-8):	pdftk - Zestaw narzędzi dla plików PDF
 Name:		pdftk
@@ -12,18 +12,17 @@
 Patch0:		%{name}-use-internal-itext.patch
 Patch1:		%{name}-classpath.patch
 URL:		http://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/
-BuildRequires:	binutils
 BuildRequires:	dos2unix
-BuildRequires:	jar
 BuildRequires:	gcc-java
-BuildRequires:	itext >= %{itextvers}
+BuildRequires:	jar
 BuildRequires:	jasper-devel
+BuildRequires:	java-itext >= %{itextvers}
 BuildRequires:	libgcj-devel
 BuildRequires:	libstdc++-devel
 BuildRequires:	libwmf-devel
 BuildRequires:	unzip
+Requires:	java-itext >= %{itextvers}
 Requires:	libgcj
-Requires:	itext >= 2.1.7-6
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -55,20 +54,19 @@
 %patch1 -p0
 
 # remove bundled libraries from source tree
-%{__rm} -r java
+%{__rm} -rv java
 
 %build
 unset CLASSPATH
 %{__make} -j1 -f Makefile.Redhat -C pdftk \
 	LIBDIR="%{_libdir}" \
-	ITEXTVERS="%{itextvers}" 
+	ITEXTVERS="%{itextvers}"
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_bindir}
-install -d $RPM_BUILD_ROOT%{_mandir}/man1
-install pdftk/pdftk $RPM_BUILD_ROOT%{_bindir}/pdftk
-install pdftk.1 $RPM_BUILD_ROOT%{_mandir}/man1/pdftk.1
+install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1}
+install -p pdftk/pdftk $RPM_BUILD_ROOT%{_bindir}/pdftk
+cp -p pdftk.1 $RPM_BUILD_ROOT%{_mandir}/man1/pdftk.1
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -85,6 +83,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.27  2011/10/24 08:29:37  glen
+- fix possible deps
+
 Revision 1.26  2011/10/22 08:23:37  arekm
 - release 5
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/pdftk/pdftk.spec?r1=1.26&r2=1.27&f=u



More information about the pld-cvs-commit mailing list