[clucy] Initial import

Michel Alexandre Salim salimma at fedoraproject.org
Sun Jul 1 03:32:04 UTC 2012


commit c5724e5be2009efbc90542862a686531e20a46d4
Author: Michel Alexandre Salim <salimma at fedoraproject.org>
Date:   Sun Jul 1 10:31:51 2012 +0700

    Initial import

 .gitignore         |    1 +
 clucy-manifest.txt |    1 +
 clucy-pom.xml      |   65 +++++++++++++++++++++++++++++++++++++
 clucy.spec         |   91 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources            |    1 +
 5 files changed, 159 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..974c2b7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/weavejester-clucy-0.3.0-0-g103a939.tar.gz
diff --git a/clucy-manifest.txt b/clucy-manifest.txt
new file mode 100644
index 0000000..da53e16
--- /dev/null
+++ b/clucy-manifest.txt
@@ -0,0 +1 @@
+Class-Path: /usr/share/java/clojure-compat.jar /usr/share/java/lucene-core.jar /usr/share/java/lucene-contrib/lucene-memory.jar /usr/share/java/lucene-contrib/lucene-highlighter.jar
diff --git a/clucy-pom.xml b/clucy-pom.xml
new file mode 100644
index 0000000..0df3cca
--- /dev/null
+++ b/clucy-pom.xml
@@ -0,0 +1,65 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
+    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>clucy</groupId>
+  <artifactId>clucy</artifactId>
+  <version>0.3.0</version>
+  <name>clucy</name>
+  <description>A Clojure interface to the Lucene search engine</description>
+  <url>http://github/weavejester/clucy</url>
+  <build>
+    <sourceDirectory>src</sourceDirectory>
+    <testSourceDirectory>test</testSourceDirectory>
+    <resources>
+      <resource>
+        <directory>resources</directory>
+      </resource>
+    </resources>
+    <testResources>
+      <testResource>
+        <directory>test-resources</directory>
+      </testResource>
+    </testResources>
+  </build>
+  <repositories>
+    <repository>
+      <id>central</id>
+      <url>http://repo1.maven.org/maven2</url>
+    </repository>
+    <repository>
+      <id>clojars</id>
+      <url>http://clojars.org/repo/</url>
+    </repository>
+  </repositories>
+  <dependencies>
+    <!--
+    <dependency>
+      <groupId>lein-multi</groupId>
+      <artifactId>lein-multi</artifactId>
+      <version>1.1.0</version>
+      <scope>test</scope>
+    </dependency>
+    -->
+    <dependency>
+      <groupId>org.clojure</groupId>
+      <artifactId>clojure</artifactId>
+      <version>1.2.1</version>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.lucene</groupId>
+      <artifactId>lucene-core</artifactId>
+      <version>2.9.4</version>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.lucene</groupId>
+      <artifactId>lucene-highlighter</artifactId>
+      <version>2.9.4</version>
+    </dependency>
+  </dependencies>
+</project>
+
+<!-- This file was autogenerated by Leiningen.
+  Please do not edit it directly; instead edit project.clj and regenerate it.
+  It should not be considered canonical data. For more information see
+  https://github.com/technomancy/leiningen -->
diff --git a/clucy.spec b/clucy.spec
new file mode 100644
index 0000000..be1a3e2
--- /dev/null
+++ b/clucy.spec
@@ -0,0 +1,91 @@
+%global vendor      weavejester
+%global groupId     clucy
+%global artifactId  clucy
+%global commit_hash 103a939
+
+Name:           %{artifactId}
+Version:        0.3.0
+Release:        2%{?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
+# Manifest file for our JAR generation
+Source2:        %{name}-manifest.txt
+
+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-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
+cp -p %{SOURCE2} manifest.txt
+
+
+%build
+jar cmf manifest.txt %{name}.jar -C src .
+
+
+%install
+install -d -m 755 $RPM_BUILD_ROOT%{_javadir}
+install -pm 644 %{name}.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 at fedoraproject.org> - 0.3.0-2
+- Adopt packaging scriptlet from upstream's Debian branch
+
+* Mon Jun 11 2012 Michel Salim <salimma at fedoraproject.org> - 0.3.0-1
+- Initial package
diff --git a/sources b/sources
index e69de29..c9b71d6 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+4b7c91bdddc9e8afc83c514b50049521  weavejester-clucy-0.3.0-0-g103a939.tar.gz


More information about the scm-commits mailing list