Initial import.
This commit is contained in:
parent
ead975d07e
commit
541afdd0d8
@ -0,0 +1 @@
|
||||
maven-plugin-testing-1.2.tar.xz
|
||||
163
maven-plugin-testing.spec
Normal file
163
maven-plugin-testing.spec
Normal file
@ -0,0 +1,163 @@
|
||||
Name: maven-plugin-testing
|
||||
Version: 1.2
|
||||
Release: 2.2%{?dist}
|
||||
Summary: Maven Plugin Testing
|
||||
|
||||
Group: Development/Libraries
|
||||
License: ASL 2.0
|
||||
URL: http://maven.apache.org/plugin-testing/
|
||||
#svn export http://svn.apache.org/repos/asf/maven/plugin-testing/tags/maven-plugin-testing-1.2 maven-plugin-testing-1.2
|
||||
#tar caf maven-plugin-testing-1.2 maven-plugin-testing-1.2/
|
||||
Source0: %{name}-%{version}.tar.xz
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
BuildArch: noarch
|
||||
|
||||
BuildRequires: junit
|
||||
BuildRequires: java-devel >= 1:1.6.0
|
||||
BuildRequires: maven2-plugin-install
|
||||
BuildRequires: maven2-plugin-compiler
|
||||
BuildRequires: maven2-plugin-resources
|
||||
BuildRequires: maven2-plugin-jar
|
||||
BuildRequires: maven2-plugin-source
|
||||
BuildRequires: plexus-maven-plugin
|
||||
BuildRequires: maven-javadoc-plugin
|
||||
BuildRequires: maven-doxia-sitetools
|
||||
BuildRequires: maven-surefire-maven-plugin
|
||||
BuildRequires: maven-surefire-provider-junit
|
||||
BuildRequires: maven-shared-reporting-impl
|
||||
BuildRequires: maven-shared-test-tools
|
||||
Requires: maven2
|
||||
Requires: jpackage-utils
|
||||
Requires: java
|
||||
Requires(post): jpackage-utils
|
||||
Requires(postun): jpackage-utils
|
||||
|
||||
%description
|
||||
The Maven Plugin Testing contains the necessary modules
|
||||
to be able to test Maven Plugins.
|
||||
|
||||
%package javadoc
|
||||
Group: Documentation
|
||||
Summary: Javadoc for %{name}
|
||||
|
||||
%description javadoc
|
||||
API documentation for %{name}.
|
||||
|
||||
%package harness
|
||||
Summary: Maven Plugin Testing Mechanism
|
||||
Group: Development/Libraries
|
||||
Requires: maven-plugin-testing = %{version}-%{release}
|
||||
Obsoletes: maven-shared-plugin-testing-harness <= 0:1.2
|
||||
Provides : maven-shared-plugin-testing-harness = 1:%{version}-%{release}
|
||||
|
||||
%description harness
|
||||
The Maven Plugin Testing Harness provides mechanisms to manage tests on Mojo.
|
||||
|
||||
%package tools
|
||||
Summary: Maven Plugin Testing Tools
|
||||
Group: Development/Libraries
|
||||
Requires: maven-plugin-testing = %{version}-%{release}
|
||||
Obsoletes: maven-shared-plugin-testing-tools <= 0:1.0
|
||||
Provides : maven-shared-plugin-testing-tools = 1:%{version}-%{release}
|
||||
|
||||
%description tools
|
||||
A set of useful tools to help the Maven Plugin testing.
|
||||
|
||||
%package -n maven-test-tools
|
||||
Summary: Maven Testing Tool
|
||||
Group: Development/Libraries
|
||||
Requires: maven-plugin-testing = %{epoch}:%{version}-%{release}
|
||||
|
||||
%description -n maven-test-tools
|
||||
Framework to test Maven Plugins with Easymock objects.
|
||||
|
||||
%prep
|
||||
%setup -q #You may need to update this according to your Source0
|
||||
|
||||
%build
|
||||
export MAVEN_REPO_LOCAL=$(pwd)/.m2/repository
|
||||
mvn-jpp \
|
||||
-e \
|
||||
-Dmaven2.jpp.mode=true \
|
||||
-Dmaven.repo.local=$MAVEN_REPO_LOCAL \
|
||||
-Dmaven.test.skip=true \
|
||||
install javadoc:javadoc
|
||||
#tests are skipped due to some test failures most probably caused by issues with our plexus container
|
||||
|
||||
%install
|
||||
rm -rf %{buildroot}
|
||||
|
||||
# jars
|
||||
install -d -m 0755 %{buildroot}%{_javadir}/%{name}
|
||||
install -m 644 maven-plugin-testing-harness/target/%{name}-harness-%{version}.jar \
|
||||
%{buildroot}%{_javadir}/%{name}/%{name}-harness-%{version}.jar
|
||||
install -m 644 maven-plugin-testing-tools/target/%{name}-tools-%{version}.jar \
|
||||
%{buildroot}%{_javadir}/%{name}/%{name}-tools-%{version}.jar
|
||||
install -m 644 maven-test-tools/target/maven-test-tools-%{version}.jar \
|
||||
%{buildroot}%{_javadir}/%{name}/maven-test-tools-%{version}.jar
|
||||
|
||||
(cd %{buildroot}%{_javadir}/%{name} && for jar in *-%{version}*; \
|
||||
do ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`; done)
|
||||
|
||||
# poms
|
||||
install -d -m 755 %{buildroot}%{_mavenpomdir}
|
||||
install -pm 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP.%{name}.pom
|
||||
install -pm 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP.%{name}.%{name}-harness.pom
|
||||
%add_to_maven_depmap org.apache.maven.plugin-testing %{name}-harness %{version} JPP/%{name} %{name}-harness
|
||||
%add_to_maven_depmap org.apache.maven.shared %{name}-harness %{version} JPP/%{name} %{name}-harness
|
||||
install -pm 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP.%{name}-tools.pom
|
||||
%add_to_maven_depmap org.apache.maven.plugin-testing %{name}-tools %{version} JPP/%{name} %{name}-tools
|
||||
install -pm 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP.maven-test-tools.pom
|
||||
%add_to_maven_depmap org.apache.maven.plugin-testing maven-test-tools %{version} JPP/%{name} maven-test-tools
|
||||
|
||||
# javadoc
|
||||
install -d -m 0755 %{buildroot}%{_javadocdir}/%{name}
|
||||
install -d -m 0755 %{buildroot}%{_javadocdir}/%{name}/%{name}-harness
|
||||
install -d -m 0755 %{buildroot}%{_javadocdir}/%{name}/%{name}-tools
|
||||
install -d -m 0755 %{buildroot}%{_javadocdir}/%{name}/maven-test-tools
|
||||
|
||||
cp -pr %{name}-harness/target/site/api*/* %{buildroot}%{_javadocdir}/%{name}/%{name}-harness
|
||||
cp -pr %{name}-tools/target/site/api*/* %{buildroot}%{_javadocdir}/%{name}/%{name}-tools
|
||||
cp -pr maven-test-tools/target/site/api*/* %{buildroot}%{_javadocdir}/%{name}/maven-test-tools
|
||||
|
||||
|
||||
%post
|
||||
%update_maven_depmap
|
||||
|
||||
%postun
|
||||
%update_maven_depmap
|
||||
|
||||
%clean
|
||||
rm -rf %{buildroot}
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%{_javadir}/%{name}
|
||||
%{_mavenpomdir}/*
|
||||
%{_mavendepmapfragdir}/*
|
||||
|
||||
%files javadoc
|
||||
%defattr(-,root,root,-)
|
||||
%{_javadocdir}/%{name}
|
||||
|
||||
%files harness
|
||||
%defattr(-,root,root,-)
|
||||
%{_javadir}/%{name}/%{name}-harness*
|
||||
|
||||
%files tools
|
||||
%defattr(-,root,root,-)
|
||||
%{_javadir}/%{name}/%{name}-tools*
|
||||
|
||||
%files -n maven-test-tools
|
||||
%defattr(-,root,root,-)
|
||||
%{_javadir}/%{name}/maven-test-tools*
|
||||
|
||||
%changelog
|
||||
* Wed May 12 2010 Alexander Kurtakov <akurtako@redhat.com> 1:1.2-2
|
||||
- Fix line lengths and use macroses consistently.
|
||||
- Add comment for the tests skip.
|
||||
- Add missing requires and set permissions.
|
||||
|
||||
* Wed May 12 2010 Alexander Kurtakov <akurtako@redhat.com> 1:1.2-1
|
||||
- Initial package.
|
||||
Loading…
Reference in New Issue
Block a user