Name: maven-changes-plugin Version: 2.3 Release: 1%{?dist} Summary: Plugin to support reporting of changes between releases Group: Development/Libraries License: ASL 2.0 URL: http://maven.apache.org/plugins/%{name} # svn export http://svn.apache.org/repos/asf/maven/plugins/tags/maven-changes-plugin-2.3 # tar caf maven-changes-plugin-2.3.tar.xz maven-changes-plugin-2.3 Source0: %{name}-%{version}.tar.xz Source1: %{name}.depmap # patches not upstreamed yet, tests need to be fixed to work with new # doxia too Patch0: 0001-xmlrpc3-common-dependency.patch Patch1: 0002-doxia-1.1-import-fix.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: java-devel >= 1:1.6.0 BuildRequires: plexus-utils BuildRequires: ant-nodeps BuildRequires: maven2 BuildRequires: maven-install-plugin BuildRequires: maven-compiler-plugin BuildRequires: maven-plugin-plugin BuildRequires: maven-resources-plugin BuildRequires: maven-surefire-maven-plugin BuildRequires: maven-surefire-provider-junit BuildRequires: maven-jar-plugin BuildRequires: maven-javadoc-plugin BuildRequires: maven-shared-filtering BuildRequires: plexus-maven-plugin BuildRequires: plexus-mail-sender BuildRequires: xmlrpc3-client BuildRequires: xmlrpc3-common BuildRequires: xerces-j2 BuildRequires: xml-commons-apis Requires: maven2 Requires: jpackage-utils Requires: java Requires(post): jpackage-utils Requires(postun): jpackage-utils Obsoletes: maven2-plugin-changes <= 0:2.0.8 Provides: maven2-plugin-changes = 1:%{version}-%{release} %description This plugin is used to inform your users of the changes that have occurred between different releases of your project. The plugin can extract these changes, either from a changes.xml file or from the JIRA issue management system, and present them as a report. You also have the option of creating a release announcement and even sending this via email to your users. %package javadoc Group: Documentation Summary: Javadoc for %{name} Requires: jpackage-utils %description javadoc API documentation for %{name}. %prep %setup -q #You may need to update this according to your Source0 %patch0 -p1 %patch1 -p1 %build export MAVEN_REPO_LOCAL=$(pwd)/.m2/repository # tests are skipped because package expects old doxia and doesn't work # with new one mvn-jpp -e \ -Dmaven2.jpp.depmap.file="%{SOURCE1}" \ -Dmaven.repo.local=$MAVEN_REPO_LOCAL \ -Dmaven.test.skip=true \ install javadoc:javadoc %install rm -rf %{buildroot} # jars install -Dpm 644 target/%{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}-%{version}.jar (cd %{buildroot}%{_javadir} && for jar in *-%{version}*; \ do ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`; done) %add_to_maven_depmap org.apache.maven.plugins %{name} %{version} JPP %{name} # poms install -Dpm 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom # javadoc install -dm 755 %{buildroot}%{_javadocdir}/%{name}-%{version} cp -pr target/site/api*/* %{buildroot}%{_javadocdir}/%{name}-%{version}/ ln -s %{name}-%{version} %{buildroot}%{_javadocdir}/%{name} rm -rf target/site/api* %post %update_maven_depmap %postun %update_maven_depmap %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %{_javadir}/* %{_mavenpomdir}/* %config(noreplace) %{_mavendepmapfragdir}/* %files javadoc %defattr(-,root,root,-) %{_javadocdir}/%{name}-%{version} %{_javadocdir}/%{name} %changelog * Wed Jul 21 2010 Stanislav Ochotnicky - 2.3-1 - Initial package