Added Provides/Obsoletes, added depmap

This commit is contained in:
Tomas Radej 2011-08-31 10:26:01 +02:00
parent 80a4028761
commit 8fb2fc18a7
2 changed files with 22 additions and 2 deletions

13
maven-filtering.depmap Normal file
View File

@ -0,0 +1,13 @@
<dependencies>
<dependency>
<maven>
<groupId>org.apache.maven.shared</groupId>
<artifactId>maven-filtering</artifactId>
</maven>
<jpp>
<groupId>JPP</groupId>
<artifactId>maven-filtering</artifactId>
</jpp>
</dependency>
</dependencies>

View File

@ -1,12 +1,13 @@
Name: maven-filtering
Version: 1.0
Release: 2%{?dist}
Release: 3%{?dist}
Summary: Shared component providing resource filtering
Group: Development/Libraries
License: ASL 2.0
URL: http://maven.apache.org/shared/%{name}/index.html
Source0: http://repo1.maven.org/maven2/org/apache/maven/shared/%{name}/%{version}/%{name}-%{version}-source-release.zip
Source1: maven-filtering.depmap
BuildArch: noarch
@ -20,6 +21,9 @@ Requires: java >= 1:1.6.0
Requires: jpackage-utils
Requires: maven
Provides: maven-shared-filtering = %{version}%{release}
Obsoletes: maven-shared-filtering < %{version}%{release}
%description
These Plexus components have been built from the filtering process/code in
Maven Resources Plugin. The goal is to provide a shared component for all
@ -39,7 +43,7 @@ This package contains the API documentation for %{name}.
%build
# Tests use a package that is no longer present in plexus-build-api (v0.0.7)
mvn-rpmbuild install javadoc:aggregate -Dmaven.test.skip=true
mvn-rpmbuild install javadoc:aggregate -Dmaven.test.skip=true -Dmaven.local.depmap.file="%{SOURCE1}"
%install
# jars
@ -67,6 +71,9 @@ cp -pr target/site/api*/* %{buildroot}%{_javadocdir}/%{name}
%{_javadocdir}/%{name}
%changelog
* Wed Aug 31 2011 Tomas Radej <tradej@redhat.com> - 1.0-3
- Added Provides/Obsoletes
* Tue Aug 16 2011 Tomas Radej <tradej@redhat.com> 1.0-2
- Removed rm -rf {buildroot}