Use pom macros instead of patching
- Update spec for latest guidelines
This commit is contained in:
parent
e851cfb73f
commit
5e166753bf
@ -1,28 +0,0 @@
|
||||
--- pom.xml 2012-10-19 23:01:18.419198466 +0200
|
||||
+++ pom.xml 2012-10-19 23:01:52.119423986 +0200
|
||||
@@ -332,8 +331,0 @@
|
||||
- <groupId>org.apache.commons</groupId>
|
||||
- <artifactId>commons-build-plugin</artifactId>
|
||||
- <version>1.4</version>
|
||||
- <configuration>
|
||||
- <commons.release.name>${commons.release.name}</commons.release.name>
|
||||
- </configuration>
|
||||
- </plugin>
|
||||
- <plugin>
|
||||
@@ -429,4 +420,0 @@
|
||||
- <groupId>org.apache.commons</groupId>
|
||||
- <artifactId>commons-build-plugin</artifactId>
|
||||
- </plugin>
|
||||
- <plugin>
|
||||
@@ -1144,11 +1131,0 @@
|
||||
-
|
||||
- <!-- Default values for the download-page generation by commons-build-plugin -->
|
||||
- <commons.release.name>${project.artifactId}-${commons.release.version}</commons.release.name>
|
||||
- <commons.release.desc />
|
||||
- <commons.binary.suffix>-bin</commons.binary.suffix>
|
||||
- <commons.release.2.name>${project.artifactId}-${commons.release.2.version}</commons.release.2.name>
|
||||
- <commons.release.2.desc />
|
||||
- <commons.release.2.binary.suffix>-bin</commons.release.2.binary.suffix>
|
||||
- <commons.release.3.name>${project.artifactId}-${commons.release.3.version}</commons.release.3.name>
|
||||
- <commons.release.3.desc />
|
||||
- <commons.release.3.binary.suffix>-bin</commons.release.3.binary.suffix>
|
@ -1,9 +1,8 @@
|
||||
%global base_name parent
|
||||
%global short_name commons-%{base_name}
|
||||
%global short_name commons-parent
|
||||
|
||||
Name: apache-%{short_name}
|
||||
Version: 26
|
||||
Release: 6%{?dist}
|
||||
Release: 7%{?dist}
|
||||
Summary: Apache Commons Parent Pom
|
||||
Group: Development/Libraries
|
||||
License: ASL 2.0
|
||||
@ -13,55 +12,39 @@ URL: http://svn.apache.org/repos/asf/commons/proper/%{short_name}/t
|
||||
# tar caf commons-parent-26.tar.xz commons-parent-26
|
||||
Source0: %{short_name}-%{version}.tar.xz
|
||||
|
||||
#common-build-plugin not in fedora yet
|
||||
Patch1: %{name}-remove-build-plugin.patch
|
||||
BuildArch: noarch
|
||||
|
||||
BuildRequires: maven-local
|
||||
BuildRequires: java-devel
|
||||
|
||||
BuildRequires: mvn(org.apache:apache)
|
||||
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
|
||||
BuildRequires: mvn(org.apache.maven.plugins:maven-antrun-plugin)
|
||||
BuildRequires: mvn(org.apache.maven.plugins:maven-compiler-plugin)
|
||||
BuildRequires: mvn(org.apache.maven.plugins:maven-jar-plugin)
|
||||
BuildRequires: mvn(org.apache.maven.plugins:maven-surefire-plugin)
|
||||
BuildRequires: mvn(org.apache.rat:apache-rat-plugin)
|
||||
BuildRequires: mvn(org.codehaus.mojo:buildnumber-maven-plugin)
|
||||
|
||||
Requires: mvn(org.apache:apache)
|
||||
Requires: mvn(org.apache.felix:maven-bundle-plugin)
|
||||
Requires: mvn(org.apache.maven.plugins:maven-antrun-plugin)
|
||||
Requires: mvn(org.apache.maven.plugins:maven-compiler-plugin)
|
||||
Requires: mvn(org.apache.maven.plugins:maven-jar-plugin)
|
||||
Requires: mvn(org.apache.maven.plugins:maven-surefire-plugin)
|
||||
Requires: mvn(org.apache.rat:apache-rat-plugin)
|
||||
Requires: mvn(org.codehaus.mojo:buildnumber-maven-plugin)
|
||||
|
||||
|
||||
%description
|
||||
The Project Object Model files for the apache-commons packages.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{short_name}-%{version}
|
||||
%patch1 -p0
|
||||
|
||||
# Plugin is not in fedora
|
||||
%pom_remove_plugin org.apache.commons:commons-build-plugin
|
||||
|
||||
%build
|
||||
mvn-rpmbuild install
|
||||
%mvn_build
|
||||
|
||||
%install
|
||||
# poms
|
||||
install -d -m 755 %{buildroot}%{_mavenpomdir}
|
||||
install -pm 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{short_name}.pom
|
||||
%mvn_install
|
||||
|
||||
%add_maven_depmap JPP-%{short_name}.pom
|
||||
|
||||
%files
|
||||
%doc LICENSE.txt NOTICE.txt
|
||||
%{_mavenpomdir}/*
|
||||
%{_mavendepmapfragdir}/*
|
||||
%files -f .mfiles
|
||||
%doc LICENSE.txt NOTICE.txt RELEASE-NOTES.txt
|
||||
|
||||
%changelog
|
||||
* Tue Aug 06 2013 Mat Booth <fedora@matbooth.co.uk> - 26-7
|
||||
- Use pom macros instead of patching
|
||||
- Update spec for latest guidelines
|
||||
|
||||
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 26-6
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user