[lancet] Initial import

Kushal Das kushal at fedoraproject.org
Sat Jul 7 15:26:27 UTC 2012


commit dde967c1a0c0b4792fcfd29ea4ae3bba21b4f0b5
Author: Kushal Das <kushal at fedoraproject.org>
Date:   Sat Jul 7 20:56:09 2012 +0530

    Initial import

 .gitignore     |    1 +
 lancet-pom.xml |   56 ++++++++++++++++++++++++++++++
 lancet.spec    |  102 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources        |    1 +
 4 files changed, 160 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..ad97466 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/technomancy-lancet-1.0.1-0-g773e48f.tar.gz
diff --git a/lancet-pom.xml b/lancet-pom.xml
new file mode 100644
index 0000000..7ab039b
--- /dev/null
+++ b/lancet-pom.xml
@@ -0,0 +1,56 @@
+<?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>lancet</groupId>
+  <artifactId>lancet</artifactId>
+  <version>1.0.1</version>
+  <name>lancet</name>
+  <description>Dependency-based builds, Clojure Style, with optional Ant underneath.</description>
+  <licenses>
+    <license>
+      <name>MIT X11 License</name>
+    </license>
+  </licenses>
+  <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>org.apache.ant</groupId>
+      <artifactId>ant</artifactId>
+      <version>1.7.1</version>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.ant</groupId>
+      <artifactId>ant-nodeps</artifactId>
+      <version>1.7.1</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/lancet.spec b/lancet.spec
new file mode 100644
index 0000000..ae20fe6
--- /dev/null
+++ b/lancet.spec
@@ -0,0 +1,102 @@
+%global author      technomancy
+%global groupId     lancet
+%global artifactId  lancet
+%global archivename %{author}-%{artifactId}
+%global commit_hash 773e48f
+
+Name:           %{artifactId}
+Version:        1.0.1
+Release:        4%{?dist}
+Summary:        A build tool like Ant or Rake
+
+Group:          Development/Languages
+License:        EPL
+URL:            https://github.com/%{vendor}/%{name}
+# This is actually lancet 1.0.1; upstream mistagged it
+# No public issue tracker; authors notified in private communication
+# wget --content-disposition %%{url}/tarball/%%{version}
+Source0:        %{archivename}-%{version}-0-g%{commit_hash}.tar.gz
+# Generated using Leiningen 1.7.1
+Source1:        lancet-pom.xml
+
+BuildArch:      noarch
+
+BuildRequires:  jpackage-utils >= 1.5
+
+BuildRequires:  java-devel >= 1:1.6.0
+
+Requires:       jpackage-utils
+%if 0%{?rhel}
+Requires(post):   jpackage-utils
+Requires(postun): jpackage-utils
+%endif
+
+Requires:       java-devel >= 1:1.6.0
+Requires:       ant >= 1.7.1
+Requires:       ant-nodeps >= 1.7.1
+
+%description
+Lancet is a build tool like Ant or Rake. Lancet makes it
+easy to create build targets: any Clojure function can be
+a build target. Lancet can call Ant tasks, or shell out
+and call other processes.
+
+
+%prep
+%setup -q -n %{archivename}-%{commit_hash}
+cp -p %{SOURCE1} pom.xml
+
+
+%build
+jar cf %{name}.jar -C src .
+
+
+%install
+install -d -m 755 %{buildroot}%{_javadir}
+install -d -m 755 %{buildroot}%{_mavenpomdir}
+install -pm 644 %{name}.jar %{buildroot}%{_javadir}/%{name}.jar
+install -pm 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
+
+
+%if 0%{?add_maven_depmap:1}
+%add_maven_depmap JPP-%{name}.pom %{name}.jar
+%else
+# some systems like RHEL do not have add_maven_depmap defined
+# - probably don't need JPP/%%{name} -- do we?
+%add_to_maven_depmap %{groupId} %{artifactId} %{version} JPP %{name}
+%endif
+
+%clean
+rm -rf %{buildroot}
+
+%if 0%{?rhel}
+%post
+%update_maven_depmap
+
+%postun
+%update_maven_depmap
+%endif
+
+%files
+%doc README LICENSE
+%{_mavenpomdir}/*
+%{_mavendepmapfragdir}/*
+%{_javadir}/%{name}.jar
+
+%changelog
+* Tue Jun 12 2012 Kushal Das <kushal at fedoraproject.org> - 1.0.1-4
+- Updated URL and tag information
+
+* Tue Jun 12 2012 Michel Salim <salimma at fedoraproject.org> - 1.0.1-3
+- Adopt packaging scriptlet from upstream's Debian branch
+- R: java-devel, not java - this is a build tool
+- R: jpackage-utils at runtime
+- Reorganize deps to match layout of Packaging:Java for easy comparison
+- Switch from zip to tarball for smaller file size
+
+* Mon Jun 11 2012 Kushal Das <kushal at fedoraproject.org> - 1.0.1-2
+- Fixes after review
+
+* Fri Jun 07 2012 Kushal Das <kushal at fedoraproject.org> - 1.0.1-1
+- initial version
+
diff --git a/sources b/sources
index e69de29..4899c4c 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+e751cef98c693647b3da3dea18e9b94c  technomancy-lancet-1.0.1-0-g773e48f.tar.gz


More information about the scm-commits mailing list