83 lines
2.3 KiB
RPMSpec
83 lines
2.3 KiB
RPMSpec
Name: maven-filtering
|
|
Version: 1.0
|
|
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
|
|
|
|
BuildRequires: java-devel >= 1:1.6.0
|
|
BuildRequires: jpackage-utils
|
|
BuildRequires: maven
|
|
BuildRequires: plexus-build-api
|
|
BuildRequires: sisu
|
|
|
|
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
|
|
plugins that needs to filter resources.
|
|
|
|
%package javadoc
|
|
Group: Documentation
|
|
Summary: Javadoc for %{name}
|
|
Requires: jpackage-utils
|
|
|
|
%description javadoc
|
|
This package contains the API documentation for %{name}.
|
|
|
|
%prep
|
|
%setup -q -n %{name}-%{version}
|
|
|
|
|
|
%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 -Dmaven.local.depmap.file="%{SOURCE1}"
|
|
|
|
%install
|
|
# jars
|
|
install -d -m 0755 %{buildroot}%{_javadir}
|
|
install -pm 644 target/%{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar
|
|
|
|
# pom
|
|
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
|
|
%doc DEPENDENCIES LICENSE NOTICE
|
|
%{_javadir}/*
|
|
%{_mavenpomdir}/JPP-%{name}.pom
|
|
%{_mavendepmapfragdir}/%{name}
|
|
|
|
%files javadoc
|
|
%doc LICENSE
|
|
%{_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}
|
|
|
|
* Tue Aug 16 2011 Tomas Radej <tradej@redhat.com> 1.0-1
|
|
- Initial release (thanks to the GULaG team)
|
|
|