[aether] Initial version of package
Stanislav Ochotnicky
sochotni at fedoraproject.org
Wed Oct 13 15:37:11 UTC 2010
commit cba8ea66727aeb9ab2c237382bdcc2b9ebc3397c
Author: Stanislav Ochotnicky <sochotnicky at redhat.com>
Date: Wed Oct 13 17:36:56 2010 +0200
Initial version of package
.gitignore | 1 +
aether.spec | 125 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 127 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..fef96a1 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/sonatype-sonatype-aether-aether-1.7-0-g6ef7c04.tar.gz
diff --git a/aether.spec b/aether.spec
new file mode 100644
index 0000000..780dc6f
--- /dev/null
+++ b/aether.spec
@@ -0,0 +1,125 @@
+%global full_name sonatype-aether
+%global githash g6ef7c04
+
+Name: aether
+Version: 1.7
+Release: 2%{?dist}
+Summary: Sonatype library to resolve, install and deploy artifacts the Maven way
+
+Group: Development/Libraries
+License: ASL 2.0
+URL: https://docs.sonatype.org/display/AETHER/Home
+# it seems github has redirects plus it generates tarball on the fly
+# to get tarball go to http://github.com/sonatype/sonatype-aether/tree/aether-1.7
+# click "downloads" in upper right corner
+# click "download .tar.gz"
+Source0: sonatype-%{full_name}-%{name}-%{version}-0-%{githash}.tar.gz
+
+BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
+BuildArch: noarch
+
+BuildRequires: maven2
+BuildRequires: maven-compiler-plugin
+BuildRequires: maven-install-plugin
+BuildRequires: maven-jar-plugin
+BuildRequires: maven-javadoc-plugin
+BuildRequires: maven-resources-plugin
+BuildRequires: maven-site-plugin
+BuildRequires: maven-surefire-plugin
+BuildRequires: maven-surefire-provider-junit4
+BuildRequires: plexus-containers-component-metadata >= 1.5.4-4
+BuildRequires: animal-sniffer >= 1.6-5
+BuildRequires: mojo-parent
+
+
+Requires: maven2
+Requires: java >= 1:1.6.0
+Requires(post): jpackage-utils
+Requires(postun): jpackage-utils
+
+
+%description
+Aether is standalone library to resolve, install and deploy artifacts
+the Maven way developed by Sonatype
+
+%package javadoc
+Summary: API documentation for %{name}
+Group: Documentation
+Requires: jpackage-utils
+
+%description javadoc
+%{summary}.
+
+%prep
+# last part will have to change every time
+%setup -q -n sonatype-%{full_name}-074c2fb
+
+
+%build
+export MAVEN_REPO_LOCAL=$(pwd)/.m2/repository
+mkdir -p $MAVEN_REPO_LOCAL
+
+mvn-jpp -e \
+ -Dmaven.repo.local=$MAVEN_REPO_LOCAL \
+ install javadoc:aggregate
+
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+install -d -m 755 $RPM_BUILD_ROOT%{_javadir}/%{name}
+install -d -m 755 $RPM_BUILD_ROOT%{_mavenpomdir}
+
+for module in aether-api aether-connector-file aether-connector-wagon \
+ aether-impl aether-spi aether-test-util aether-util;do
+pushd $module
+ jarname=`echo $module | sed s:aether-::`
+ install -m 644 target/$module-*.jar $RPM_BUILD_ROOT%{_javadir}/%{name}/$jarname-%{version}.jar
+
+ install -pm 644 pom.xml $RPM_BUILD_ROOT/%{_mavenpomdir}/JPP.%{name}-$jarname.pom
+ %add_to_maven_depmap org.sonatype.aether $module %{version} JPP/%{name} $jarname
+popd
+done
+
+(cd $RPM_BUILD_ROOT%{_javadir}/%{name} && for jar in *-%{version}.jar; do ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`; done)
+
+
+install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
+cp -pr target/site/apidocs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
+(cd $RPM_BUILD_ROOT%{_javadocdir} && ln -sf %{name}-%{version} %{name})
+
+install -pm 644 pom.xml $RPM_BUILD_ROOT/%{_mavenpomdir}/JPP.%{name}-parent.pom
+%add_to_maven_depmap org.sonatype.aether %{name}-parent %{version} JPP/%{name} parent
+
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+%update_maven_depmap
+
+%postun
+%update_maven_depmap
+
+
+%files
+%defattr(-,root,root,-)
+%doc README.md
+%{_javadir}/%{name}
+%{_mavendepmapfragdir}/%{name}
+%{_mavenpomdir}/*.pom
+
+%files javadoc
+%defattr(-,root,root,-)
+%{_javadocdir}/%{name}-%{version}
+%{_javadocdir}/%{name}
+
+
+
+%changelog
+* Wed Oct 13 2010 Stanislav Ochotnicky <sochotnicky at redhat.com> - 1.7-2
+- Explained how to get tarball properly
+- Removed noreplace on depmap fragment
+
+* Mon Oct 11 2010 Stanislav Ochotnicky <sochotnicky at redhat.com> - 1.7-1
+- Initial Package
diff --git a/sources b/sources
index e69de29..f1396a8 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+fa9697f1d2e8d9086fb7f287b02cc00d sonatype-sonatype-aether-aether-1.7-0-g6ef7c04.tar.gz
More information about the scm-commits
mailing list