On 06/19/2012 11:36 AM, Andreas Lehmkuehler wrote:
Hi,
sorry for the late answer, but I didn't found the time before...
Am 04.06.2012 18:09, schrieb Orion Poplawski:
On 06/01/2012 10:33 AM, Andreas Lehmkuehler wrote:
Am 31.05.2012 01:04, schrieb Orion Poplawski:
On 05/30/2012 04:58 PM, Orion Poplawski wrote:
On 05/29/2012 10:18 AM, Andreas Lehmkuehler wrote:
The Apache PDFBox community is pleased to announce the release of
Apache PDFBox version 1.7.0. The release is available for download at:
Hmm, I'm not able to build it on Fedora 17 with openjdk 1.7.0.
I see *lots* of these tracebacks.
Works for Fedora 16 though with openjdk 1.6.0. There may be other
differences
as well. Anyone else try building with Java 7?
I should note that I am able to build PDFBox 1.6.0 fine with openjdk
1.7.0, so
this is a new problem with PDFBox 1.7.0.
It worked for me on win 7. Did you use the same environment to build pdfbox
1.6.0 and 1.7.0?
BR
Andreas Lehmkühler
Yes it's the same build environment. Any other debug information that would be
useful?
I tried the same and it worked for me. I used a fresh installed fedora 17
including all updates.
Here are the version details
[lehmi@endor ~]$ java -version
java version "1.7.0_03-icedtea"
OpenJDK Runtime Environment (fedora-2.2.1.fc17.8-x86_64)
OpenJDK 64-Bit Server VM (build 23.0-b21, mixed mode)
[lehmi@endor ~]$ mvn -version
#/usr/lib/jvm/java
Apache Maven 3.0.4 (rNON-CANONICAL_2012-05-14_12-35_mockbuild; 2012-05-14
14:35:26+0200)
Maven home: /usr/share/maven
Java version: 1.7.0_03-icedtea, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.3.x86_64/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "3.4.2-4.fc17.x86_64", arch: "amd64", family: "unix"
[lehmi@endor ~]$ uname -a
Linux endor 3.4.2-4.fc17.x86_64 #1 SMP Thu Jun 14 22:22:05 UTC 2012 x86_64
x86_64 x86_64 GNU/Linux
What versions are you using?
BR
Andreas Lehmkühler
The same, but I'm using mvn-rpmbuild in order to build the pdfbox rpm. See
the attached spec file. Build with rpmbuild -ba pdfbox.spec. This ensures
that it is built against system versions of needed libraries. There are some
modifications that are needed to make this work as well.
--
Orion Poplawski
Technical Manager 303-415-9701 x222
NWRA, Boulder Office FAX: 303-415-9702
3380 Mitchell Lane [email protected]
Boulder, CO 80301 http://www.nwra.com
Name: pdfbox
Version: 1.7.0
Release: 1%{?dist}
Summary: Java library for working with PDF documents
Group: Development/Libraries
License: ASL 2.0
URL: http://pdfbox.apache.org/
Source0: http://www.apache.org/dist/pdfbox/%{version}/%{name}-%{version}-src.zip
#Don't download anything
Patch0: %{name}-nodownload.patch
#Use sysytem bitream-vera-sans-fonts instead of bundled fonts
Patch1: %{name}-1.2.0-bitstream.patch
#Patch2: %{name}-debug.patch
BuildRequires: jpackage-utils
BuildRequires: java-devel >= 1:1.6.0
BuildRequires: ant
BuildRequires: maven
BuildRequires: maven-antrun-plugin
BuildRequires: maven-plugin-bundle
BuildRequires: maven-compiler-plugin
BuildRequires: maven-install-plugin
BuildRequires: maven-jar-plugin
BuildRequires: maven-javadoc-plugin
BuildRequires: maven-resources-plugin
BuildRequires: maven-surefire-plugin
BuildRequires: maven-deploy-plugin
BuildRequires: maven-doxia-sitetools
BuildRequires: maven-release-plugin
BuildRequires: maven-site-plugin
BuildRequires: maven-surefire-provider-junit
BuildRequires: maven-surefire-provider-junit4
BuildRequires: maven-war-plugin
BuildRequires: apache-rat-plugin
BuildRequires: bouncycastle-mail
BuildRequires: icu4j
BuildRequires: apache-commons-logging
BuildRequires: junit4
BuildRequires: lucene-demo >= 2.4.1
BuildRequires: pcfi
BuildArch: noarch
Requires: jpackage-utils
Requires: java >= 1:1.6.0
Requires: bitstream-vera-sans-fonts
Requires: bouncycastle-mail
Requires: fontbox
Requires: icu4j
Requires: apache-commons-logging
Requires: jempbox
Requires: lucene-demo >= 2.4.1
Obsoletes: %{name}-app <= 1.6.0-4
Provides: %{name}-app = %{version}-%{release}
%description
Apache PDFBox is an open source Java PDF library for working with PDF
documents. This project allows creation of new PDF documents, manipulation of
existing documents and the ability to extract content from documents. Apache
PDFBox also includes several command line utilities. Apache PDFBox is
published under the Apache License v2.0.
%package examples
Summary: Examples for %{name}
Group: Documentation
Requires: jpackage-utils
%description examples
This package contains examples for %{name}.
%package javadoc
Summary: Javadocs for %{name}
Group: Documentation
Requires: jpackage-utils
Provides: fontbox-javadocs = %{version}-%{release}
Obsoletes: fontbox-javadocs < %{version}-%{release}
Provides: jempbox-javadocs = %{version}-%{release}
Obsoletes: jempbox-javadocs < %{version}-%{release}
%description javadoc
This package contains the API documentation for %{name}.
%package ant
Summary: Apache PDFBox for Ant
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
Requires: ant
%description ant
%{summary}.
%package -n fontbox
Summary: Apache FontBox
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
Requires: junit
%description -n fontbox
FontBox is a Java library used to obtain low level information from font
files. FontBox is a subproject of Apache PDFBox.
%package -n jempbox
Summary: Apache JempBox
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
Requires: junit
%description -n jempbox
JempBox is an open source Java library that implements Adobe's XMP(TM)
specification. JempBox is a subproject of Apache PDFBox.
%package lucene
Summary: Apache PDFBox for Lucene
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
Requires: lucene-demo >= 2.4.1
%description lucene
%{summary}.
%prep
%setup -q
%patch0 -p1 -b .nodownload
%patch1 -p1 -b .bitstream
#patch2 -p1 -b .debug
#Use jdk16 version of bcprov
sed -i -e s/jdk15/jdk16/g */pom.xml
# Don't build app (it's just a bundle of everything)
sed -i -e /app/d pom.xml
find -name '*.class' -exec rm -f '{}' \;
find -name '*.jar' -exec rm -f '{}' \;
#Fix line endings
sed -i -e 's|\r||' RELEASE-NOTES.txt
#Remove META-INF file that does not exist
sed -i -e '/META-INF/d' pdfbox/pom.xml
#Remove included fonts
rm -r pdfbox/src/main/resources/org/apache/pdfbox/resources/ttf
%build
mvn-rpmbuild -Dadobefiles.jar=%{_javadir}/pcfi.jar install javadoc:aggregate
%install
mkdir -p $RPM_BUILD_ROOT%{_javadir}
mkdir -p $RPM_BUILD_ROOT%{_javadocdir}
mkdir -p $RPM_BUILD_ROOT%{_mavenpomdir}
for jar in */target/*.jar
do
dir=$(dirname $jar)
target=$(dirname $dir)
jarname=$target
[ -f ${dir}/%{name}-${target}-%{version}.jar ] && jarname=%{name}-${target}
cp -p ${dir}/${jarname}-%{version}.jar \
$RPM_BUILD_ROOT%{_javadir}/${jarname}.jar
cp -p ${target}/pom.xml $RPM_BUILD_ROOT%{_mavenpomdir}/JPP-${jarname}.pom
%add_maven_depmap JPP-${jarname}.pom ${jarname}.jar
done
# Javadocs
cp -rp target/site/apidocs $RPM_BUILD_ROOT%{_javadocdir}/%{name}
#Parent
cp -p parent/pom.xml $RPM_BUILD_ROOT%{_mavenpomdir}/JPP-pdfbox-parent.pom
%add_maven_depmap JPP-pdfbox-parent.pom
#TODO - install/ship war
%files
%doc LICENSE.txt NOTICE.txt README.txt RELEASE-NOTES.txt
%{_javadir}/%{name}.jar
%{_mavenpomdir}/JPP-%{name}.pom
%{_mavenpomdir}/JPP-%{name}-parent.pom
%{_mavendepmapfragdir}/%{name}
%files examples
%doc LICENSE.txt
%{_javadir}/%{name}-examples.jar
%{_mavenpomdir}/JPP-%{name}-examples.pom
%files javadoc
%doc LICENSE.txt
%{_javadocdir}/%{name}
%files ant
%doc LICENSE.txt
%{_javadir}/%{name}-ant.jar
%{_mavenpomdir}/JPP-%{name}-ant.pom
%files -n fontbox
%doc LICENSE.txt
%{_javadir}/fontbox.jar
%{_mavenpomdir}/JPP-fontbox.pom
%files -n jempbox
%doc LICENSE.txt
%{_javadir}/jempbox.jar
%{_mavenpomdir}/JPP-jempbox.pom
%files lucene
%doc LICENSE.txt
%{_javadir}/%{name}-lucene.jar
%{_mavenpomdir}/JPP-%{name}-lucene.pom
%changelog
* Tue May 29 2012 Orion Poplawski <[email protected]> - 1.7.0-1
- Update to 1.7.0
- Add examples sub-package
* Wed Apr 18 2012 Orion Poplawski <[email protected]> - 1.6.0-5
- Drop pdfbox-app sub-package, nothing but a bundle (bug #813712)
* Wed Feb 1 2012 Orion Poplawski <[email protected]> - 1.6.0-4
- Add proper provides/obsoletes to javadoc sub-package (bug #785396)
* Fri Jan 13 2012 Fedora Release Engineering <[email protected]> - 1.6.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
* Mon Oct 24 2011 Orion Poplawski <[email protected]> - 1.6.0-2
- BR separately packaged pcfi
* Wed Aug 10 2011 Orion Poplawski <[email protected]> - 1.6.0-1
- Update to 1.6.0
- Add pcfi-2010.08.09.jar to sources
- Drop depmap
- Use apache-commons-logging
- Other cleanup
* Fri Jun 3 2011 Orion Poplawski <[email protected]> - 1.5.0-2
- Use maven 3
- Single javadoc package
* Thu Mar 10 2011 Orion Poplawski <[email protected]> - 1.5.0-1
- Update to 1.5.0
* Tue Dec 27 2010 Orion Poplawski <[email protected]> - 1.4.0-2
- Create sub-packages
- Use depmap file
* Tue Dec 21 2010 Orion Poplawski <[email protected]> - 1.4.0-1
- Update to 1.4.0
* Sat Nov 6 2010 Orion Poplawski <[email protected]> - 1.3.1-1
- Update to 1.3.1
* Fri Aug 13 2010 Orion Poplawski <[email protected]> - 1.3.0-0.1
- Update to 1.3.0-SNAPSHOT
* Thu Jul 13 2010 Orion Poplawski <[email protected]> - 1.2.1-1
- Update to 1.2.1
* Thu Jul 1 2010 Orion Poplawski <[email protected]> - 1.2.0-1
- Update to 1.2.0
- Drop gcj support
* Mon Oct 19 2009 Orion Poplawski <[email protected]> - 0.8.0-2
- Add Requires
* Thu Oct 15 2009 Orion Poplawski <[email protected]> - 0.8.0-1
- Initial Fedora package
--- pdfbox-1.2.0/pdfbox/src/main/resources/org/apache/pdfbox/resources/PDFBox_External_Fonts.properties.bitstream 2010-06-24 20:34:40.000000000 -0600
+++ pdfbox-1.2.0/pdfbox/src/main/resources/org/apache/pdfbox/resources/PDFBox_External_Fonts.properties 2010-07-07 10:22:47.367942753 -0600
@@ -13,7 +13,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
-Arial-BoldItalicMT=org/apache/pdfbox/resources/ttf/Arial-BoldItalicMT.ttf
-Arial-BoldMT=org/apache/pdfbox/resources/ttf/Arial-BoldMT.ttf
-ArialMT=org/apache/pdfbox/resources/ttf/ArialMT.ttf
-UNKNOWN_FONT=org/apache/pdfbox/resources/ttf/ArialMT.ttf
+Arial-BoldItalicMT=/usr/share/fonts/bitstream-vera/VeraBI.ttf
+Arial-BoldMT=/usr/share/fonts/bitstream-vera/VeraBd.ttf
+ArialMT=/usr/share/fonts/bitstream-vera/Vera.ttf
+UNKNOWN_FONT=/usr/share/fonts/bitstream-vera/Vera.ttf
diff -up pdfbox-1.6.0/pdfbox/build.xml.nodownload pdfbox-1.6.0/pdfbox/build.xml
--- pdfbox-1.6.0/pdfbox/build.xml.nodownload 2011-06-28 20:35:30.000000000 -0600
+++ pdfbox-1.6.0/pdfbox/build.xml 2011-08-10 12:00:41.099824956 -0600
@@ -223,10 +223,6 @@
<target name="get.adobefiles"
unless="adobefiles.found" depends="find.adobefiles"
description="Download and unpack afm and cmap files from Adobe">
- <antcall target="downloadfile">
- <param name="sourcefile" value="${adobefiles.url}"/>
- <param name="destfile" value="${adobefiles.jar}"/>
- </antcall>
<unjar src="${adobefiles.jar}" dest="${pdfbox.dest.dir}/org/apache/pdfbox/resources/afm">
<patternset>
<include name="com/adobe/pdf/pcfi/afm/*.afm"/>