Projects
home:Eustace:branches:Eulaceura:Factory
itext
_service:obs_scm:itext.spec
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:obs_scm:itext.spec of Package itext
%global alternate_name iText Summary: A Free Java-PDF library Name: itext Version: 2.1.7 Release: 1 #src/toolbox/com/lowagie/toolbox/Versions.java is MPLv1.1 or MIT #src/toolbox/com/lowagie/toolbox/plugins/XML2Bookmarks.java is MPLv1.1 or LGPLv2+ #src/rups/com/lowagie/rups/Rups.java is LGPLv2+ #src/rups/com/lowagie/rups/view/icons/ are under CC-BY #src/core/com/lowagie/text/xml/XmlDomWriter.java is under ASL 2.0 #src/core/com/lowagie/text/pdf/LZWDecoder.java is under BSD #src/core/com/lowagie/text/pdf/fonts/cmaps/CodespaceRange.java is under BSD #src/core/com/lowagie/text/pdf/fonts are under APAFML #src/core/com/lowagie/text/pdf/codec/TIFFConstants.java is under libtiff License: (LGPLv2+ or MPLv1.1) and ASL 2.0 and BSD and LGPLv2+ and (MPLv1.1 or MIT) and CC-BY and APAFML and libtiff URL: http://www.lowagie.com/iText/ # sh itext-create-tarball.sh 2.1.7 Source0: %{name}-%{version}.tar.xz Source2: http://repo2.maven.org/maven2/com/lowagie/itext/%{version}/itext-%{version}.pom Source3: itext-rups.sh Source4: itext-rups.desktop Source6: itext-toolbox.desktop # cvs -d :pserver:xxx@dev.eclipse.org:/cvsroot/tools checkout -r v2_1_7 org.eclipse.orbit/com.lowagie.text/META-INF/MANIFEST.MF # tar cf export-manifest.tar org.eclipse.orbit/com.lowagie.text/META-INF/MANIFEST.MF Source7: export-manifest.tar Source8: http://repo2.maven.org/maven2/com/lowagie/itext-rtf/%{version}/itext-rtf-%{version}.pom Source9: http://repo2.maven.org/maven2/com/lowagie/itext-rups/%{version}/itext-rups-%{version}.pom Source10: itext-create-tarball.sh Patch1: itext-2.1.5-pdftk.patch Patch3: itext-xmloutput.patch Patch4: itext-manifest.patch Patch5: itext-remove-unmappable.patch Patch6: 0001-Port-to-bouncycastle-1.50.patch Patch7: itext-2.1.7-bouncycastle1.52.patch Patch8: itext-2.1.7-tibco-changes.patch BuildRequires: ant bouncycastle-mail >= 1.52 bouncycastle-pkix >= 1.52 desktop-file-utils BuildRequires: dom4j ImageMagick pdf-renderer java-devel >= 1.7 jpackage-utils BuildRequires: javapackages-local BuildArch: noarch Provides: %{alternate_name} == %{version}-%{release} Requires: %{name}-core = %{version}-%{release} %description iText is a library that allows you to generate PDF files on the fly. The iText classes are very useful for people who need to generate read-only, platform independent documents containing text, lists, tables and images. The library is especially useful in combination with Java(TM) technology-based Servlets: The look and feel of HTML is browser dependent; with iText and PDF you can control exactly how your servlet's output will look. %package core Summary: The core iText Java-PDF library BuildArch: noarch Requires: bouncycastle-mail >= 1.52 bouncycastle-pkix >= 1.52 jpackage-utils Obsoletes: itext < 2.1.7-12 %description core The core package contains the main iText library and the related maven POM files. %package rtf Summary: Library to output Rich Text Files BuildArch: noarch License: MPLv1.1 or LGPLv2+ Requires: %{name}-core = %{version}-%{release} %description rtf The RTF package is an extension of the iText library and allows iText to output Rich Text Files in addition to PDF files. These files can then be viewed and edited with RTF viewers such as OpenOffice.org Writer. %package rups Summary: Reading/Updating PDF Syntax BuildArch: noarch License: LGPLv2+ and CC-BY Requires: %{name}-core = %{version}-%{release} dom4j pdf-renderer %description rups iText RUPS is a tool that combines SUN's PDF Renderer (to view PDF documents), iText's PdfReader (to inspect the internal structure of a PDF file), and iText's PdfStamper to manipulate a PDF file. %package toolbox Summary: Some %{alternate_name} tools BuildArch: noarch License: MPLv1.1 or MIT Requires: %{name} = %{version}-%{release} %description toolbox iText is a free open source Java-PDF library released on SF under the MPL/LGPL; iText comes with a simple GUI: the iText toolbox. The original developers of iText want to publish this toolbox as a separate project under the more permissive MIT license. This is a utility that allows you to use a number of iText tools. %package javadoc Summary: Javadoc for %{alternate_name} BuildArch: noarch Requires: %{name}-core = %{version}-%{release} jpackage-utils %description javadoc API documentation for the %{alternate_name} package. %prep %setup -q -c -T -a 0 %patch1 -p1 -b .pdftk %patch3 -p0 -b .xmloutput %patch4 -p0 %patch5 -p0 %patch6 -p1 %patch7 -p1 %patch8 -p1 sed -i.bcprov1.54 "s|algorithmidentifier.getObjectId().getId|algorithmidentifier.getAlgorithm().getId|" \ src/core/com/lowagie/text/pdf/PdfPublicKeySecurityHandler.java cp -pr %{SOURCE2} JPP-itext.pom %pom_remove_dep bouncycastle:bcmail-jdk14 JPP-itext.pom %pom_add_dep org.bouncycastle:bcmail-jdk15on JPP-itext.pom %pom_remove_dep bouncycastle:bcprov-jdk14 JPP-itext.pom %pom_add_dep org.bouncycastle:bcprov-jdk15on JPP-itext.pom %pom_remove_dep bouncycastle:bctsp-jdk14 JPP-itext.pom %pom_add_dep org.bouncycastle:bcpkix-jdk15on JPP-itext.pom cp -pr %{SOURCE8} JPP-%{name}-rtf.pom cp -pr %{SOURCE9} JPP-%{name}-rups.pom for p in rtf rups ; do %pom_remove_dep bouncycastle:bcmail-jdk14 JPP-%{name}-${p}.pom %pom_add_dep org.bouncycastle:bcmail-jdk15on JPP-%{name}-${p}.pom %pom_remove_dep bouncycastle:bcprov-jdk14 JPP-%{name}-${p}.pom %pom_add_dep org.bouncycastle:bcprov-jdk15on JPP-%{name}-${p}.pom %pom_remove_dep bouncycastle:bctsp-jdk14 JPP-%{name}-${p}.pom %pom_add_dep org.bouncycastle:bcpkix-jdk15on JPP-%{name}-${p}.pom done tar -xf %{SOURCE7} mv org.eclipse.orbit/com.lowagie.text/META-INF/MANIFEST.MF src/ant find . -name "*.jar" -exec rm {} \; sed 's/\r//' src/rups/com/lowagie/rups/view/icons/copyright_notice.txt > tmpfile touch -r src/rups/com/lowagie/rups/view/icons/copyright_notice.txt tmpfile mv -f tmpfile src/rups/com/lowagie/rups/view/icons/copyright_notice.txt mkdir lib build-jar-repository -s -p lib bcprov bcmail bcpkix pdf-renderer dom4j for file in src/ant/{*,.ant*}; do for jarname in bcmail bcprov dom4j; do sed -i "s|$jarname-.*\.jar|$jarname.jar|" $file done done for file in src/ant/{*,.ant*}; do sed -i "s|bctsp-.*\.jar|bcpkix.jar|" $file done sed -i 's|destdir|debug="on" destdir|g' src/ant/compile.xml sed -i 's|debug="true"||g' src/ant/compile.xml sed -i 's|author|Encoding="ISO-8859-1" author|' src/ant/site.xml sed -i 's|maxmemory="128m"|maxmemory="512m"|' src/ant/site.xml sed -i '/Class-Path/d' src/ant/compile.xml sed -i 's,59 Temple Place,51 Franklin Street,;s,Suite 330,Fifth Floor,;s,02111-1307,02110-1301,' src/core/com/lowagie/text/lgpl.txt %build export CLASSPATH=$(build-classpath bcprov bcmail bcpkix pdf-renderer dom4j) pushd src ant -Ditext.jdk.core=1.6 \ -Ditext.jdk.rups=1.6 \ -Ditext.jdk.toolbox=1.6 \ jar jar.rups jar.rtf jar.toolbox javadoc popd %install mkdir -p $RPM_BUILD_ROOT%{_javadir} cp -p lib/iText.jar \ $RPM_BUILD_ROOT%{_javadir}/%{name}.jar cp -p lib/iText-rtf.jar \ $RPM_BUILD_ROOT%{_javadir}/%{name}-rtf.jar cp -p lib/iText-rups.jar \ $RPM_BUILD_ROOT%{_javadir}/%{name}-rups.jar cp -p lib/iText-toolbox.jar \ $RPM_BUILD_ROOT%{_javadir}/%{name}-toolbox.jar mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications desktop-file-install \ --dir=${RPM_BUILD_ROOT}%{_datadir}/applications \ %{SOURCE6} %jpackage_script com.lowagie.toolbox.Toolbox "" "" %{name}:%{name}-toolbox:bcmail:bcprov:bctsp %{name}-toolbox true install -pm 755 %{SOURCE3} $RPM_BUILD_ROOT%{_bindir}/%{name}-rups desktop-file-install \ --dir=${RPM_BUILD_ROOT}%{_datadir}/applications \ %{SOURCE4} mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/128x128/apps convert -resize 128x128 src/toolbox/com/lowagie/toolbox/1t3xt.gif %{name}.png cp -a %{name}.png \ $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/128x128/apps/%{name}-rups.png cp -a %{name}.png \ $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/128x128/apps/%{name}-toolbox.png mkdir -p $RPM_BUILD_ROOT%{_javadocdir}/%{name} cp -pr build/docs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name} install -dm 755 $RPM_BUILD_ROOT%{_mavenpomdir} cp -pr JPP-itext.pom $RPM_BUILD_ROOT%{_mavenpomdir} %add_maven_depmap JPP-%{name}.pom %{name}.jar -a "itext:itext" cp -pr JPP-%{name}-rtf.pom $RPM_BUILD_ROOT%{_mavenpomdir} %add_maven_depmap JPP-%{name}-rtf.pom %{name}-rtf.jar -f rtf cp -pr JPP-%{name}-rups.pom $RPM_BUILD_ROOT%{_mavenpomdir} %add_maven_depmap JPP-%{name}-rups.pom %{name}-rups.jar -f rups %files %license build/bin/com/lowagie/text/{apache_license,lgpl,misc_licenses,MPL-1.1}.txt %files core -f .mfiles %license build/bin/com/lowagie/text/{apache_license,lgpl,misc_licenses,MPL-1.1}.txt %files rtf -f .mfiles-rtf %license build/bin/com/lowagie/text/{lgpl,misc_licenses,MPL-1.1}.txt %files rups -f .mfiles-rups %license src/rups/com/lowagie/rups/view/icons/copyright_notice.txt %{_bindir}/%{name}-rups %{_datadir}/applications/%{name}-rups.desktop %{_datadir}/icons/hicolor/128x128/apps/%{name}-rups.png %files toolbox %license build/bin/com/lowagie/text/{misc_licenses,MPL-1.1}.txt %doc src/toolbox/com/lowagie/toolbox/tools.txt %{_javadir}/%{name}-toolbox.jar %{_bindir}/%{name}-toolbox %{_datadir}/applications/%{name}-toolbox.desktop %{_datadir}/icons/hicolor/128x128/apps/%{name}-toolbox.png %files javadoc %{_javadocdir}/%{name} %license build/bin/com/lowagie/text/{apache_license,lgpl,misc_licenses,MPL-1.1}.txt %changelog * Thu Sep 3 2020 huanghaitao <huanghaitao8@huawei.com> - 2.1.7-1 - package init
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2