Index: itext.spec =================================================================== RCS file: /cvs/pkgs/rpms/itext/devel/itext.spec,v retrieving revision 1.21 diff -u -r1.21 itext.spec --- itext.spec 25 Jul 2009 03:41:30 -0000 1.21 +++ itext.spec 27 Aug 2009 15:43:45 -0000 @@ -1,36 +1,39 @@ %global with_gcj %{!?_without_gcj:1}%{?_without_gcj:0} %global alternate_name iText -Summary: A Free Java-PDF library -Name: itext -Version: 2.1.7 -Release: 2%{?dist} -License: (LGPLv2+ or MPLv1.1) and ASL 2.0 and BSD and MIT and LGPLv2+ and CC-BY -URL: http://www.lowagie.com/iText/ -Group: Development/Libraries -Source0: http://downloads.sourceforge.net/itext/iText-src-%{version}.tar.gz -Patch1: itext-2.1.5-pdftk.patch -BuildRequires: ant -BuildRequires: bouncycastle-tsp -BuildRequires: dom4j -BuildRequires: pdf-renderer -BuildRequires: java-devel >= 1.5 -BuildRequires: jpackage-utils +Summary: A Free Java-PDF library +Name: itext +Version: 2.1.7 +Release: 3%{?dist} +License: (LGPLv2+ or MPLv1.1) and ASL 2.0 and BSD and MIT and LGPLv2+ and CC-BY +URL: http://www.lowagie.com/iText/ +Group: Development/Libraries +Source0: http://downloads.sourceforge.net/itext/iText-src-%{version}.tar.gz +Source2: http://repo2.maven.org/maven2/com/lowagie/itext/%{version}/itext-%{version}.pom +Patch1: itext-2.1.5-pdftk.patch +BuildRequires: ant +BuildRequires: bouncycastle-tsp +BuildRequires: dom4j +BuildRequires: pdf-renderer +BuildRequires: java-devel >= 1.5 +BuildRequires: jpackage-utils %if %{with_gcj} BuildRequires: java-gcj-compat-devel Requires(post): java-gcj-compat Requires(postun): java-gcj-compat Requires: java-1.5.0-gcj %else -BuildArch: noarch +BuildArch: noarch %endif -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) -Requires: bouncycastle-tsp -Requires: dom4j -Requires: java >= 1.5 -Requires: jpackage-utils >= 1.5 -Requires: pdf-renderer -Provides: %{alternate_name} == %{version}-%{release} +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +Requires: bouncycastle-tsp +Requires: dom4j +Requires: java >= 1.5 +Requires: jpackage-utils >= 1.5 +Requires(post): jpackage-utils >= 1.7 +Requires(postun): jpackage-utils >= 1.7 +Requires: pdf-renderer +Provides: %{alternate_name} == %{version}-%{release} %description iText is a library that allows you to generate PDF files on the fly. The iText @@ -102,10 +105,17 @@ mkdir -p $RPM_BUILD_ROOT%{_javadocdir}/%{name} cp -pr build/docs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name} +# Install the pom +install -dm 755 $RPM_BUILD_ROOT%{_datadir}/maven2/poms +cp -pr %{SOURCE2} $RPM_BUILD_ROOT%{_mavenpomdir}/JPP-itext.pom +%add_to_maven_depmap itext itext %{version} JPP itext +%add_to_maven_depmap com.lowagie itext %{version} JPP itext + %clean rm -rf $RPM_BUILD_ROOT %post +%update_maven_depmap %if %{with_gcj} if [ -x %{_bindir}/rebuild-gcj-db ] then @@ -114,6 +124,7 @@ %endif %postun +%update_maven_depmap %if %{with_gcj} if [ -x %{_bindir}/rebuild-gcj-db ] then @@ -127,6 +138,8 @@ %doc build/bin/com/lowagie/text/{apache_license,lgpl,misc_licenses,MPL-1.1}.txt %doc src/rups/com/lowagie/rups/view/icons/copyright_notice.txt %{_javadir}/* +%{_mavenpomdir}/JPP-itext.pom +%{_mavendepmapfragdir}/%{name} %if %{with_gcj} %{_libdir}/gcj/%{name} %endif @@ -138,6 +151,9 @@ # ----------------------------------------------------------------------------- %changelog +* Thu Aug 20 2009 Andrew Overholt 2.1.7-3 +- Add maven POM file for use by other maven packages + * Fri Jul 24 2009 Fedora Release Engineering - 2.1.7-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild