[robert-hooke] Initial import

Michel Alexandre Salim salimma at fedoraproject.org
Wed Jun 20 14:29:42 UTC 2012


commit 095fb049b51ba4433c82434de82f5e5f98fe47a3
Author: Michel Alexandre Salim <salimma at fedoraproject.org>
Date:   Wed Jun 20 21:29:33 2012 +0700

    Initial import

 .gitignore        |    1 +
 robert-hooke.spec |   99 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources           |    1 +
 3 files changed, 101 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..4140a4d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/technomancy-robert-hooke-1.1.2-18-g30d2f8f.tar.gz
diff --git a/robert-hooke.spec b/robert-hooke.spec
new file mode 100644
index 0000000..817b3c0
--- /dev/null
+++ b/robert-hooke.spec
@@ -0,0 +1,99 @@
+%global upstream    technomancy
+%global groupId     robert
+%global artifactId  hooke
+%global commit_hash 30d2f8f
+
+Name:           %{groupId}-%{artifactId}
+Version:        1.2.0
+Release:        2%{?dist}
+Summary:        Extension mechanism for Clojure functions
+
+# upstream asked to include license text:
+# https://github.com/technomancy/robert-hooke/issues/9
+License:        EPL
+URL:            https://github.com/%{upstream}/%{name}/
+# wget --content-disposition %%{url}/tarball/%%{commit_hash}
+# upstream has not pushed post-1.1.2 tags yet, thus the odd source filename:
+# https://github.com/technomancy/robert-hooke/issues/8
+Source0:        %{upstream}-%{name}-1.1.2-18-g%{commit_hash}.tar.gz
+# generated using 'lein pom' using Leiningen 2.0.0-preview6
+# as we don't have leiningen 2.x packaged yet
+# (Leiningen 2.x is needed as project.clj uses new-style profiles
+#  not supported by Leiningen 1.x)
+Source1:        %{name}-pom.xml
+
+BuildArch:      noarch
+
+BuildRequires:  jpackage-utils
+
+BuildRequires:  java-devel
+
+Requires:       jpackage-utils
+%if 0%{?rhel}
+Requires(post):   jpackage-utils
+Requires(postun): jpackage-utils
+%endif
+
+Requires:       clojure
+Requires:       java
+
+%description
+Robert Hooke provides a flexible, composable mechanism by which you
+can extend behavior of functions after they've been defined. It's
+named after Robert Hooke FRS, a founding member of the Royal Society
+who made many important discoveries in the fields of Gravitation,
+Microscopy, and Astronomy.
+
+
+%prep
+%setup -q -n %{upstream}-%{name}-%{commit_hash}
+cp -p %{SOURCE1} pom.xml
+
+
+%build
+jar cf %{name}.jar -C src .
+
+
+%install
+install -d -m 755 $RPM_BUILD_ROOT%{_javadir}
+install -pm 644 %{name}.jar \
+    $RPM_BUILD_ROOT/%{_javadir}/%{name}.jar
+pushd $RPM_BUILD_ROOT/%{_javadir}
+# so developers can find this by the upstream name
+ln -s %{name}.jar %{artifactId}.jar
+popd
+
+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 README.md Changelog
+%{_mavendepmapfragdir}/%{name}
+%{_mavenpomdir}/JPP-%{name}.pom
+%{_javadir}/%{name}.jar
+%{_javadir}/%{artifactId}.jar
+
+
+%changelog
+* Mon Jun 11 2012 Michel Salim <salimma at fedoraproject.org> - 1.2.0-2
+- Adopt packaging scriptlet from upstream's Debian branch
+
+* Mon Jun 11 2012 Michel Salim <salimma at fedoraproject.org> - 1.2.0-1
+- Initial package
diff --git a/sources b/sources
index e69de29..20b42b8 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+cc6aa3b931423e066c97f375c68d202e  technomancy-robert-hooke-1.1.2-18-g30d2f8f.tar.gz


More information about the scm-commits mailing list