xml-maven-plugin/xml-maven-plugin.spec

67 lines
1.7 KiB
RPMSpec
Raw Normal View History

2019-12-13 13:12:14 +00:00
Name: xml-maven-plugin
Summary: Maven XML Plugin
Version: 1.0.2
Release: %autorelease
2019-12-13 13:12:14 +00:00
License: ASL 2.0
URL: https://www.mojohaus.org/xml-maven-plugin/
Source0: https://repo1.maven.org/maven2/org/codehaus/mojo/%{name}/%{version}/%{name}-%{version}-source-release.zip
BuildArch: noarch
ExclusiveArch: %{java_arches} noarch
BuildRequires: maven-local
BuildRequires: mvn(org.apache.maven:maven-core)
BuildRequires: mvn(org.apache.maven:maven-plugin-api)
BuildRequires: mvn(org.apache.maven.plugins:maven-invoker-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-plugin-plugin)
BuildRequires: mvn(org.apache.maven.plugin-tools:maven-plugin-annotations)
BuildRequires: mvn(org.codehaus.mojo:mojo-parent:pom:)
BuildRequires: mvn(org.codehaus.plexus:plexus-io)
BuildRequires: mvn(org.codehaus.plexus:plexus-resources)
BuildRequires: mvn(org.codehaus.plexus:plexus-utils)
BuildRequires: mvn(xml-resolver:xml-resolver)
%description
A plugin for various XML related tasks like validation and transformation.
2019-12-13 13:12:14 +00:00
%package javadoc
Summary: Javadocs for %{name}
%description javadoc
This package contains the API documentation for %{name}.
2019-12-13 13:12:14 +00:00
%prep
%setup -q
for d in LICENSE NOTICE ; do
iconv -f iso8859-1 -t utf-8 $d.txt > $d.txt.conv && mv -f $d.txt.conv $d.txt
sed -i 's/\r//' $d.txt
done
# Add the version
sed -i 's|stylesheet |stylesheet version="1.0" |' src/it/it8/src/main/xsl/it8.xsl
%pom_xpath_set pom:mojo.java.target 8
2019-12-13 13:12:14 +00:00
%build
%mvn_build -f
2019-12-13 13:12:14 +00:00
%install
%mvn_install
2019-12-13 13:12:14 +00:00
%files -f .mfiles
2019-12-13 13:12:14 +00:00
%license LICENSE.txt NOTICE.txt
%files javadoc -f .mfiles-javadoc
2019-12-13 13:12:14 +00:00
%license LICENSE.txt NOTICE.txt
%changelog
%autochangelog