From dde967c1a0c0b4792fcfd29ea4ae3bba21b4f0b5 Mon Sep 17 00:00:00 2001 From: Kushal Das Date: Jul 07 2012 15:26:09 +0000 Subject: Initial import --- 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 @@ + + + 4.0.0 + lancet + lancet + 1.0.1 + lancet + Dependency-based builds, Clojure Style, with optional Ant underneath. + + + MIT X11 License + + + + src + test + + + resources + + + + + test-resources + + + + + + central + http://repo1.maven.org/maven2 + + + clojars + http://clojars.org/repo/ + + + + + org.apache.ant + ant + 1.7.1 + + + org.apache.ant + ant-nodeps + 1.7.1 + + + + + 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 - 1.0.1-4 +- Updated URL and tag information + +* Tue Jun 12 2012 Michel Salim - 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 - 1.0.1-2 +- Fixes after review + +* Fri Jun 07 2012 Kushal Das - 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