[hawtbuf] Initial import (#853050).

gil gil at fedoraproject.org
Wed Sep 5 15:32:49 UTC 2012


commit 7b780351d640027d5783266e8f18069675a2c6e0
Author: gil <puntogil at libero.it>
Date:   Wed Sep 5 17:32:36 2012 +0200

    Initial import (#853050).

 .gitignore   |    1 +
 hawtbuf.spec |  133 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources      |    1 +
 3 files changed, 135 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..60e8316 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/hawtbuf-1.9.tar.xz
diff --git a/hawtbuf.spec b/hawtbuf.spec
new file mode 100644
index 0000000..19a3cab
--- /dev/null
+++ b/hawtbuf.spec
@@ -0,0 +1,133 @@
+Name:          hawtbuf
+Version:       1.9
+Release:       2%{?dist}
+Summary:       A rich byte buffer library
+Group:         Development/Libraries
+License:       ASL 2.0
+URL:           https://github.com/fusesource/hawtbuf/
+# git clone git://github.com/fusesource/hawtbuf.git hawtbuf-1.9
+# cd hawtbuf-1.9/ && git archive --format=tar --prefix=hawtbuf-1.9/ hawtbuf-project-1.9 | xz > hawtbuf-1.9.tar.xz
+Source0:       hawtbuf-%{version}.tar.xz
+BuildRequires: fusesource-pom
+BuildRequires: java-devel
+BuildRequires: jpackage-utils
+
+BuildRequires: apache-commons-logging
+
+# test deps
+BuildRequires: junit
+BuildRequires: log4j
+
+BuildRequires: maven
+BuildRequires: javacc-maven-plugin
+BuildRequires: maven-compiler-plugin
+BuildRequires: maven-install-plugin
+BuildRequires: maven-invoker-plugin
+BuildRequires: maven-jar-plugin
+BuildRequires: maven-javadoc-plugin
+BuildRequires: maven-plugin-bundle
+BuildRequires: maven-plugin-plugin
+BuildRequires: maven-resources-plugin
+BuildRequires: maven-surefire-plugin
+BuildRequires: maven-surefire-provider-junit4
+
+Requires:      apache-commons-logging
+
+Requires:      java
+Requires:      jpackage-utils
+BuildArch:     noarch
+
+%description
+This library implements a simple interface with working with
+byte arrays. It is a shame that the Java SDK did not come with
+a built in class that was just simply a byte[], int offset,
+int length class which provided a rich interface similar to
+what the String class does for char arrays. This library
+fills in that void by providing a Buffer class which does provide
+that rich interface.
+
+%package proto
+Group:         Development/Libraries
+Summary:       A protobuf library
+Requires:      %{name} = %{version}-%{release}
+
+%description proto
+HawtBuf Proto: A protobuf library.
+
+%package protoc
+Group:         Development/Libraries
+Summary:       A protobuf compiler as a maven plugin
+Requires:      %{name}-proto = %{version}-%{release}
+Requires:      maven
+
+%description protoc
+HawtBuf Protoc: A protobuf compiler as a maven plugin.
+
+%package javadoc
+Group:         Documentation
+Summary:       Javadoc for %{name}
+Requires:      jpackage-utils
+
+%description javadoc
+This package contains javadoc for %{name}.
+
+%prep
+%setup -q
+%pom_remove_plugin org.apache.maven.plugins:maven-assembly-plugin
+
+%build
+
+mvn-rpmbuild -Prun-its install javadoc:aggregate
+
+%install
+
+mkdir -p %{buildroot}%{_mavenpomdir}
+install -pm 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP.%{name}-project.pom
+%add_maven_depmap JPP.%{name}-project.pom
+
+mkdir -p %{buildroot}%{_javadir}/%{name}
+install -m 644 %{name}/target/%{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}/%{name}.jar
+install -pm 644 %{name}/pom.xml %{buildroot}%{_mavenpomdir}/JPP.%{name}-%{name}.pom
+%add_maven_depmap JPP.%{name}-%{name}.pom %{name}/%{name}.jar
+
+for m in \
+  proto \
+  protoc;do
+    install -m 644 %{name}-${m}/target/%{name}-${m}-%{version}.jar %{buildroot}%{_javadir}/%{name}/%{name}-${m}.jar
+    install -pm 644 %{name}-${m}/pom.xml %{buildroot}%{_mavenpomdir}/JPP.%{name}-%{name}-${m}.pom
+    %add_maven_depmap -f ${m} JPP.%{name}-%{name}-${m}.pom %{name}/%{name}-${m}.jar
+done
+
+mkdir -p %{buildroot}%{_javadocdir}/%{name}
+cp -pr target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name}
+
+%files
+%{_javadir}/%{name}/%{name}.jar
+%{_mavenpomdir}/JPP.%{name}-project.pom
+%{_mavenpomdir}/JPP.%{name}-%{name}.pom
+%{_mavendepmapfragdir}/%{name}
+%doc license.txt notice.md readme.md
+
+%files proto
+%{_javadir}/%{name}/%{name}-proto.jar
+%{_mavenpomdir}/JPP.%{name}-%{name}-proto.pom
+%{_mavendepmapfragdir}/%{name}-proto
+%doc license.txt notice.md %{name}-proto/readme.md
+
+%files protoc
+%{_javadir}/%{name}/%{name}-protoc.jar
+%{_mavenpomdir}/JPP.%{name}-%{name}-protoc.pom
+%{_mavendepmapfragdir}/%{name}-protoc
+%doc license.txt notice.md %{name}-protoc/readme.md
+
+%files javadoc
+%{_javadocdir}/%{name}
+%doc license.txt notice.md
+
+%changelog
+* Wed Sep 05 2012 gil cattaneo <puntogil at libero.it> 1.9-2
+- removed hawtbuf-tests.jar
+- performed integration test
+
+* Tue May 22 2012 gil cattaneo <puntogil at libero.it> 1.9-1
+- initial rpm
\ No newline at end of file
diff --git a/sources b/sources
index e69de29..c52abe3 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+baf514c2e9c636c805b76408ec11b0fb  hawtbuf-1.9.tar.xz


More information about the scm-commits mailing list