Initial import.
This commit is contained in:
parent
a5ab8672ea
commit
fe7d4e709e
@ -0,0 +1 @@
|
||||
maven-source-plugin-2.1.2.tar.xz
|
||||
117
maven-source-plugin.spec
Normal file
117
maven-source-plugin.spec
Normal file
@ -0,0 +1,117 @@
|
||||
Name: maven-source-plugin
|
||||
Version: 2.1.2
|
||||
Release: 3%{?dist}
|
||||
Summary: Plugin creating source jar
|
||||
|
||||
Group: Development/Libraries
|
||||
License: ASL 2.0
|
||||
URL: http://maven.apache.org/plugins/maven-source-plugin/
|
||||
# svn export http://svn.apache.org/repos/asf/maven/plugins/tags/maven-source-plugin-2.1.2
|
||||
# tar caf maven-source-plugin-2.1.2.tar.xz maven-source-plugin-2.1.2/
|
||||
Source0: %{name}-%{version}.tar.xz
|
||||
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: jpackage-utils
|
||||
Requires: ant-nodeps
|
||||
Requires: maven2
|
||||
Requires: jpackage-utils
|
||||
Requires: java
|
||||
Requires(post): jpackage-utils
|
||||
Requires(postun): jpackage-utils
|
||||
|
||||
Obsoletes: maven2-plugin-source < 0:%{version}-%{release}
|
||||
Provides: maven2-plugin-source = 0:%{version}-%{release}
|
||||
|
||||
%description
|
||||
The Maven 2 Source Plugin creates a JAR archive of the
|
||||
source files of the current project.
|
||||
|
||||
%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
|
||||
|
||||
%build
|
||||
export MAVEN_REPO_LOCAL=$(pwd)/.m2/repository
|
||||
mvn-jpp \
|
||||
-e \
|
||||
-Dmaven2.jpp.mode=true \
|
||||
-Dmaven.repo.local=$MAVEN_REPO_LOCAL \
|
||||
-Dmaven.test.failure.ignore=true \
|
||||
install javadoc:javadoc
|
||||
|
||||
%install
|
||||
rm -rf %{buildroot}
|
||||
|
||||
# jars
|
||||
install -d -m 0755 %{buildroot}%{_javadir}
|
||||
install -m 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 maven-source-plugin %{version} JPP maven-source-plugin
|
||||
|
||||
# poms
|
||||
install -d -m 755 %{buildroot}%{_mavenpomdir}
|
||||
install -pm 644 pom.xml \
|
||||
%{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
|
||||
|
||||
# javadoc
|
||||
install -d -m 0755 %{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}/*
|
||||
%{_mavendepmapfragdir}/*
|
||||
|
||||
%files javadoc
|
||||
%defattr(-,root,root,-)
|
||||
%{_javadocdir}/%{name}-%{version}
|
||||
%{_javadocdir}/%{name}
|
||||
|
||||
%changelog
|
||||
* Fri May 28 2010 Alexander Kurtakov <akurtako@redhat.com> 2.1.2-3
|
||||
- Add provides/obsoletes.
|
||||
|
||||
* Thu May 27 2010 Alexander Kurtakov <akurtako@redhat.com> 2.1.2-2
|
||||
- Fix Url.
|
||||
- More descriptive summary.
|
||||
- Add missing BR.
|
||||
|
||||
* Thu May 27 2010 Alexander Kurtakov <akurtako@redhat.com> 2.1.2-1
|
||||
- Initial package.
|
||||
Loading…
Reference in New Issue
Block a user