[maven-downloader] Initial commit

Tomas Radej tradej at fedoraproject.org
Fri Feb 8 14:47:32 UTC 2013


commit 38ed86b3e2344e6287a63cdfcdd6f1d57f2cba59
Author: Tomas Radej <tradej at redhat.com>
Date:   Fri Feb 8 15:47:10 2013 +0100

    Initial commit

 .gitignore            |    2 +
 maven-downloader.spec |   71 +++++++++++++++++++++++++++++++++++++++++++++++++
 sources               |    2 +
 3 files changed, 75 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..52ba4df 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1,2 @@
+/LICENSE-2.0.txt
+/maven-downloader-1.1.tar.xz
diff --git a/maven-downloader.spec b/maven-downloader.spec
new file mode 100644
index 0000000..81ec5af
--- /dev/null
+++ b/maven-downloader.spec
@@ -0,0 +1,71 @@
+Name:           maven-downloader
+Version:        1.1
+Release:        2%{?dist}
+# Maven-shared defines maven-downloader version as 1.2
+Epoch:          1
+Summary:        Maven artifact downloader
+License:        ASL 2.0
+URL:            http://maven.apache.org/shared/maven-osgi
+# svn export http://svn.apache.org/repos/asf/maven/shared/tags/maven-downloader-1.1 maven-downloader-1.1
+# tar caf maven-downloader-1.1.tar.xz maven-downloader-1.1/
+Source0:        %{name}-%{version}.tar.xz
+# ASL mandates that the licence file be included in redistributed source
+Source1:        http://www.apache.org/licenses/LICENSE-2.0.txt
+
+BuildArch:      noarch
+
+BuildRequires:  java-devel
+BuildRequires:  junit
+BuildRequires:  maven-local
+BuildRequires:  plexus-containers-component-metadata
+
+Obsoletes:      maven-shared-downloader < %{epoch}:%{version}-%{release}
+Provides:       maven-shared-downloader = %{epoch}:%{version}-%{release}
+
+%description
+Provide a super simple interface for downloading a single artifact.
+
+This is a replacement package for maven-shared-downloader
+
+%package javadoc
+Group:          Documentation
+Summary:        Javadoc for %{name}
+Requires:       jpackage-utils
+    
+%description javadoc
+API documentation for %{name}.
+
+
+%prep
+%setup -q
+
+%pom_add_dep org.apache.maven:maven-compat
+
+# Replace plexus-maven-plugin with plexus-component-metadata
+find -name 'pom.xml' -exec sed \
+    -i 's/<artifactId>plexus-maven-plugin<\/artifactId>/<artifactId>plexus-component-metadata<\/artifactId>/' '{}' ';'
+find -name 'pom.xml' -exec sed \
+    -i 's/<goal>descriptor<\/goal>/<goal>generate-metadata<\/goal>/' '{}' ';'
+
+cp %{SOURCE1} LICENSE.txt
+
+%build
+%mvn_build -f
+
+%install
+%mvn_install
+
+%files -f .mfiles
+%doc LICENSE.txt
+
+%files javadoc -f .mfiles-javadoc
+%doc LICENSE.txt
+
+
+%changelog
+* Fri Feb 08 2013 Tomas Radej <tradej at redhat.com> - 1:1.1-2
+- Building the new way
+
+* Fri Jan 11 2013 Tomas Radej <tradej at redhat.com> - 1:1.1-1
+- Initial version
+
diff --git a/sources b/sources
index e69de29..ebd652d 100644
--- a/sources
+++ b/sources
@@ -0,0 +1,2 @@
+3b83ef96387f14655fc854ddc3c6bd57  LICENSE-2.0.txt
+c5d75121b589188557c8c5e4b469fbaa  maven-downloader-1.1.tar.xz


More information about the scm-commits mailing list