115 lines
3.3 KiB
RPMSpec
115 lines
3.3 KiB
RPMSpec
Name: maven-compiler-plugin
|
|
Version: 2.4
|
|
Release: 1%{?dist}
|
|
Summary: Maven Compiler Plugin
|
|
|
|
Group: Development/Libraries
|
|
License: ASL 2.0
|
|
URL: http://maven.apache.org/plugins/maven-compiler-plugin
|
|
#svn export http://svn.apache.org/repos/asf/maven/plugins/tags/maven-compiler-plugin-2.4 maven-compiler-plugin-2.4
|
|
#tar caf maven-compiler-plugin-2.4.tar.xz maven-compiler-plugin-2.4/
|
|
Source0: %{name}-%{version}.tar.xz
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: java-devel >= 1:1.6.0
|
|
BuildRequires: maven
|
|
BuildRequires: maven-plugin-plugin
|
|
BuildRequires: maven-compiler-plugin
|
|
BuildRequires: maven-jar-plugin
|
|
BuildRequires: maven-install-plugin
|
|
BuildRequires: maven-resources-plugin
|
|
BuildRequires: maven-javadoc-plugin
|
|
BuildRequires: maven-surefire-plugin
|
|
BuildRequires: maven-surefire-provider-junit
|
|
BuildRequires: maven-doxia-sitetools
|
|
BuildRequires: maven-plugin-testing-harness
|
|
BuildRequires: maven-toolchain
|
|
BuildRequires: plexus-utils
|
|
BuildRequires: plexus-compiler
|
|
|
|
Requires: maven
|
|
Requires: maven-toolchain
|
|
Requires: plexus-utils
|
|
Requires: plexus-compiler
|
|
Requires: jpackage-utils
|
|
Requires: java
|
|
|
|
Provides: maven2-plugin-compiler = %{version}-%{release}
|
|
Obsoletes: maven2-plugin-compiler <= 0:2.0.8
|
|
|
|
%description
|
|
The Compiler Plugin is used to compile the sources of your 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
|
|
mvn-rpmbuild install javadoc:aggregate -Dmaven.test.failure.ignore
|
|
|
|
%install
|
|
|
|
# jars
|
|
install -d -m 0755 %{buildroot}%{_javadir}
|
|
install -m 644 target/%{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar
|
|
|
|
# poms
|
|
install -d -m 755 %{buildroot}%{_mavenpomdir}
|
|
install -pm 644 pom.xml \
|
|
%{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
|
|
|
|
|
|
%add_maven_depmap JPP-%{name}.pom %{name}.jar
|
|
|
|
# javadoc
|
|
install -d -m 0755 %{buildroot}%{_javadocdir}/%{name}
|
|
cp -pr target/site/api*/* %{buildroot}%{_javadocdir}/%{name}
|
|
|
|
%files
|
|
%{_javadir}/*
|
|
%{_mavenpomdir}/*
|
|
%{_mavendepmapfragdir}/*
|
|
|
|
%files javadoc
|
|
%{_javadocdir}/%{name}
|
|
|
|
%changelog
|
|
* Wed May 23 2012 Tomas Radej <tradej@redhat.com> - 2.4-1
|
|
- Updated to latest upstream version
|
|
- Guidelines fixes + Removed RPM workaround
|
|
|
|
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.2-5
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
* Mon Jun 27 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2.3.2-4
|
|
- Add few missing (Build)requires
|
|
- Remove post(un) scriptlets with update_maven_depmap
|
|
- Use new add_maven_depmap macro
|
|
|
|
* Fri Jun 3 2011 Alexander Kurtakov <akurtako@redhat.com> 2.3.2-3
|
|
- Do not require maven2.
|
|
- Guidelines fixes.
|
|
|
|
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.2-2
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
* Wed Jan 19 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2.3.2-1
|
|
- Update to latest version (2.3.2)
|
|
- Modifications according to new guidelines
|
|
- Build with maven 3
|
|
|
|
* Wed May 12 2010 Alexander Kurtakov <akurtako@redhat.com> 2.0.2-2
|
|
- Add missing requires.
|
|
|
|
* Tue May 11 2010 Alexander Kurtakov <akurtako@redhat.com> 2.0.2-1
|
|
- Initial package.
|