Mostly xmvn change

- Use xmvn
- Make the integration tests build
This commit is contained in:
Marek Goldmann 2013-09-13 09:28:58 +02:00
parent ed916706f6
commit 12d3bd8d25

View File

@ -1,14 +1,12 @@
Name: xml-maven-plugin Name: xml-maven-plugin
Version: 1.0 Version: 1.0
Release: 8%{?dist} Release: 9%{?dist}
Summary: Maven XML Plugin Summary: Maven XML Plugin
Group: Development/Libraries Group: Development/Libraries
License: ASL 2.0 License: ASL 2.0
Url: http://mojo.codehaus.org/xml-maven-plugin/ Url: http://mojo.codehaus.org/xml-maven-plugin/
Source0: http://repo2.maven.org/maven2/org/codehaus/mojo/xml-maven-plugin/1.0/xml-maven-plugin-1.0-source-release.zip Source0: http://repo2.maven.org/maven2/org/codehaus/mojo/xml-maven-plugin/1.0/xml-maven-plugin-1.0-source-release.zip
Patch0: remove-failing-it.patch
BuildRequires: java-devel
BuildRequires: jpackage-utils
BuildRequires: mojo-parent BuildRequires: mojo-parent
BuildRequires: apache-rat-plugin BuildRequires: apache-rat-plugin
@ -30,13 +28,10 @@ BuildRequires: plexus-io
BuildRequires: plexus-resources BuildRequires: plexus-resources
BuildRequires: plexus-utils BuildRequires: plexus-utils
BuildRequires: saxon BuildRequires: saxon
BuildRequires: xalan-j2
BuildRequires: xerces-j2 BuildRequires: xerces-j2
BuildRequires: xml-commons-apis BuildRequires: xml-commons-apis
BuildRequires: xml-commons-resolver BuildRequires: xml-commons-resolver
Requires: jpackage-utils
Requires: java
BuildArch: noarch BuildArch: noarch
%description %description
@ -44,55 +39,43 @@ A plugin for various XML related tasks like validation and transformation.
%package javadoc %package javadoc
Summary: Javadocs for %{name} Summary: Javadocs for %{name}
Group: Development/Libraries
Requires: jpackage-utils
%description javadoc %description javadoc
This package contains the API documentation for %{name}. This package contains the API documentation for %{name}.
%prep %prep
%setup -q %setup -q
%patch0 -p0
for d in LICENSE NOTICE ; do 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 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 sed -i 's/\r//' $d.txt
done done
rm -rf src/it/it8
rm -rf src/it/mojo-1438-validate # Add the version
sed -i 's|stylesheet |stylesheet version="1.0" |' src/it/it8/src/main/xsl/it8.xsl
# In maven 3, the functionality we need has been moved to maven-core # In maven 3, the functionality we need has been moved to maven-core
%pom_remove_dep org.apache.maven:maven-project %pom_remove_dep org.apache.maven:maven-project
%pom_add_dep org.apache.maven:maven-core %pom_add_dep org.apache.maven:maven-core
%build %build
mvn-rpmbuild -Dmojo.java.target=1.5 -Dmaven.test.skip=true -DskipITs \ %mvn_build -f -- install
install javadoc:aggregate
%install %install
mkdir -p %{buildroot}%{_javadir} %mvn_install
install -pm 644 target/xml-maven-plugin-%{version}.jar \
%{buildroot}%{_javadir}/xml-maven-plugin.jar
mkdir -p %{buildroot}%{_mavenpomdir} %files -f .mfiles
install -pm 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP-xml-maven-plugin.pom %dir %{_javadir}/%{name}
%add_maven_depmap JPP-xml-maven-plugin.pom xml-maven-plugin.jar
mkdir -p %{buildroot}%{_javadocdir}/xml-maven-plugin
cp -pr target/site/apidocs/* %{buildroot}%{_javadocdir}/xml-maven-plugin
%files
%{_javadir}/xml-maven-plugin.jar
%{_mavenpomdir}/*
%{_mavendepmapfragdir}/*
%doc LICENSE.txt NOTICE.txt %doc LICENSE.txt NOTICE.txt
%files javadoc %files javadoc -f .mfiles-javadoc
%{_javadocdir}/xml-maven-plugin
%doc LICENSE.txt NOTICE.txt %doc LICENSE.txt NOTICE.txt
%changelog %changelog
* Thu Sep 12 2013 Marek Goldmann <mgoldman@redhat.com> - 1.0-9
- Use xmvn
- Make the integration tests build
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-8 * Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild