From 5599b369a37b89ad2ac15b8f4a778ad9a255a5eb Mon Sep 17 00:00:00 2001 From: Michel Alexandre Salim Date: Mon, 11 Jun 2012 18:51:25 +0700 Subject: add clucy --- clojure/clucy.spec | 106 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 106 insertions(+) create mode 100644 clojure/clucy.spec (limited to 'clojure') diff --git a/clojure/clucy.spec b/clojure/clucy.spec new file mode 100644 index 0000000..530eee3 --- /dev/null +++ b/clojure/clucy.spec @@ -0,0 +1,106 @@ +%global vendor weavejester +%global groupId clucy +%global artifactId clucy +%global commit_hash 103a939 + +Name: %{artifactId} +Version: 0.3.0 +Release: 1%{?dist} +Summary: Clojure interface to Lucene + +License: EPL +URL: https://github.com/%{vendor}/%{name}/ +# wget --content-disposition %%{url}/tarball/%%{version} +Source0: %{vendor}-%{name}-%{version}-0-g%{commit_hash}.tar.gz +# generated using 'lein multi pom --with 1.2-lucene2' using Leiningen 1.7.1 +# as we don't have leiningen 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-compat +BuildRequires: lucene-contrib +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-compat +Requires: java +Requires: lucene-contrib + + +%description +Clucy is a Clojure interface to Lucene. + + +%prep +%setup -q -n %{vendor}-%{name}-ea39643 +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}/%{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 LICENSE.html README.md ChangeLog +%{_mavendepmapfragdir}/%{name} +%{_mavenpomdir}/JPP-%{name}.pom +%{_javadir}/%{name}.jar + + +%changelog +* Mon Jun 11 2012 Michel Salim - 0.3.0-1 +- Initial package -- cgit