OBS-URL: https://build.opensuse.org/request/show/1287989 OBS-URL: https://build.opensuse.org/package/show/Java:packages/japicmp?expand=0&rev=4
107 lines
4.0 KiB
RPMSpec
107 lines
4.0 KiB
RPMSpec
#
|
|
# spec file for package japicmp
|
|
#
|
|
# Copyright (c) 2025 SUSE LLC
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: japicmp
|
|
Version: 0.15.3
|
|
Release: 0
|
|
Summary: Comparison of two versions of a jar archive
|
|
License: Apache-2.0
|
|
Group: Development/Libraries/Java
|
|
URL: https://siom79.github.io/%{name}
|
|
Source0: https://github.com/siom79/%{name}/archive/refs/tags/%{name}-base-%{version}.tar.gz
|
|
Source1: %{name}.pod
|
|
BuildRequires: fdupes
|
|
BuildRequires: maven-local
|
|
BuildRequires: mvn(com.google.guava:guava)
|
|
BuildRequires: mvn(jakarta.xml.bind:jakarta.xml.bind-api)
|
|
BuildRequires: mvn(javax.activation:activation)
|
|
BuildRequires: mvn(javax.xml.bind:jaxb-api)
|
|
BuildRequires: mvn(org.apache.ant:ant)
|
|
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
|
|
BuildRequires: mvn(org.apache.maven.plugin-tools:maven-plugin-annotations)
|
|
BuildRequires: mvn(org.apache.maven.plugins:maven-antrun-plugin)
|
|
BuildRequires: mvn(org.apache.maven.plugins:maven-assembly-plugin)
|
|
BuildRequires: mvn(org.apache.maven.plugins:maven-dependency-plugin)
|
|
BuildRequires: mvn(org.apache.maven.plugins:maven-failsafe-plugin)
|
|
BuildRequires: mvn(org.apache.maven.plugins:maven-plugin-plugin)
|
|
BuildRequires: mvn(org.apache.maven.reporting:maven-reporting-api)
|
|
BuildRequires: mvn(org.apache.maven.reporting:maven-reporting-impl)
|
|
BuildRequires: mvn(org.apache.maven.resolver:maven-resolver-api)
|
|
BuildRequires: mvn(org.apache.maven:maven-compat)
|
|
BuildRequires: mvn(org.apache.maven:maven-core)
|
|
BuildRequires: mvn(org.apache.maven:maven-plugin-api)
|
|
BuildRequires: mvn(org.glassfish.jaxb:jaxb-runtime)
|
|
BuildRequires: mvn(org.javassist:javassist)
|
|
#!BuildRequires: glassfish-jaxb-runtime
|
|
BuildArch: noarch
|
|
|
|
%description
|
|
Comparison of two versions of a jar archive.
|
|
|
|
%package javadoc
|
|
Summary: API documentation for %{name}
|
|
Group: Documentation/HTML
|
|
|
|
%description javadoc
|
|
API documentation for %{name}.
|
|
|
|
%prep
|
|
%setup -q -n %{name}-%{name}-base-%{version}
|
|
|
|
%pom_disable_module %{name}-test-v1 %{name}-testbase
|
|
%pom_disable_module %{name}-test-v2 %{name}-testbase
|
|
%pom_disable_module %{name}-test %{name}-testbase
|
|
%pom_disable_module %{name}-test-maven-plugin %{name}-testbase
|
|
%pom_disable_module %{name}-test-vx-client %{name}-testbase
|
|
%pom_disable_module %{name}-test-maven-plugin-packaging %{name}-testbase
|
|
|
|
%pom_xpath_remove 'pom:extension[pom:artifactId="wagon-webdav-jackrabbit"]'
|
|
|
|
%pom_remove_plugin :maven-source-plugin
|
|
%pom_remove_plugin :maven-javadoc-plugin
|
|
|
|
%pom_remove_dep org.codehaus.groovy:groovy-jsr223 %{name}-maven-plugin
|
|
%pom_change_dep :maven-project:: :maven-core:3.9.0:provided %{name}-maven-plugin
|
|
%pom_add_dep org.apache.maven:maven-compat:3.9.0:provided %{name}-maven-plugin
|
|
|
|
%build
|
|
%{mvn_build} -f -- \
|
|
-Dproject.build.outputTimestamp=$(date -u -d @${SOURCE_DATE_EPOCH:-$(date +%%s)} +%%Y-%%m-%%dT%%H:%%M:%%SZ)
|
|
|
|
pod2man --release='%{name} %{version}' --section=1 --center='User Commands' --quotes=none %{SOURCE1} %{name}.1
|
|
|
|
%install
|
|
%mvn_install
|
|
%fdupes %{buildroot}%{_javadocdir}/%{name}
|
|
|
|
%jpackage_script japicmp.JApiCmp "" "" %{name}:javassist:guava:jaxb-api:glassfish-jaxb-api %{name} true
|
|
|
|
install -dm0755 %{buildroot}%{_mandir}/man1
|
|
install -Dm0644 %{name}.1 %{buildroot}%{_mandir}/man1
|
|
|
|
%files -f .mfiles
|
|
%license LICENSE
|
|
%doc README.md
|
|
%{_bindir}/%{name}
|
|
%{_mandir}/man1/%{name}.1%{?ext_man}
|
|
|
|
%files javadoc -f .mfiles-javadoc
|
|
%license LICENSE
|
|
|
|
%changelog
|