summaryrefslogtreecommitdiffstats
path: root/clojure
diff options
context:
space:
mode:
authorMichel Alexandre Salim <salimma@fedoraproject.org>2012-06-11 18:51:25 +0700
committerMichel Alexandre Salim <salimma@fedoraproject.org>2012-06-11 18:51:25 +0700
commit5599b369a37b89ad2ac15b8f4a778ad9a255a5eb (patch)
treec770673aa4722d51080d87161cd8bb3b083b1f80 /clojure
parentc34a5851a434bca8ec052027de6b8f27b3740d14 (diff)
downloadspecs-5599b369a37b89ad2ac15b8f4a778ad9a255a5eb.tar.gz
specs-5599b369a37b89ad2ac15b8f4a778ad9a255a5eb.tar.xz
specs-5599b369a37b89ad2ac15b8f4a778ad9a255a5eb.zip
add clucy
Diffstat (limited to 'clojure')
-rw-r--r--clojure/clucy.spec106
1 files changed, 106 insertions, 0 deletions
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 <salimma@fedoraproject.org> - 0.3.0-1
+- Initial package