[maven-repository-builder] Initial commit
Tomas Radej
tradej at fedoraproject.org
Fri Feb 15 15:49:41 UTC 2013
commit 7187cf45ab332f98b98abdc079816affabe4250e
Author: Tomas Radej <tradej at redhat.com>
Date: Fri Feb 15 16:49:30 2013 +0100
Initial commit
.gitignore | 2 +
maven-repository-builder.spec | 80 +++++++++++++++++++++++++++++++++++++++++
sources | 2 +
3 files changed, 84 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..26297e5 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1,2 @@
+/LICENSE-2.0.txt
+/maven-repository-builder-1.0-alpha-2.tar.xz
diff --git a/maven-repository-builder.spec b/maven-repository-builder.spec
new file mode 100644
index 0000000..4ab834b
--- /dev/null
+++ b/maven-repository-builder.spec
@@ -0,0 +1,80 @@
+%global pkg_version 1.0-alpha-2
+
+Name: maven-repository-builder
+Version: 1.0
+# See http://fedoraproject.org/wiki/Packaging:NamingGuidelines#Package_Versioning
+Release: 0.2.alpha2%{?dist}
+# Maven-shared defines maven-repository-builder version as 1.0
+Epoch: 1
+Summary: Maven repository builder
+License: ASL 2.0
+URL: http://maven.apache.org/shared/maven-repository-builder/
+
+# svn export http://svn.apache.org/repos/asf/maven/shared/tags/maven-repository-builder-1.0-alpha-2 maven-repository-builder-1.0-alpha-2
+# tar caf maven-repository-builder-1.0-alpha-2.tar.xz maven-repository-builder-1.0-alpha-2/
+Source0: %{name}-%{pkg_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: easymock
+BuildRequires: java-devel
+BuildRequires: junit
+BuildRequires: maven-local
+BuildRequires: maven-surefire-provider-junit
+BuildRequires: maven-test-tools
+BuildRequires: maven-wagon
+
+Obsoletes: maven-shared-repository-builder < %{epoch}:%{version}-%{release}
+Provides: maven-shared-repository-builder = %{epoch}:%{version}-%{release}
+
+%description
+Maven repository builder.
+
+This is a replacement package for maven-shared-repository-builder
+
+%package javadoc
+Group: Documentation
+Summary: Javadoc for %{name}
+
+%description javadoc
+API documentation for %{name}.
+
+
+%prep
+%setup -q -n %{name}-%{pkg_version}
+
+# 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>/' '{}' ';'
+
+# Removing JARs because of binary code contained
+find -iname '*.jar' -delete
+
+cp %{SOURCE1} LICENSE.txt
+
+%build
+# Skipping tests because they don't work without the JARs
+%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.0-0.2.alpha2
+- Removed bundled JAR
+- Building the new way
+
+* Fri Jan 11 2013 Tomas Radej <tradej at redhat.com> - 1:1.0-0.1.alpha2
+- Initial version
+
diff --git a/sources b/sources
index e69de29..5790833 100644
--- a/sources
+++ b/sources
@@ -0,0 +1,2 @@
+3b83ef96387f14655fc854ddc3c6bd57 LICENSE-2.0.txt
+67d847c851e75f5517390991faa07ca8 maven-repository-builder-1.0-alpha-2.tar.xz
More information about the scm-commits
mailing list