Initial import
This commit is contained in:
parent
f94c5e9162
commit
80a4028761
1
.gitignore
vendored
1
.gitignore
vendored
@ -0,0 +1 @@
|
||||
/maven-filtering-1.0-source-release.zip
|
||||
75
maven-filtering.spec
Normal file
75
maven-filtering.spec
Normal file
@ -0,0 +1,75 @@
|
||||
Name: maven-filtering
|
||||
Version: 1.0
|
||||
Release: 2%{?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
|
||||
|
||||
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
|
||||
|
||||
%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
|
||||
|
||||
%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
|
||||
* 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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user