Accepting request 849419 from Java:packages
- Add the maven metadata in order to be usable in maven build - Remove "fop" subpackage because it provides an empty JAR. Source files do not contain any FOP support. OBS-URL: https://build.opensuse.org/request/show/849419 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/saxon6?expand=0&rev=12
This commit is contained in:
commit
4db39522b2
@ -1,3 +1,14 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Nov 19 06:37:45 UTC 2020 - Fridrich Strba <fstrba@suse.com>
|
||||||
|
|
||||||
|
- Add the maven metadata in order to be usable in maven build
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Nov 18 04:25:55 UTC 2020 - Anton Shvetz <tz@sectorb.msk.ru>
|
||||||
|
|
||||||
|
- Remove "fop" subpackage because it provides an empty JAR.
|
||||||
|
Source files do not contain any FOP support.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Sep 18 17:51:41 UTC 2017 - fstrba@suse.com
|
Mon Sep 18 17:51:41 UTC 2017 - fstrba@suse.com
|
||||||
|
|
||||||
|
39
saxon6.spec
39
saxon6.spec
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package saxon6
|
# spec file for package saxon6
|
||||||
#
|
#
|
||||||
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
# Copyright (c) 2020 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -12,7 +12,7 @@
|
|||||||
# license that conforms to the Open Source Definition (Version 1.9)
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
# published by the Open Source Initiative.
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
@ -23,7 +23,7 @@ Release: 0
|
|||||||
Summary: The SAXON XSLT Processor from Michael Kay
|
Summary: The SAXON XSLT Processor from Michael Kay
|
||||||
License: MPL-1.0
|
License: MPL-1.0
|
||||||
Group: Productivity/Publishing/XML
|
Group: Productivity/Publishing/XML
|
||||||
Url: http://saxon.sourceforge.net/
|
URL: http://saxon.sourceforge.net/
|
||||||
Source0: http://download.sf.net/saxon/saxon6-5-5.zip
|
Source0: http://download.sf.net/saxon/saxon6-5-5.zip
|
||||||
Source1: %{name}.saxon.script
|
Source1: %{name}.saxon.script
|
||||||
Source2: %{name}.build.script
|
Source2: %{name}.build.script
|
||||||
@ -41,9 +41,8 @@ Patch4: saxon-add-fixes-from-com-isl-saxon-aelfred.patch
|
|||||||
Patch5: saxon6-batch.patch
|
Patch5: saxon6-batch.patch
|
||||||
BuildRequires: ant
|
BuildRequires: ant
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: fop >= 0.20.1
|
|
||||||
BuildRequires: java-devel
|
BuildRequires: java-devel
|
||||||
BuildRequires: javapackages-tools
|
BuildRequires: javapackages-local
|
||||||
BuildRequires: jdom >= 1.0
|
BuildRequires: jdom >= 1.0
|
||||||
BuildRequires: unzip
|
BuildRequires: unzip
|
||||||
BuildRequires: xml-commons-apis
|
BuildRequires: xml-commons-apis
|
||||||
@ -51,6 +50,7 @@ Requires: %{_sbindir}/update-alternatives
|
|||||||
Requires: jaxp_parser_impl
|
Requires: jaxp_parser_impl
|
||||||
Provides: jaxp_transform_impl = %{name}-%{version}
|
Provides: jaxp_transform_impl = %{name}-%{version}
|
||||||
Provides: saxon
|
Provides: saxon
|
||||||
|
Obsoletes: %{name}-fop
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -110,16 +110,6 @@ Requires: %{name} = %{version}-%{release}
|
|||||||
%description demo
|
%description demo
|
||||||
Demonstrations and samples for %{name}.
|
Demonstrations and samples for %{name}.
|
||||||
|
|
||||||
%package fop
|
|
||||||
Summary: FOP support for %{name}
|
|
||||||
Group: Productivity/Publishing/XML
|
|
||||||
Requires: %{name} = %{version}-%{release}
|
|
||||||
Requires: fop >= 0.20.1
|
|
||||||
Provides: saxon-fop
|
|
||||||
|
|
||||||
%description fop
|
|
||||||
FOP support for %{name}.
|
|
||||||
|
|
||||||
%package jdom
|
%package jdom
|
||||||
Summary: JDOM support for %{name}
|
Summary: JDOM support for %{name}
|
||||||
Group: Productivity/Publishing/XML
|
Group: Productivity/Publishing/XML
|
||||||
@ -155,20 +145,21 @@ rm -rf *.jar docs/api
|
|||||||
%build
|
%build
|
||||||
# fixes the javadoc fail
|
# fixes the javadoc fail
|
||||||
export LC_ALL=en_US.ISO-8859-2
|
export LC_ALL=en_US.ISO-8859-2
|
||||||
export CLASSPATH=%(build-classpath xml-commons-apis xmlgraphics-fop jdom)
|
export CLASSPATH=%(build-classpath xml-commons-apis jdom)
|
||||||
ant \
|
ant \
|
||||||
-Dant.build.javac.source=1.6 -Dant.build.javac.target=1.6 \
|
-Dant.build.javac.source=1.6 -Dant.build.javac.target=1.6 \
|
||||||
-Dj2se.javadoc=%{_javadocdir}/java \
|
-Dj2se.javadoc=%{_javadocdir}/java \
|
||||||
-Dfop.javadoc=%{_javadocdir}/fop \
|
|
||||||
-Djdom.javadoc=%{_javadocdir}/jdom
|
-Djdom.javadoc=%{_javadocdir}/jdom
|
||||||
|
|
||||||
%install
|
%install
|
||||||
# jars
|
# jars
|
||||||
mkdir -p %{buildroot}%{_javadir}
|
mkdir -p %{buildroot}%{_javadir}
|
||||||
cp -p build/lib/saxon.jar %{buildroot}%{_javadir}/%{name}.jar
|
cp -p build/lib/saxon.jar %{buildroot}%{_javadir}/%{name}.jar
|
||||||
|
%add_maven_depmap saxon:saxon:%{version} %{name}.jar
|
||||||
cp -p build/lib/saxon-aelfred.jar %{buildroot}%{_javadir}/%{name}-aelfred.jar
|
cp -p build/lib/saxon-aelfred.jar %{buildroot}%{_javadir}/%{name}-aelfred.jar
|
||||||
cp -p build/lib/saxon-fop.jar %{buildroot}%{_javadir}/%{name}-fop.jar
|
%add_maven_depmap saxon:saxon-aelfred:%{version} %{name}-aelfred.jar -f aelfred
|
||||||
cp -p build/lib/saxon-jdom.jar %{buildroot}%{_javadir}/%{name}-jdom.jar
|
cp -p build/lib/saxon-jdom.jar %{buildroot}%{_javadir}/%{name}-jdom.jar
|
||||||
|
%add_maven_depmap saxon:saxon-jdom:%{version} %{name}-jdom.jar -f jdom
|
||||||
|
|
||||||
# javadoc
|
# javadoc
|
||||||
mkdir -p %{buildroot}%{_javadocdir}/%{name}
|
mkdir -p %{buildroot}%{_javadocdir}/%{name}
|
||||||
@ -203,20 +194,14 @@ if [ $1 -eq 0 ] ; then
|
|||||||
update-alternatives --remove jaxp_transform_impl %{_javadir}/%{name}.jar
|
update-alternatives --remove jaxp_transform_impl %{_javadir}/%{name}.jar
|
||||||
fi
|
fi
|
||||||
|
|
||||||
%files
|
%files -f .mfiles
|
||||||
%{_javadir}/%{name}.jar
|
|
||||||
%{_javadir}/%{name}.jar
|
%{_javadir}/%{name}.jar
|
||||||
%{_javadir}/jaxp_transform_impl.jar
|
%{_javadir}/jaxp_transform_impl.jar
|
||||||
%ghost %{_sysconfdir}/alternatives/jaxp_transform_impl.jar
|
%ghost %{_sysconfdir}/alternatives/jaxp_transform_impl.jar
|
||||||
|
|
||||||
%files aelfred
|
%files aelfred -f .mfiles-aelfred
|
||||||
%{_javadir}/%{name}-aelfred*
|
|
||||||
|
|
||||||
%files fop
|
%files jdom -f .mfiles-jdom
|
||||||
%{_javadir}/%{name}-fop*
|
|
||||||
|
|
||||||
%files jdom
|
|
||||||
%{_javadir}/%{name}-jdom*
|
|
||||||
|
|
||||||
%files manual
|
%files manual
|
||||||
%doc doc/*.html
|
%doc doc/*.html
|
||||||
|
Loading…
Reference in New Issue
Block a user