rpms/itext/devel itext-1.3-manifest.mf, NONE, 1.1 itext-escape-jpeg-java-trap.patch, NONE, 1.1 itext-no-javadoc-web-links.patch, NONE, 1.1 itext.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
Anthony Green (green)
fedora-extras-commits at redhat.com
Tue Jan 17 13:58:54 UTC 2006
Author: green
Update of /cvs/extras/rpms/itext/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv15739/devel
Modified Files:
.cvsignore sources
Added Files:
itext-1.3-manifest.mf itext-escape-jpeg-java-trap.patch
itext-no-javadoc-web-links.patch itext.spec
Log Message:
auto-import itext-1.3-1jpp_6 on branch devel from itext-1.3-1jpp_6.src.rpm
--- NEW FILE itext-1.3-manifest.mf ---
Manifest-Version: 1.0
Ant-Version: Apache Ant 1.6.2
Main-Class: com.lowagie.tools.Toolbox
itext-escape-jpeg-java-trap.patch:
--- NEW FILE itext-escape-jpeg-java-trap.patch ---
--- src/com/lowagie/text/pdf/PdfGraphics2D.java~ 2006-01-04 04:29:31.000000000 -0800
+++ src/com/lowagie/text/pdf/PdfGraphics2D.java 2006-01-04 04:29:42.000000000 -0800
@@ -170,12 +170,10 @@
*/
PdfGraphics2D(PdfContentByte cb, float width, float height, FontMapper fontMapper, boolean onlyShapes, boolean convertImagesToJPEG, float quality) {
super();
- try {
- Class.forName("com.sun.image.codec.jpeg.JPEGCodec");
- }
- catch (Throwable t) {
- convertImagesToJPEG = false;
- }
+
+ // Free Software implementations don't support JPEG encoding yet
+ convertImagesToJPEG = false;
+
this.convertImagesToJPEG = convertImagesToJPEG;
this.jpegQuality = quality;
this.onlyShapes = onlyShapes;
@@ -1239,25 +1237,9 @@
try {
com.lowagie.text.Image image = null;
- if(!convertImagesToJPEG){
- image = com.lowagie.text.Image.getInstance(img, bgColor);
- }
- else{
- BufferedImage scaled = new BufferedImage(img.getWidth(null), img.getHeight(null), BufferedImage.TYPE_INT_RGB);
- Graphics2D g3 = scaled.createGraphics();
- g3.drawImage(img, 0, 0, img.getWidth(null), img.getHeight(null), null);
- g3.dispose();
-
- ByteArrayOutputStream baos = new ByteArrayOutputStream();
- com.sun.image.codec.jpeg.JPEGImageEncoder encoder = com.sun.image.codec.jpeg.JPEGCodec.createJPEGEncoder(baos);
- com.sun.image.codec.jpeg.JPEGEncodeParam param = com.sun.image.codec.jpeg.JPEGCodec.getDefaultJPEGEncodeParam(scaled);
- param.setQuality(jpegQuality, true);
- encoder.encode(scaled, param);
- scaled.flush();
- scaled = null;
- image = com.lowagie.text.Image.getInstance(baos.toByteArray());
-
- }
+
+ image = com.lowagie.text.Image.getInstance(img, bgColor);
+
if (mask!=null) {
com.lowagie.text.Image msk = com.lowagie.text.Image.getInstance(mask, null, true);
msk.makeMask();
itext-no-javadoc-web-links.patch:
--- NEW FILE itext-no-javadoc-web-links.patch ---
--- src/ant/site.xml~ 2005-03-25 04:32:39.000000000 -0800
+++ src/ant/site.xml 2006-01-16 17:47:43.000000000 -0800
@@ -104,7 +104,6 @@
<packageset dir="${itext.src}" defaultexcludes="yes">
<include name="com/lowagie/**" />
</packageset>
- <link href="http://java.sun.com/j2se/1.3/docs/api/" />
</javadoc>
</target>
--- NEW FILE itext.spec ---
%define section free
Summary: A Free Java-PDF library
Name: itext
Version: 1.3
Release: 1jpp_6%{?dist}
License: MPL/LGPL
URL: http://www.lowagie.com/iText/
Group: Development/Libraries
Source0: itext-src-1.3.tar.gz
Source1: itext-www-1.3.tar.gz
Source2: itext-1.3-manifest.mf
Patch0: itext-escape-jpeg-java-trap.patch
Patch1: itext-no-javadoc-web-links.patch
BuildRequires: jpackage-utils >= 0:1.6
BuildRequires: ant, ant-trax, jaxp_transform_impl
BuildRequires: dos2unix
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: java-gcj-compat-devel >= 1.0.31
Requires(post): java-gcj-compat >= 1.0.31
Requires(postun): java-gcj-compat >= 1.0.31
%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 javadoc
Summary: Javadoc for %{name}
Group: Documentation
%description javadoc
API documentation for the %{name} package.
%package manual
Summary: Documents for %{name}
Group: Documentation
%description manual
A programming manual for the %{name} package.
%prep
%setup -c -T -n %{name}
mkdir -p src/META-INF
(cd src
gzip -dc %{SOURCE0} | tar xf -)
cp %{SOURCE2} src/META-INF/MANIFEST.MF
gzip -dc %{SOURCE1} | tar xf -
find . -name "*.jar" -exec rm {} \;
%patch0 -p0
%patch1 -p0
%build
pushd src
export OPT_JAR_LIST="ant/ant-trax jaxp_transform_impl"
ant jar javadoc tutorial lowagie.com
popd
%install
rm -rf $RPM_BUILD_ROOT
# jars
mkdir -p $RPM_BUILD_ROOT%{_javadir}
cp -p build/bin/iText.jar \
$RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar
(cd $RPM_BUILD_ROOT%{_javadir} && for jar in *-%{version}.jar; do ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`; done)
aot-compile-rpm
dos2unix build/lowagie/*.{txt,xml}
dos2unix build/lowagie/ant/*.xml
dos2unix build/lowagie/ant/.ant.properties
# javadoc
mkdir -p $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
cp -pr build/docs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
# manual
mkdir -p $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
cp -pr build/lowagie/* $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
cp -pr build/examples $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
cp -pr build/tutorial $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
%clean
rm -rf $RPM_BUILD_ROOT
%post -p %{_bindir}/rebuild-gcj-db
%postun -p %{_bindir}/rebuild-gcj-db
%files
%defattr(0644,root,root,0755)
%doc %{_docdir}/%{name}-%{version}/MPL-1.1.txt
%doc %{_docdir}/%{name}-%{version}/lgpl.txt
%{_javadir}/*
%{_libdir}/gcj/*
%files javadoc
%defattr(0644,root,root,0755)
%doc %{_javadocdir}/%{name}-%{version}
%files manual
%defattr(0644,root,root,0755)
%doc %{_docdir}/*
# -----------------------------------------------------------------------------
%changelog
* Mon Jan 17 2006 Anthony Green <green at redhat.com> - 1.3-1jpp_6
- Remove epoch from changelog versions.
* Mon Jan 16 2006 Anthony Green <green at redhat.com> - 1.3-1jpp_5
- Remove empty /usr/share/java/itext.
- Move manual and javadoc packages to Documentation group.
- Add itext-no-javadoc-web-links.patch.
* Mon Jan 16 2006 Anthony Green <green at redhat.com> - 1.3-1jpp_4
- Fixed Group.
- Cleaned up changelog versions.
- Use dos2unix on doc files.
- Don't create unversioned javadoc link.
* Thu Jan 13 2006 Anthony Green <green at redhat.com> - 1.3-1jpp_3
- Remove javadoc %postun, as that should get handled by the fact
that the file is ghosted.
- Improve javadoc and manual subpackage descriptions.
* Wed Jan 4 2006 Anthony Green <green at redhat.com> - 1.3-1jpp_2
- Add ant-trax and jaxp_transform_impl dependencies.
- Set OPT_JAR_LIST.
* Wed Jan 4 2006 Anthony Green <green at redhat.com> - 1.3-1jpp_1
- Build native code.
- Add patch to remove proprietary jpeg encoding library usage.
- Fix BuildRequires.
- Tweak BuildRoot.
* Thu Aug 26 2005 Ralph Apel <r.apel at r-apel.de> - 1.3-1jpp
- Upgrade to 1.3
- Now one jar only
* Wed Aug 25 2004 Ralph Apel <r.apel at r-apel.de> - 1.02b-2jpp
- Build with ant-1.6.2
- Relax some versioned dependencies
* Fri Feb 27 2004 Ralph Apel <r.apel at r-apel.de> - 1.02b-1jpp
- First JPackage release
Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/itext/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore 17 Jan 2006 13:56:33 -0000 1.1
+++ .cvsignore 17 Jan 2006 13:58:54 -0000 1.2
@@ -0,0 +1,2 @@
+itext-src-1.3.tar.gz
+itext-www-1.3.tar.gz
Index: sources
===================================================================
RCS file: /cvs/extras/rpms/itext/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources 17 Jan 2006 13:56:33 -0000 1.1
+++ sources 17 Jan 2006 13:58:54 -0000 1.2
@@ -0,0 +1,2 @@
+6d31b384060ae93c5691fc5b6c017b1e itext-src-1.3.tar.gz
+710cc9ecfff65c95e2dd84dc3b03fa1d itext-www-1.3.tar.gz
More information about the scm-commits
mailing list