File jboss-shrinkwrap.spec of Package jboss-shrinkwrap

#
# spec file for package jboss-shrinkwrap
#
# 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
# 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/
#


%global short_name shrinkwrap
Name:           jboss-shrinkwrap
Version:        1.2.6
Release:        0
Summary:        Java API for Archive Manipulation
License:        Apache-2.0
Group:          Development/Libraries/Java
URL:            https://jboss.org/%{short_name}
Source0:        https://github.com/%{short_name}/%{short_name}/archive/refs/tags/%{version}.tar.gz
Source1:        https://github.com/%{short_name}/%{short_name}/raw/main/README.md
BuildRequires:  fdupes
BuildRequires:  maven-local
BuildRequires:  mvn(javax.activation:activation)
BuildRequires:  mvn(org.apache.maven.plugins:maven-assembly-plugin)
BuildRequires:  mvn(org.jboss:jboss-parent:pom:)
BuildArch:      noarch

%description
ShrinkWrap is a library to create archives from Java, which powers the
Arquillian deployment mechanism. Arquillian in turn is a library.

%package javadoc
Summary:        API documentation for %{name}
Group:          Documentation/HTML

%description javadoc
API documentation for %{name}.

%prep
%setup -q -n %{short_name}-%{version}
cp %{SOURCE1} .

%pom_xpath_remove pom:compilerArguments
%pom_remove_plugin -r :maven-enforcer-plugin
%pom_remove_plugin -r :maven-checkstyle-plugin
%pom_add_dep javax.activation:activation impl-base

%build
%{mvn_build} -f -- \
	-Dproject.build.outputTimestamp=$(date -u -d @${SOURCE_DATE_EPOCH:-$(date +%%s)} +%%Y-%%m-%%dT%%H:%%M:%%SZ)

%install
%mvn_install
%fdupes %{buildroot}%{_javadocdir}/%{name}

%files -f .mfiles
%license NOTICE.txt LICENSE
%doc README.md

%files javadoc -f .mfiles-javadoc
%license NOTICE.txt LICENSE

%changelog
openSUSE Build Service is sponsored by