[RPM (6.0)] hawtbuf-1.9-1.jpp6
Ralph Apel <[email protected]> Fri, 18 Jul 2014 10:47:46 +0200
| Newsgroups | gmane.linux.jpackage.announce |
|---|---|
| Message-ID | <[email protected]> |
Name : hawtbuf Relocations: (not relocatable) Version : 1.9 Vendor: JPackage Project Release : 1.jpp6 Build Date: Fri 18 Jul 2014 10:44:01 AM CEST Install Date: (not installed) Build Host: linux.fritz.box Group : Development/Libraries/Java Source RPM: (none) Size : 78228 License: Apache Software License 2.0 Signature : (none) Packager : Ralph Apel <[email protected]> URL : http://fusesource.com/forge/projects/hawtbuf Summary : Byte buffer utilities Description : A set of Java byte buffer related utility classes and tools, including a protobuf implementation. --------------- Ralph Apel <[email protected]> - 0:1.9-1 - 1.9 --------------- --------------- Index: hawtbuf.spec =================================================================== RCS file: /home/projects/jpackage/cvs/rpms/free/hawtbuf/hawtbuf.spec,v retrieving revision 1.1 diff -u -r1.1 hawtbuf.spec --- hawtbuf.spec 14 Jul 2014 18:28:20 -0000 1.1 +++ hawtbuf.spec 18 Jul 2014 08:47:43 -0000 @@ -1,4 +1,4 @@ -# Copyright (c) 2000-2012, JPackage Project +# Copyright (c) 2000-2014, JPackage Project # All rights reserved. # # Redistribution and use in source and binary forms, with or without @@ -28,46 +28,30 @@ # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # -%define with() %{expand:%%{?with_%{1}:1}%%{!?with_%{1}:0}} -%define without() %{expand:%%{?with_%{1}:0}%%{!?with_%{1}:1}} -%define bcond_with() %{expand:%%{?_with_%{1}:%%global with_%{1} 1}} -%define bcond_without() %{expand:%%{!?_without_%{1}:%%global with_%{1} 1}} - %define section free Name: hawtbuf -Version: 1.2 -Release: 2%{?dist} +Version: 1.9 +Release: 1%{?dist} Epoch: 0 Summary: Byte buffer utilities License: Apache Software License 2.0 Group: Development/Libraries/Java Url: http://fusesource.com/forge/projects/hawtbuf -Source0: hawtbuf-37ab7a7.tar.gz - -Source1: %{name}-settings.xml -Source2: %{name}-jpp-depmap.xml +Source0: hawtbuf-1.9.tar.bz2 +# git clone https://github.com/fusesource/hawtbuf.git +# git archive --prefix=hawtbuf-1.9/ --format=tar hawtbuf-project-1.9 | bzip2 > ../../SOURCES/hawtbuf-1.9.tar.bz2 -Patch0: hawtbuf-pom.patch +Source1: %{name}-jpp-depmap.xml BuildRequires: jpackage-utils >= 0:1.7.5 BuildRequires: java-devel >= 0:1.6.0 BuildRequires: ant >= 0:1.7 BuildRequires: apache-commons-parent >= 0:12 -BuildRequires: fusesource-pom -BuildRequires: maven2 >= 0:2.0.8 -BuildRequires: maven-antrun-plugin -BuildRequires: maven-assembly-plugin -BuildRequires: maven-compiler-plugin -BuildRequires: maven-eclipse-plugin -BuildRequires: maven-idea-plugin -BuildRequires: maven-install-plugin -BuildRequires: maven-jar-plugin -BuildRequires: maven-javadoc-plugin -BuildRequires: maven-resources-plugin -BuildRequires: maven-surefire-maven-plugin +BuildRequires: maven3 BuildRequires: maven-surefire-provider-junit4 BuildRequires: mojo-javacc-maven-plugin +BuildRequires: fusesource-pom Requires: java >= 0:1.6.0 BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) @@ -84,40 +68,16 @@ %{summary}. %prep -%setup -q -n hawtbuf-37ab7a7 - -%patch0 -b .sav0 - -cp -p %{SOURCE1} settings.xml -sed -i -e "s|<url>__JPP_URL_PLACEHOLDER__</url>|<url>file://`pwd`/.m2/repository</url>|g" settings.xml -sed -i -e "s|<url>__JAVADIR_PLACEHOLDER__</url>|<url>file://`pwd`/external_repo</url>|g" settings.xml -sed -i -e "s|<url>__MAVENREPO_DIR_PLACEHOLDER__</url>|<url>file://`pwd`/.m2/repository</url>|g" settings.xml -sed -i -e "s|<url>__MAVENDIR_PLUGIN_PLACEHOLDER__</url>|<url>file:///usr/share/maven2/plugins</url>|g" settings.xml -sed -i -e "s|<url>__ECLIPSEDIR_PLUGIN_PLACEHOLDER__</url>|<url>file:///usr/share/eclipse/plugins</url>|g" settings.xml - -mkdir external_repo -ln -s %{_javadir} external_repo/JPP +%setup -q %build export MAVEN_REPO_LOCAL=$(pwd)/.m2/repository -mkdir -p ${MAVEN_REPO_LOCAL} -export MAVEN_SETTINGS=$(pwd)/settings.xml - -%{_bindir}/mvn-jpp \ - -e \ - -s ${MAVEN_SETTINGS} \ - -Dmaven2.jpp.depmap.file=%{SOURCE2} \ - -Dmaven.repo.local=${MAVEN_REPO_LOCAL} \ - install - -%{_bindir}/mvn-jpp \ +%{_bindir}/mvn-rpmbuild \ -e \ - -s ${MAVEN_SETTINGS} \ - -Dmaven2.jpp.depmap.file=%{SOURCE2} \ + -Dmaven.local.depmap.file=%{SOURCE1} \ -Dmaven.repo.local=${MAVEN_REPO_LOCAL} \ - -Daggregate=true \ - javadoc:javadoc + install javadoc:aggregate %install rm -rf $RPM_BUILD_ROOT @@ -130,8 +90,10 @@ $RPM_BUILD_ROOT%{_javadir}/%{name}-tests-%{version}.jar install -m 644 hawtbuf-proto/target/%{name}-proto-%{version}.jar \ $RPM_BUILD_ROOT%{_javadir}/%{name}-proto-%{version}.jar - +install -m 644 hawtbuf-protoc/target/%{name}-protoc-%{version}.jar \ + $RPM_BUILD_ROOT%{_javadir}/%{name}-protoc-%{version}.jar (cd $RPM_BUILD_ROOT%{_javadir}/ && for jar in *-%{version}*; do ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`; done) + # Install pom files install -dm 755 $RPM_BUILD_ROOT%{_datadir}/maven2/poms install -m 644 pom.xml $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP-%{name}-project.pom @@ -140,6 +102,8 @@ %add_to_maven_depmap org.fusesource.hawtbuf hawtbuf %{version} JPP %{name} install -m 644 hawtbuf-proto/pom.xml $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP-%{name}-proto.pom %add_to_maven_depmap org.fusesource.hawtbuf hawtbuf-proto %{version} JPP %{name}-proto +install -m 644 hawtbuf-protoc/pom.xml $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP-%{name}-protoc.pom +%add_to_maven_depmap org.fusesource.hawtbuf hawtbuf-protoc %{version} JPP %{name}-protoc # javadoc install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version} @@ -166,6 +130,9 @@ %doc %{_javadocdir}/* %changelog +* Fri Jul 18 2014 Ralph Apel <[email protected]> - 0:1.9-1 +- 1.9 + * Mon Jul 14 2014 Ralph Apel <[email protected]> - 0:1.2-2 - move to JPP6