Accepting request 806994 from Java:packages
boo#1145693 OBS-URL: https://build.opensuse.org/request/show/806994 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xmlgraphics-fop?expand=0&rev=44
This commit is contained in:
commit
e691a74f59
@ -25,7 +25,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|||||||
<artifactId>fop</artifactId>
|
<artifactId>fop</artifactId>
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
<name>Apache FOP</name>
|
<name>Apache FOP</name>
|
||||||
<version>@version@</version>
|
<version>2.1</version>
|
||||||
<url>http://xmlgraphics.apache.org/fop/</url>
|
<url>http://xmlgraphics.apache.org/fop/</url>
|
||||||
<description>Apache FOP (Formatting Objects Processor) is the world's first print formatter driven by XSL formatting objects (XSL-FO) and the world's first output independent formatter. It is a Java application that reads a formatting object (FO) tree and renders the resulting pages to a specified output. Output formats currently supported include PDF, PCL, PS, AFP, TIFF, PNG, SVG, XML (area tree representation), Print, AWT and TXT. The primary output target is PDF.</description>
|
<description>Apache FOP (Formatting Objects Processor) is the world's first print formatter driven by XSL formatting objects (XSL-FO) and the world's first output independent formatter. It is a Java application that reads a formatting object (FO) tree and renders the resulting pages to a specified output. Output formats currently supported include PDF, PCL, PS, AFP, TIFF, PNG, SVG, XML (area tree representation), Print, AWT and TXT. The primary output target is PDF.</description>
|
||||||
<inceptionYear>1999</inceptionYear>
|
<inceptionYear>1999</inceptionYear>
|
@ -1,3 +1,12 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon May 18 14:41:12 UTC 2020 - Fridrich Strba <fstrba@suse.com>
|
||||||
|
|
||||||
|
- Do not install the OFFO hyphenation files to datadir, but package
|
||||||
|
instead the xmlgraphics-fop-hyph.jar and
|
||||||
|
xmlgraphics-fop-sandbox.jar that we build anyway. This fixes
|
||||||
|
boo#1145693
|
||||||
|
- Clean up the build a bit
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Apr 3 10:50:59 UTC 2020 - Fridrich Strba <fstrba@suse.com>
|
Fri Apr 3 10:50:59 UTC 2020 - Fridrich Strba <fstrba@suse.com>
|
||||||
|
|
||||||
|
@ -33,7 +33,7 @@ fi
|
|||||||
|
|
||||||
# Rest of the configuration
|
# Rest of the configuration
|
||||||
MAIN_CLASS=org.apache.fop.cli.Main
|
MAIN_CLASS=org.apache.fop.cli.Main
|
||||||
BASE_JARS="xmlgraphics-fop xmlgraphics-commons commons-logging commons-io avalon-framework-api avalon-framework-impl batik-all fontbox xml-commons-apis xml-commons-apis-ext"
|
BASE_JARS="xmlgraphics-fop xmlgraphics-fop-hyph xmlgraphics-commons commons-logging commons-io avalon-framework-api avalon-framework-impl batik-all fontbox xml-commons-apis xml-commons-apis-ext"
|
||||||
|
|
||||||
# Set parameters
|
# Set parameters
|
||||||
set_jvm
|
set_jvm
|
||||||
|
@ -26,9 +26,9 @@ License: Apache-2.0
|
|||||||
Group: Productivity/Publishing/XML
|
Group: Productivity/Publishing/XML
|
||||||
URL: https://xmlgraphics.apache.org/fop/
|
URL: https://xmlgraphics.apache.org/fop/
|
||||||
Source0: https://ftp.halifax.rwth-aachen.de/apache/xmlgraphics/fop/source/fop-%{version}-src.tar.gz
|
Source0: https://ftp.halifax.rwth-aachen.de/apache/xmlgraphics/fop/source/fop-%{version}-src.tar.gz
|
||||||
|
Source1: https://repo.maven.apache.org/maven2/org/apache/xmlgraphics/fop/%{version}/fop-%{version}.pom
|
||||||
#FIX-OPENSUSE: add xmlgraphics-commons to classpath
|
#FIX-OPENSUSE: add xmlgraphics-commons to classpath
|
||||||
Source1: %{name}.script
|
Source2: %{name}.script
|
||||||
Source2: https://svn.apache.org/repos/asf/xmlgraphics/fop/tags/fop-2_1/xmlgraphics-fop-pom-template.pom
|
|
||||||
Source3: %{name}-fontmetrics.script
|
Source3: %{name}-fontmetrics.script
|
||||||
Source4: %{name}-fontlist.script
|
Source4: %{name}-fontlist.script
|
||||||
Source5: https://download.sourceforge.net/project/offo/offo-hyphenation/2.2/offo-hyphenation.zip
|
Source5: https://download.sourceforge.net/project/offo/offo-hyphenation/2.2/offo-hyphenation.zip
|
||||||
@ -67,8 +67,8 @@ Requires: commons-io >= 2.4
|
|||||||
Requires: commons-logging
|
Requires: commons-logging
|
||||||
Requires: java >= 1.8
|
Requires: java >= 1.8
|
||||||
Requires: xml-commons-apis >= 1.3
|
Requires: xml-commons-apis >= 1.3
|
||||||
Requires: xmlgraphics-batik >= 1.8
|
|
||||||
Requires: xmlgraphics-commons >= 2.1
|
Requires: xmlgraphics-commons >= 2.1
|
||||||
|
%requires_ge xmlgraphics-batik
|
||||||
Provides: %{bname} = %{version}-%{release}
|
Provides: %{bname} = %{version}-%{release}
|
||||||
Obsoletes: %{bname} < %{version}-%{release}
|
Obsoletes: %{bname} < %{version}-%{release}
|
||||||
Provides: fo-formatter = %{version}-%{release}
|
Provides: fo-formatter = %{version}-%{release}
|
||||||
@ -99,12 +99,10 @@ rm src/java/org/apache/fop/util/bitmap/JAIMonochromeBitmapConverter.java
|
|||||||
%patch7 -p1
|
%patch7 -p1
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
cp %{SOURCE2} %{SOURCE3} %{SOURCE4} .
|
|
||||||
# Replace keyword "VERSION" in XML files with the real one:
|
# Replace keyword "VERSION" in XML files with the real one:
|
||||||
for x in %{SOURCE10} %{SOURCE11} %{SOURCE12}; do
|
for x in %{SOURCE10} %{SOURCE11} %{SOURCE12}; do
|
||||||
sed -i "s=@VERSION@=%{version}=" $x
|
sed -i "s=@VERSION@=%{version}=" $x
|
||||||
done
|
done
|
||||||
sed -i "s=@version@=%{version}=" xmlgraphics-fop-pom-template.pom
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
build-jar-repository -s lib \
|
build-jar-repository -s lib \
|
||||||
@ -138,15 +136,17 @@ done
|
|||||||
# jars
|
# jars
|
||||||
mkdir -p %{buildroot}%{_javadir}
|
mkdir -p %{buildroot}%{_javadir}
|
||||||
install -m 644 build/%{bname}.jar %{buildroot}%{_javadir}/%{name}.jar
|
install -m 644 build/%{bname}.jar %{buildroot}%{_javadir}/%{name}.jar
|
||||||
|
install -m 644 build/%{bname}-hyph.jar %{buildroot}%{_javadir}/%{name}-hyph.jar
|
||||||
|
install -m 644 build/%{bname}-sandbox.jar %{buildroot}%{_javadir}/%{name}-sandbox.jar
|
||||||
|
|
||||||
# pom
|
# pom
|
||||||
install -d -m 755 %{buildroot}%{_mavenpomdir}
|
install -d -m 755 %{buildroot}%{_mavenpomdir}
|
||||||
install -pm 644 xmlgraphics-fop-pom-template.pom %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
|
install -pm 644 %{SOURCE1} %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
|
||||||
%add_maven_depmap
|
%add_maven_depmap
|
||||||
|
|
||||||
# script
|
# script
|
||||||
mkdir -p %{buildroot}%{_bindir}
|
mkdir -p %{buildroot}%{_bindir}
|
||||||
cp -p %{SOURCE1} %{buildroot}%{_bindir}/%{name}
|
cp -p %{SOURCE2} %{buildroot}%{_bindir}/%{name}
|
||||||
cp -p %{SOURCE3} %{buildroot}%{_bindir}/%{name}-fontmetrics
|
cp -p %{SOURCE3} %{buildroot}%{_bindir}/%{name}-fontmetrics
|
||||||
cp -p %{SOURCE4} %{buildroot}%{_bindir}/%{name}-fontlist
|
cp -p %{SOURCE4} %{buildroot}%{_bindir}/%{name}-fontlist
|
||||||
# compat symlink
|
# compat symlink
|
||||||
@ -155,9 +155,6 @@ ln -s %{name}-fontmetrics %{buildroot}%{_bindir}/%{bname}-fontmetrics
|
|||||||
ln -s %{name}-fontlist %{buildroot}%{_bindir}/%{bname}-fontlist
|
ln -s %{name}-fontlist %{buildroot}%{_bindir}/%{bname}-fontlist
|
||||||
|
|
||||||
# data
|
# data
|
||||||
mkdir -p %{buildroot}%{_datadir}/%{name}
|
|
||||||
cp -pr hyph %{buildroot}%{_datadir}/%{name}
|
|
||||||
cp -pr conf %{buildroot}%{_datadir}/%{name}
|
|
||||||
install -D -m 644 conf/fop.xconf %{buildroot}%{_sysconfdir}/fop.xconf
|
install -D -m 644 conf/fop.xconf %{buildroot}%{_sysconfdir}/fop.xconf
|
||||||
|
|
||||||
# Manpages
|
# Manpages
|
||||||
@ -175,17 +172,17 @@ done
|
|||||||
popd
|
popd
|
||||||
|
|
||||||
%files -f .mfiles
|
%files -f .mfiles
|
||||||
|
%{_javadir}/%{name}-hyph.jar
|
||||||
|
%{_javadir}/%{name}-sandbox.jar
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%doc NOTICE README known-issues.xml
|
%doc NOTICE README known-issues.xml
|
||||||
%doc *.html
|
%doc *.html
|
||||||
|
|
||||||
%attr(0755,root,root) %{_bindir}/%{name}
|
%attr(0755,root,root) %{_bindir}/%{name}
|
||||||
%{_bindir}/%{bname}
|
%{_bindir}/%{bname}
|
||||||
%attr(0755,root,root) %{_bindir}/%{name}-fontmetrics
|
%attr(0755,root,root) %{_bindir}/%{name}-fontmetrics
|
||||||
%{_bindir}/%{bname}-fontmetrics
|
%{_bindir}/%{bname}-fontmetrics
|
||||||
%attr(0755,root,root) %{_bindir}/%{name}-fontlist
|
%attr(0755,root,root) %{_bindir}/%{name}-fontlist
|
||||||
%{_bindir}/%{bname}-fontlist
|
%{_bindir}/%{bname}-fontlist
|
||||||
%{_datadir}/%{name}
|
|
||||||
%{_mandir}/man1/*
|
%{_mandir}/man1/*
|
||||||
%config(noreplace) %{_sysconfdir}/fop.xconf
|
%config(noreplace) %{_sysconfdir}/fop.xconf
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user