[codehaus-parent] Patch enforcer plugin out so it's not needed in all child packages

Stanislav Ochotnicky sochotni at fedoraproject.org
Tue May 22 10:19:45 UTC 2012


commit 274e5b6cec9016b1234640b018f5a6a030bbf5f1
Author: Stanislav Ochotnicky <sochotnicky at redhat.com>
Date:   Tue May 22 12:19:10 2012 +0200

    Patch enforcer plugin out so it's not needed in all child packages

 codehaus-parent.spec |   22 +++++++++-------------
 1 files changed, 9 insertions(+), 13 deletions(-)
---
diff --git a/codehaus-parent.spec b/codehaus-parent.spec
index 86eea00..96d93a5 100644
--- a/codehaus-parent.spec
+++ b/codehaus-parent.spec
@@ -1,6 +1,6 @@
 Name:           codehaus-parent
 Version:        3
-Release:        4%{?dist}
+Release:        5%{?dist}
 Summary:        Parent pom file for codehaus projects
 
 Group:          Development/Libraries
@@ -8,13 +8,12 @@ License:        ASL 2.0
 URL:            http://codehaus.org/
 #Next version with license is at https://github.com/sonatype/codehaus-parent/blob/master/pom.xml
 Source0:        http://repo1.maven.org/maven2/org/codehaus/codehaus-parent/3/codehaus-parent-3.pom
+Patch0:         %{name}-enforcer.patch
 BuildArch:      noarch
 
 BuildRequires:  jpackage-utils
 
 Requires:       jpackage-utils
-Requires(post):       jpackage-utils
-Requires(postun):     jpackage-utils
 
 %description
 This package contains the parent pom file for codehaus projects.
@@ -22,31 +21,28 @@ This package contains the parent pom file for codehaus projects.
 
 %prep
 %setup -q -c -T
-
+cp %{SOURCE0} .
+%patch0
 
 %build
 
 
 %install
 install -d -m 755 $RPM_BUILD_ROOT%{_mavenpomdir}
-install -pm 644 %SOURCE0 \
+install -pm 644 codehaus-parent-3.pom \
         $RPM_BUILD_ROOT%{_mavenpomdir}/JPP-%{name}.pom
 
-%add_to_maven_depmap org.codehaus codehaus-parent %{version} JPP %{name}
-
+%add_maven_depmap JPP-%{name}.pom 
 
-%post
-%update_maven_depmap
-
-%postun
-%update_maven_depmap
 
 %files
-%defattr(-,root,root,-)
 %{_mavenpomdir}/*
 %{_mavendepmapfragdir}/*
 
 %changelog
+* Tue May 22 2012 Stanislav Ochotnicky <sochotnicky at redhat.com> - 3-5
+- Patch enforcer plugin out so it's not needed in all child packages
+
 * Thu Jan 12 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 3-4
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
 


More information about the scm-commits mailing list