Files
copy-rename-maven-plugin/copy-rename-maven-plugin.spec

77 lines
2.4 KiB
RPMSpec

#
# spec file for package copy-rename-maven-plugin
#
# 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 git_hash 9dbd146
Name: copy-rename-maven-plugin
Version: 1.1
Release: 0
Summary: Maven plugin for renaming/copying
License: MIT
Group: Development/Libraries/Java
URL: https://coderplus.github.io/%{name}/
Source0: https://github.com/coderplus/%{name}/tarball/%{git_hash}#/%{name}-%{version}.tar.gz
BuildRequires: fdupes
BuildRequires: maven-local
BuildRequires: mvn(org.apache.maven:maven-artifact)
BuildRequires: mvn(org.apache.maven:maven-core)
BuildRequires: mvn(org.apache.maven:maven-model)
BuildRequires: mvn(org.apache.maven:maven-plugin-api)
BuildRequires: mvn(org.apache.maven.plugins:maven-plugin-plugin)
BuildRequires: mvn(org.apache.maven.plugin-tools:maven-plugin-annotations)
BuildRequires: mvn(org.codehaus.plexus:plexus-utils)
BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:)
BuildRequires: mvn(org.sonatype.plexus:plexus-build-api)
BuildArch: noarch
%description
The copy-rename-maven-plugin helps in copying files or renaming files or
directories during the Maven build lifecycle.
%package javadoc
Summary: API documentation for %{name}
Group: Documentation/HTML
%description javadoc
API documentation for %{name}.
%prep
%setup -q -n coderplus-%{name}-%{git_hash}
# migrate to maven 3
%pom_xpath_set //pom:maven.version 3.8.6
%pom_xpath_set //pom:maven.compiler.source 8
%pom_xpath_set //pom:maven.compiler.target 8
%pom_remove_dep :maven-project
%pom_change_dep org.apache.maven: :::provided
%build
%{mvn_build} -f -- -Dsource=8
%install
%mvn_install
%fdupes %{buildroot}%{_javadocdir}/%{name}
%files -f .mfiles
%license LICENSE
%doc README.md
%files javadoc -f .mfiles-javadoc
%license LICENSE
%changelog