diff options
| author | Michel Alexandre Salim <salimma@fedoraproject.org> | 2012-06-11 16:27:09 +0700 |
|---|---|---|
| committer | Michel Alexandre Salim <salimma@fedoraproject.org> | 2012-06-11 16:27:09 +0700 |
| commit | 3b066ff9cab6a46f6fe394edc12b4869ca745937 (patch) | |
| tree | d49213673abaaebf97b8e0571afa44964f9e91e1 /clojure | |
| parent | fba695dd1ab81f4d854f0bd929574d905c0c8dfc (diff) | |
| download | specs-3b066ff9cab6a46f6fe394edc12b4869ca745937.tar.gz specs-3b066ff9cab6a46f6fe394edc12b4869ca745937.tar.xz specs-3b066ff9cab6a46f6fe394edc12b4869ca745937.zip | |
queue robert-hooke for review
Diffstat (limited to 'clojure')
| -rw-r--r-- | clojure/robert-hooke.spec | 111 |
1 files changed, 111 insertions, 0 deletions
diff --git a/clojure/robert-hooke.spec b/clojure/robert-hooke.spec new file mode 100644 index 0000000..7ee50d8 --- /dev/null +++ b/clojure/robert-hooke.spec @@ -0,0 +1,111 @@ +%global vendor technomancy +%global groupId robert +%global artifactId hooke +%global commit_hash 30d2f8f + +Name: %{groupId}-%{artifactId} +Version: 1.2.0 +Release: 1%{?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/%{vendor}/%{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: %{vendor}-%{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: clojure +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 + +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 %{vendor}-%{name}-%{commit_hash} +cp -p %{SOURCE1} pom.xml + + +%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/%{artifactId}-%{version}.jar \ + $RPM_BUILD_ROOT/%{_javadir}/%{artifactId}.jar + +install -d -m 755 $RPM_BUILD_ROOT%{_mavenpomdir} +install -pm 644 pom.xml \ + $RPM_BUILD_ROOT/%{_mavenpomdir}/JPP-%{artifactId}.pom + +%if 0%{?add_maven_depmap:1} +%add_maven_depmap JPP-%{artifactId}.pom %{artifactId}.jar +%else +%add_to_maven_depmap %{groupId} %{artifactId} %{version} JPP %{artifactId}.jar +%endif + + +%if 0%{?rhel} +%post +%update_maven_depmap + +%postun +%update_maven_depmap +%endif + + +%files +%doc README.md Changelog +%{_mavendepmapfragdir}/%{name} +%{_mavenpomdir}/JPP-%{artifactId}.pom +%{_javadir}/%{artifactId}.jar + + +%changelog +* Mon Jun 11 2012 Michel Salim <salimma@fedoraproject.org> - 1.2.0-1 +- Initial package |
