[clojure-contrib] Initial import

Michel Alexandre Salim salimma at fedoraproject.org
Sun Jul 1 03:41:36 UTC 2012


commit 9183f614e290e0e28714947dd64a495954aa1726
Author: Michel Alexandre Salim <salimma at fedoraproject.org>
Date:   Sun Jul 1 10:41:27 2012 +0700

    Initial import

 .gitignore           |    1 +
 clojure-contrib.spec |  105 ++++++++++++++++++++++++++++++++++++++++++++++++++
 sources              |    1 +
 3 files changed, 107 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..39382cb 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/clojure-clojure-contrib-1.2.0-0-g2a4e52d.tar.gz
diff --git a/clojure-contrib.spec b/clojure-contrib.spec
new file mode 100644
index 0000000..b204870
--- /dev/null
+++ b/clojure-contrib.spec
@@ -0,0 +1,105 @@
+%global vendor      clojure
+%global groupId     org.clojure
+%global artifactId  clojure-contrib
+%global commit_hash 2a4e52d
+
+Name:           %{artifactId}
+Version:        1.2.0
+Release:        1%{?dist}
+Summary:        User contributions library for Clojure
+
+License:        EPL
+URL:            http://richhickey.github.com/clojure-contrib/
+# wget --content-disposition \
+#      https://github.com/%%{vendor}/%%{name}/tarball/%%{version}
+Source0:        %{vendor}-%{name}-%{version}-0-g%{commit_hash}.tar.gz
+
+BuildArch:      noarch
+
+BuildRequires:  jpackage-utils
+
+BuildRequires:  java-devel
+
+BuildRequires:  maven
+
+BuildRequires:  maven-compiler-plugin
+BuildRequires:  maven-install-plugin
+BuildRequires:  maven-jar-plugin
+BuildRequires:  maven-javadoc-plugin
+BuildRequires:  maven-release-plugin
+BuildRequires:  maven-resources-plugin
+BuildRequires:  maven-surefire-plugin
+
+BuildRequires:  clojure-compat
+BuildRequires:  clojure-maven-plugin
+
+Requires:       jpackage-utils
+%if 0%{?rhel}
+Requires(post):   jpackage-utils
+Requires(postun): jpackage-utils
+%endif
+
+Requires:       clojure-compat
+Requires:       java
+
+%description
+The user contributions library, clojure-contrib, is a collection of
+namespaces implementing features that may be useful to a large part of
+the Clojure community.
+
+It includes namespaces for math utilities, string manipulation,
+sequence manipulation, json read and write and many more.
+
+
+%prep
+%setup -q -n %{vendor}-%{name}-c9572b3
+
+
+%build
+%if 0%{?rhel}
+export MAVEN_REPO_LOCAL=$(pwd)/.m2/repository
+mkdir -p $MAVEN_REPO_LOCAL
+
+mvn-jpp \
+    -Dmaven.repo.local=$MAVEN_REPO_LOCAL \
+%else
+mvn-rpmbuild \
+%endif
+    install
+
+
+%install
+install -d -m 755 $RPM_BUILD_ROOT%{_javadir}
+install -pm 644 target/%{name}-%{version}.jar \
+    $RPM_BUILD_ROOT/%{_javadir}/%{name}.jar
+
+install -d -m 755 $RPM_BUILD_ROOT%{_mavenpomdir}
+install -pm 644 pom.xml \
+    $RPM_BUILD_ROOT/%{_mavenpomdir}/JPP-%{name}.pom
+
+%if 0%{?add_maven_depmap:1}
+%add_maven_depmap JPP-%{name}.pom %{name}.jar
+%else
+%add_to_maven_depmap %{groupId} %{artifactId} %{version} JPP %{name}.jar
+%endif
+
+
+%if 0%{?rhel}
+%post
+%update_maven_depmap
+
+%postun
+%update_maven_depmap
+%endif
+
+
+%files
+%doc epl-v10.html README.txt
+%{_mavendepmapfragdir}/%{name}
+%{_mavenpomdir}/JPP-%{name}.pom
+%{_javadir}/%{name}.jar
+
+
+%changelog
+* Fri Jun  8 2012 Michel Salim <salimma at fedoraproject.org> - 1.2.0-1
+- Initial package
diff --git a/sources b/sources
index e69de29..c0f815e 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+07903912ebb04d3a08120717081edae1  clojure-clojure-contrib-1.2.0-0-g2a4e52d.tar.gz


More information about the scm-commits mailing list