Accepting request 1202930 from Java:packages
Use SOURCE_DATE_EPOCH for reproducible jar mtime OBS-URL: https://build.opensuse.org/request/show/1202930 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/wsdl4j?expand=0&rev=25
This commit is contained in:
commit
899885289b
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Sep 24 10:35:09 UTC 2024 - Fridrich Strba <fstrba@suse.com>
|
||||||
|
|
||||||
|
- Use SOURCE_DATE_EPOCH for reproducible builds
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sun Mar 20 13:07:44 UTC 2022 - Fridrich Strba <fstrba@suse.com>
|
Sun Mar 20 13:07:44 UTC 2022 - Fridrich Strba <fstrba@suse.com>
|
||||||
|
|
||||||
|
31
wsdl4j.spec
31
wsdl4j.spec
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package wsdl4j
|
# spec file for package wsdl4j
|
||||||
#
|
#
|
||||||
# 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
|
||||||
@ -22,19 +22,16 @@ Release: 0
|
|||||||
Summary: Web Services Description Language Toolkit for Java
|
Summary: Web Services Description Language Toolkit for Java
|
||||||
License: IPL-1.0
|
License: IPL-1.0
|
||||||
Group: Development/Libraries/Java
|
Group: Development/Libraries/Java
|
||||||
URL: http://sourceforge.net/projects/wsdl4j
|
URL: https://sourceforge.net/projects/wsdl4j
|
||||||
Source0: http://downloads.sourceforge.net/%{name}/%{name}-src-%{version}.zip
|
Source0: http://downloads.sourceforge.net/%{name}/%{name}-src-%{version}.zip
|
||||||
Source1: %{name}-MANIFEST.MF
|
Source1: %{name}-MANIFEST.MF
|
||||||
Source2: http://repo1.maven.org/maven2/wsdl4j/wsdl4j/%{version}/wsdl4j-%{version}.pom
|
Source2: https://repo1.maven.org/maven2/wsdl4j/wsdl4j/%{version}/wsdl4j-%{version}.pom
|
||||||
BuildRequires: ant-junit
|
BuildRequires: ant-junit
|
||||||
BuildRequires: javapackages-local
|
BuildRequires: javapackages-local >= 6
|
||||||
BuildRequires: javapackages-tools
|
|
||||||
BuildRequires: unzip
|
BuildRequires: unzip
|
||||||
BuildRequires: xml-commons-apis
|
BuildRequires: xml-apis
|
||||||
BuildRequires: zip
|
|
||||||
Requires: java
|
Requires: java
|
||||||
Requires: jaxp_parser_impl
|
Requires: jaxp_parser_impl
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -64,11 +61,11 @@ ant -Dant.build.javac.source=1.8 -Dant.build.javac.target=1.8 compile javadocs
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
# inject OSGi manifests
|
# inject OSGi manifests
|
||||||
mkdir -p META-INF
|
jar --update --verbose \
|
||||||
cp -p %{SOURCE1} META-INF/MANIFEST.MF
|
%if %{?pkg_vcmp:%pkg_vcmp java-devel >= 17}%{!?pkg_vcmp:0}
|
||||||
touch META-INF/MANIFEST.MF
|
--date="$(date -u -d @${SOURCE_DATE_EPOCH:-$(date +%%s)} +%%Y-%%m-%%dT%%H:%%M:%%SZ)" \
|
||||||
zip -u build/lib/%{name}.jar META-INF/MANIFEST.MF
|
%endif
|
||||||
|
--file=build/lib/%{name}.jar --manifest=%{SOURCE1}
|
||||||
# jars
|
# jars
|
||||||
install -d -m 0755 %{buildroot}%{_javadir}
|
install -d -m 0755 %{buildroot}%{_javadir}
|
||||||
install -m 644 build/lib/%{name}.jar %{buildroot}%{_javadir}/%{name}.jar
|
install -m 644 build/lib/%{name}.jar %{buildroot}%{_javadir}/%{name}.jar
|
||||||
@ -76,7 +73,7 @@ install -m 644 build/lib/qname.jar %{buildroot}%{_javadir}/qname.jar
|
|||||||
|
|
||||||
# POMs
|
# POMs
|
||||||
install -d -m 0755 %{buildroot}%{_mavenpomdir}
|
install -d -m 0755 %{buildroot}%{_mavenpomdir}
|
||||||
install -p -m 0644 %{SOURCE2} %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
|
%{mvn_install_pom} %{SOURCE2} %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
|
||||||
%add_maven_depmap JPP-%{name}.pom %{name}.jar -a axis:axis-%{name}
|
%add_maven_depmap JPP-%{name}.pom %{name}.jar -a axis:axis-%{name}
|
||||||
|
|
||||||
# javadoc
|
# javadoc
|
||||||
@ -87,11 +84,9 @@ install -d -m 755 %{buildroot}%{_javadir}/javax.wsdl/
|
|||||||
ln -sf ../%{name}.jar %{buildroot}%{_javadir}/javax.wsdl/
|
ln -sf ../%{name}.jar %{buildroot}%{_javadir}/javax.wsdl/
|
||||||
ln -sf ../qname.jar %{buildroot}%{_javadir}/javax.wsdl/
|
ln -sf ../qname.jar %{buildroot}%{_javadir}/javax.wsdl/
|
||||||
|
|
||||||
%files
|
%files -f .mfiles
|
||||||
%defattr(0644,root,root,0755)
|
%defattr(0644,root,root,0755)
|
||||||
%doc license.html
|
%license license.html
|
||||||
%{_mavenpomdir}/JPP-%{name}.pom
|
|
||||||
%{_datadir}/maven-metadata/%{name}.xml*
|
|
||||||
%{_javadir}/*
|
%{_javadir}/*
|
||||||
|
|
||||||
%files javadoc
|
%files javadoc
|
||||||
|
Loading…
x
Reference in New Issue
Block a user