[snappy-java] Initial import (#800733).
Ricardo Arguello
ricardo at fedoraproject.org
Wed Mar 7 21:09:34 UTC 2012
commit 0586c3a53e2cb6ef6ef49d840e041b40c2f4b92b
Author: Ricardo Arguello <ricardo at fedoraproject.org>
Date: Wed Mar 7 16:09:05 2012 -0500
Initial import (#800733).
.gitignore | 1 +
snappy-java-1.0.4.1-pom.patch | 16 ++++++++
snappy-java.spec | 84 +++++++++++++++++++++++++++++++++++++++++
sources | 1 +
4 files changed, 102 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..79e94b1 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/snappy-java-1.0.4.1-CLEAN.tgz
diff --git a/snappy-java-1.0.4.1-pom.patch b/snappy-java-1.0.4.1-pom.patch
new file mode 100644
index 0000000..164d5fc
--- /dev/null
+++ b/snappy-java-1.0.4.1-pom.patch
@@ -0,0 +1,16 @@
+diff -Naur snappy-java-1.0.4.1/pom.xml snappy-java-1.0.4.1-work/pom.xml
+--- snappy-java-1.0.4.1/pom.xml 2011-10-05 03:29:42.000000000 +0200
++++ snappy-java-1.0.4.1-work/pom.xml 2012-02-21 12:39:37.468000002 +0100
+@@ -280,9 +280,9 @@
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+- <groupId>org.osgi</groupId>
+- <artifactId>core</artifactId>
+- <version>4.3.0</version>
++ <groupId>org.apache.felix</groupId>
++ <artifactId>org.osgi.core</artifactId>
++ <version>1.4.0</version>
+ <type>jar</type>
+ <scope>provided</scope>
+ </dependency>
diff --git a/snappy-java.spec b/snappy-java.spec
new file mode 100644
index 0000000..fca1836
--- /dev/null
+++ b/snappy-java.spec
@@ -0,0 +1,84 @@
+Name: snappy-java
+Version: 1.0.4.1
+Release: 2%{?dist}
+Summary: Fast compressor/decompresser
+Group: Development/Libraries
+License: ASL 2.0
+URL: http://code.google.com/p/snappy-java
+
+# hg clone --insecure -r snappy-java-1.0.4.1 https://code.google.com/p/snappy-java/
+# cd snappy-java && hg archive -p snappy-java-1.0.4.1/ -X 'lib/*.jar' -t tgz ../snappy-java-1.0.4.1-CLEAN.tgz
+Source0: snappy-java-%{version}-CLEAN.tgz
+
+Patch0: snappy-java-%{version}-pom.patch
+
+BuildArch: noarch
+
+BuildRequires: felix-osgi-core
+BuildRequires: java-devel
+BuildRequires: jboss-logging
+BuildRequires: jpackage-utils
+BuildRequires: maven
+BuildRequires: maven-compiler-plugin
+BuildRequires: maven-install-plugin
+BuildRequires: maven-jar-plugin
+BuildRequires: maven-javadoc-plugin
+
+Requires: felix-osgi-core
+Requires: java
+Requires: jboss-logging
+Requires: jpackage-utils
+
+%description
+A Java port of the snappy, a fast compresser/decompresser written in C++.
+
+%package javadoc
+Summary: Javadocs for %{name}
+Group: Documentation
+Requires: jpackage-utils
+
+%description javadoc
+This package contains the API documentation for %{name}.
+
+%prep
+%setup -q
+
+%patch0 -p1
+
+%build
+# no xerial package available
+mvn-rpmbuild -Dmaven.test.skip=true install javadoc:aggregate
+
+%install
+install -d -m 755 $RPM_BUILD_ROOT%{_javadir}
+install -d -m 755 $RPM_BUILD_ROOT%{_mavenpomdir}
+install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}
+
+# JAR
+install -pm 644 target/snappy-java-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar
+
+# POM
+install -pm 644 pom.xml $RPM_BUILD_ROOT%{_mavenpomdir}/JPP-%{name}.pom
+
+# DEPMAP
+%add_maven_depmap JPP-%{name}.pom %{name}.jar
+
+# APIDOCS
+cp -rp target/site/apidocs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}
+
+%files
+%{_mavenpomdir}/*
+%{_mavendepmapfragdir}/*
+%{_javadir}/*
+%doc LICENSE README NOTICE
+
+%files javadoc
+%{_javadocdir}/%{name}
+%doc LICENSE
+
+%changelog
+* Sun Mar 4 2012 Ricardo Arguello <ricardo at fedoraproject.org> 1.0.4.1-2
+- Cleanup of the spec file
+
+* Tue Feb 21 2012 Marek Goldmann <mgoldman at redhat.com> 1.0.4.1-1
+- Initial packaging
diff --git a/sources b/sources
index e69de29..5f97234 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+53d74de12e54772299b03db495c21004 snappy-java-1.0.4.1-CLEAN.tgz
More information about the scm-commits
mailing list