From 80a40287613fed4d27c239fe2cb00e227f769c90 Mon Sep 17 00:00:00 2001 From: Tomas Radej Date: Thu, 18 Aug 2011 13:28:50 +0200 Subject: [PATCH] Initial import --- .gitignore | 1 + maven-filtering.spec | 75 ++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 77 insertions(+) create mode 100644 maven-filtering.spec diff --git a/.gitignore b/.gitignore index e69de29..b365c15 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/maven-filtering-1.0-source-release.zip diff --git a/maven-filtering.spec b/maven-filtering.spec new file mode 100644 index 0000000..590ad3e --- /dev/null +++ b/maven-filtering.spec @@ -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 1.0-2 +- Removed rm -rf {buildroot} + +* Tue Aug 16 2011 Tomas Radej 1.0-1 +- Initial release (thanks to the GULaG team) + diff --git a/sources b/sources index e69de29..398ae1e 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +0fb6fb5d407bd7c8d752762859fe530c maven-filtering-1.0-source-release.zip