Compare commits

..

No commits in common. "factory" and "factory" have entirely different histories.

2 changed files with 18 additions and 18 deletions

View File

@ -1,8 +1,3 @@
-------------------------------------------------------------------
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>

View File

@ -1,7 +1,7 @@
#
# spec file for package wsdl4j
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -22,16 +22,19 @@ Release: 0
Summary: Web Services Description Language Toolkit for Java
License: IPL-1.0
Group: Development/Libraries/Java
URL: https://sourceforge.net/projects/wsdl4j
URL: http://sourceforge.net/projects/wsdl4j
Source0: http://downloads.sourceforge.net/%{name}/%{name}-src-%{version}.zip
Source1: %{name}-MANIFEST.MF
Source2: https://repo1.maven.org/maven2/wsdl4j/wsdl4j/%{version}/wsdl4j-%{version}.pom
Source2: http://repo1.maven.org/maven2/wsdl4j/wsdl4j/%{version}/wsdl4j-%{version}.pom
BuildRequires: ant-junit
BuildRequires: javapackages-local >= 6
BuildRequires: javapackages-local
BuildRequires: javapackages-tools
BuildRequires: unzip
BuildRequires: xml-apis
BuildRequires: xml-commons-apis
BuildRequires: zip
Requires: java
Requires: jaxp_parser_impl
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%description
@ -61,11 +64,11 @@ ant -Dant.build.javac.source=1.8 -Dant.build.javac.target=1.8 compile javadocs
%install
# inject OSGi manifests
jar --update --verbose \
%if %{?pkg_vcmp:%pkg_vcmp java-devel >= 17}%{!?pkg_vcmp:0}
--date="$(date -u -d @${SOURCE_DATE_EPOCH:-$(date +%%s)} +%%Y-%%m-%%dT%%H:%%M:%%SZ)" \
%endif
--file=build/lib/%{name}.jar --manifest=%{SOURCE1}
mkdir -p META-INF
cp -p %{SOURCE1} META-INF/MANIFEST.MF
touch META-INF/MANIFEST.MF
zip -u build/lib/%{name}.jar META-INF/MANIFEST.MF
# jars
install -d -m 0755 %{buildroot}%{_javadir}
install -m 644 build/lib/%{name}.jar %{buildroot}%{_javadir}/%{name}.jar
@ -73,7 +76,7 @@ install -m 644 build/lib/qname.jar %{buildroot}%{_javadir}/qname.jar
# POMs
install -d -m 0755 %{buildroot}%{_mavenpomdir}
%{mvn_install_pom} %{SOURCE2} %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
install -p -m 0644 %{SOURCE2} %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
%add_maven_depmap JPP-%{name}.pom %{name}.jar -a axis:axis-%{name}
# javadoc
@ -84,9 +87,11 @@ install -d -m 755 %{buildroot}%{_javadir}/javax.wsdl/
ln -sf ../%{name}.jar %{buildroot}%{_javadir}/javax.wsdl/
ln -sf ../qname.jar %{buildroot}%{_javadir}/javax.wsdl/
%files -f .mfiles
%files
%defattr(0644,root,root,0755)
%license license.html
%doc license.html
%{_mavenpomdir}/JPP-%{name}.pom
%{_datadir}/maven-metadata/%{name}.xml*
%{_javadir}/*
%files javadoc