From a1d004b6a3c874e59a01f32d4e6cdb069fd31529 Mon Sep 17 00:00:00 2001 From: Mikolaj Izdebski Date: Tue, 20 Nov 2012 14:21:08 +0100 Subject: [PATCH] Provide and obsolete classworlds --- plexus-classworlds.spec | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/plexus-classworlds.spec b/plexus-classworlds.spec index edd31e1..6a7fbda 100644 --- a/plexus-classworlds.spec +++ b/plexus-classworlds.spec @@ -34,7 +34,7 @@ Name: %{parent}-%{subname} Version: 2.4 -Release: 8%{?dist} +Release: 9%{?dist} Summary: Plexus Classworlds Classloader Framework License: ASL 2.0 and Plexus Group: Development/Libraries @@ -63,6 +63,11 @@ BuildRequires: maven-surefire-provider-junit BuildRequires: maven-plugin-bundle BuildRequires: plexus-utils +Requires: java +Requires: jpackage-utils +Provides: %{subname} = %{version}-%{release} +Obsoletes: %{subname} < %{version}-%{release} + %description Classworlds is a framework for container developers who require complex manipulation of Java's ClassLoaders. @@ -77,6 +82,8 @@ classworlds. Summary: Javadoc for %{name} Group: Documentation Requires: jpackage-utils +Provides: %{subname}-javadoc = %{version}-%{release} +Obsoletes: %{subname}-javadoc < %{version}-%{release} %description javadoc API documentation for %{name}. @@ -115,7 +122,7 @@ install -Dpm 644 target/%{name}-%{version}.jar \ # pom install -Dpm 644 pom.xml $RPM_BUILD_ROOT%{_mavenpomdir}/JPP.%{parent}-%{subname}.pom -%add_maven_depmap JPP.%{parent}-%{subname}.pom plexus/%{subname}.jar +%add_maven_depmap JPP.%{parent}-%{subname}.pom plexus/%{subname}.jar -a classworlds:classworlds # javadoc install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name} @@ -132,6 +139,9 @@ cp -pr target/site/apidocs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name} %doc %{_javadocdir}/%{name} %changelog +* Tue Nov 20 2012 Mikolaj Izdebski - 2.4-9 +- Provide and obsolete classworlds + * Mon Nov 19 2012 Stanislav Ochotnicky - 2.4-8 - Fix source URL to be stable