Sync from SUSE:SLFO:Main werken-xpath revision 8ff9df7e9b6304247c97b780d3f2bc18

This commit is contained in:
Adrian Schröter 2024-05-31 15:02:55 +02:00
parent d82e85cd29
commit 5e4a66fa9e
2 changed files with 25 additions and 20 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Feb 20 15:18:28 UTC 2024 - Dominique Leuenberger <dimstar@opensuse.org>
- Use %patch -P N instead of deprecated %patchN.
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Mar 23 11:43:03 UTC 2022 - Fridrich Strba <fstrba@suse.com> Wed Mar 23 11:43:03 UTC 2022 - Fridrich Strba <fstrba@suse.com>

View File

@ -1,7 +1,7 @@
# #
# spec file for package werken-xpath # spec file for package werken-xpath
# #
# Copyright (c) 2022 SUSE LLC # Copyright (c) 2024 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
@ -39,13 +39,13 @@ BuildRequires: ant >= 1.6
BuildRequires: antlr BuildRequires: antlr
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: java-devel >= 1.8 BuildRequires: java-devel >= 1.8
BuildRequires: javapackages-local BuildRequires: javapackages-local >= 6
BuildRequires: jdom BuildRequires: jdom
BuildRequires: xerces-j2 BuildRequires: xerces-j2
BuildRequires: xml-commons-apis BuildRequires: xml-commons-apis
Requires: jdom Requires: jdom
Provides: werken.xpath = %{version}-%{release} Provides: %{dotname} = %{version}-%{release}
Obsoletes: werken.xpath < 0.9.4 Obsoletes: %{dotname} < %{version}
BuildArch: noarch BuildArch: noarch
%description %description
@ -59,8 +59,8 @@ werken.canonical (XML canonicalization) packages.
%package javadoc %package javadoc
Summary: Javadoc for %{name} Summary: Javadoc for %{name}
Group: Documentation/HTML Group: Documentation/HTML
Provides: werken.xpath-javadoc = %{version}-%{release} Provides: %{dotname}-javadoc = %{version}-%{release}
Obsoletes: werken.xpath-javadoc < 0.9.4 Obsoletes: %{dotname}-javadoc < %{version}
%description javadoc %description javadoc
werken.xpath is an implementation of the W3C XPath Recommendation, on werken.xpath is an implementation of the W3C XPath Recommendation, on
@ -72,15 +72,15 @@ werken.canonical (XML canonicalization) packages.
%prep %prep
%setup -q -n %{dotname} %setup -q -n %{dotname}
%patch0 -b .sav %patch -P 0 -b .sav
%patch1 -b .sav %patch -P 1 -b .sav
%patch2 -b .sav %patch -P 2 -b .sav
%patch3 -b .sav %patch -P 3 -b .sav
%patch4 -b .sav %patch -P 4 -b .sav
%patch5 -b .sav %patch -P 5 -b .sav
%patch6 -b .sav %patch -P 6 -b .sav
%patch7 -b .sav %patch -P 7 -b .sav
%patch8 -b .sav %patch -P 8 -b .sav
# remove all binary libs # remove all binary libs
for j in $(find . -name "*.jar"); do for j in $(find . -name "*.jar"); do
mv $j $j.no mv $j $j.no
@ -88,7 +88,7 @@ done
%build %build
export CLASSPATH=$(build-classpath jdom antlr xerces-j2 xml-commons-apis) export CLASSPATH=$(build-classpath jdom antlr xerces-j2 xml-commons-apis)
ant -Dant.build.javac.source=1.8 -Dant.build.javac.target=1.8 package javadoc compile-test %{ant} -Dant.build.javac.source=1.8 -Dant.build.javac.target=1.8 package javadoc compile-test
# Note that you'll have to java in PATH for this to work, it is by default # Note that you'll have to java in PATH for this to work, it is by default
# when using a JPackage JVM. # when using a JPackage JVM.
CLASSPATH=$CLASSPATH:build/werken.xpath.jar:build/test/classes CLASSPATH=$CLASSPATH:build/werken.xpath.jar:build/test/classes
@ -97,12 +97,12 @@ sh runtests.sh
%install %install
# jars # jars
mkdir -p %{buildroot}%{_javadir} mkdir -p %{buildroot}%{_javadir}
cp -p build/%{dotname}.jar %{buildroot}%{_javadir}/%{dotname}.jar cp -p build/%{dotname}.jar %{buildroot}%{_javadir}/%{name}.jar
ln -sf %{dotname}.jar %{buildroot}%{_javadir}/%{name}.jar ln -sf %{name}.jar %{buildroot}%{_javadir}/%{dotname}.jar
# pom # pom
mkdir -p %{buildroot}%{_mavenpomdir} mkdir -p %{buildroot}%{_mavenpomdir}
cp %{SOURCE1} %{buildroot}%{_mavenpomdir}/JPP-werken-xpath.pom %{mvn_install_pom} %{SOURCE1} %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
%add_maven_depmap %add_maven_depmap JPP-%{name}.pom %{name}.jar
# javadoc # javadoc
mkdir -p %{buildroot}%{_javadocdir}/%{name} mkdir -p %{buildroot}%{_javadocdir}/%{name}