[RPM (6.0)] [DIST generic] javolution-5.5.1-1.jpp6

Ralph Apel <[email protected]>
Newsgroups gmane.linux.jpackage.announce
Message-ID <[email protected]>
Name        : javolution                   Relocations: (not relocatable)
Version     : 5.5.1                             Vendor: JPackage Project
Release     : 1.jpp6                        Build Date: Sat 11 Aug 2012 01:49:50 PM CEST
Install Date: (not installed)               Build Host: linux.fritz.box
Group       : Development/Java              Source RPM: (none)
Size        : 485561                           License: BSD
Signature   : (none)
Packager    : Ralph Apel <[email protected]>
URL         : http://javolution.org/
Summary     : Java Real Time Library
Description :
Javolution real-time goals are simple: To make your
application faster and more time predictable!
That being accomplished through:
* High performance and time-deterministic (real-time) util
  / lang / text / io / xml base classes.
* Context programming in order to achieve true separation of
  concerns (logging, performance, etc).
* A testing framework addressing not only unit tests but also
  performance and regression tests as well.
* Straightforward and low-level parallel computing
  capabilities with ConcurrentContext.
* Struct and Union base classes for direct interfacing with
  native applications (e.g. C/C++).
* World's fastest and first hard real-time XML marshalling/
  unmarshalling facility.
* Simple yet flexible configuration management of your
  application.

---------------
Ralph Apel <r.apel at r-apel.de> - 0:5.5.1-1
- 5.5.1 for JPP-6
---------------
javolution.src: W: strange-permission javolution-settings.xml 0674
javolution.src: W: strange-permission javolution-jpp-depmap.xml 0674
javolution.src: W: source-or-patch-not-bzipped javolution-5.5.1.tgz
javolution.src: W: source-or-patch-not-bzipped javolution-pom.patch
javolution.src: W: non-standard-group Development/Java
javolution.src: W: no-signature
1 packages and 0 specfiles checked; 0 errors, 6 warnings.

---------------
Index: javolution.spec
===================================================================
RCS file: /home/projects/jpackage/cvs/rpms/free/javolution/javolution.spec,v
retrieving revision 1.1
diff -u -r1.1 javolution.spec
--- javolution.spec	11 Jul 2008 16:35:49 -0000	1.1
+++ javolution.spec	11 Aug 2012 18:23:08 -0000
@@ -1,4 +1,4 @@
-# Copyright (c) 2000-2008, JPackage Project
+# Copyright (c) 2000-2012, JPackage Project
 # All rights reserved.
 #
 # Redistribution and use in source and binary forms, with or without
@@ -29,23 +29,47 @@
 #
 
 %define section free
+%define _binary_payload w9.gzdio
+%define _source_payload w9.gzdio
+%define _binary_filedigest_algorithm 1
+%define _source_filedigest_algorithm 1
 
 Summary:        Java Real Time Library
 Name:           javolution
-Version:        5.2.6
-Release:        1%{dist}
+Version:        5.5.1
+Release:        1%{?dist}
 Epoch:          0
 License:        BSD
 URL:            http://javolution.org/
 Group:          Development/Java
-#Vendor: %{?_vendorinfo:%{_vendorinfo}}%{!?_vendorinfo:%{_vendor}}
-#Distribution: %{?_distribution:%{_distribution}}%{!?_distribution:%{_vendor}}
-Source0:        http://javolution.org/javolution-5.2.6-src.zip
-Source1:        http://repo1.maven.org/maven2/org/javolution/javolution/5.2.6/javolution-5.2.6.pom
+Source0:        javolution-5.5.1.tgz
+# svn export https://svn.kenai.com/svn/javolution~source-code-repository/Javolution/ javolution-5.5.1
+# tar czf javolution-5.5.1.tgz javolution-5.5.1/
+
+Source1:        javolution-settings.xml
+Source2:        javolution-jpp-depmap.xml
+Patch0:         javolution-pom.patch
 BuildRequires:  jpackage-utils >= 0:1.7.5
-BuildRequires:  java-devel = 0:1.5.0
-BuildRequires:  ant >= 0:1.6.5
-Requires:  java >= 0:1.5.0
+BuildRequires:  java-devel >= 0:1.6.0
+BuildRequires:  ant >= 0:1.7.1
+BuildRequires:  maven2 >= 0:2.0.8
+BuildRequires:  maven-antrun-plugin
+BuildRequires:  maven-compiler-plugin
+BuildRequires:  maven-install-plugin
+BuildRequires:  maven-javadoc-plugin
+BuildRequires:  maven-project-info-reports-plugin
+BuildRequires:  maven-resources-plugin
+BuildRequires:  maven-site-plugin
+BuildRequires:  maven-skins
+BuildRequires:  maven-source-plugin
+BuildRequires:  maven-surefire-plugin
+BuildRequires:  maven-surefire-provider-junit4
+BuildRequires:  maven-surefire-report-plugin
+BuildRequires:  mojo-maven2-plugin-emma
+BuildRequires:  apache-felix-maven-bundle-plugin
+BuildRequires:  colapi
+Requires:  java >= 0:1.6.0
+Requires:  colapi
 
 BuildArch:      noarch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-buildroot
@@ -89,16 +113,28 @@
 %{summary}.
 
 %prep
-%setup -q -n %{name}-5.2
-# remove all binary libs
-#for j in $(find . -name "*.jar"); do
-#    mv $j $j.no
-#done
+%setup -q 
+cp %{SOURCE1} settings.xml
+sed -i -e "s|<url>__JPP_URL_PLACEHOLDER__</url>|<url>file://`pwd`/m2_repo/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_repo/repository</url>|g" settings.xml
+%patch0 -b .sav0
 
 %build
-export JAVA_HOME=%{_jvmdir}/java-1.5.0
-#ant -Dbuild.sysclasspath=only 1.5
-ant 1.5
+export MAVEN_REPO_LOCAL=$(pwd)/m2_repo/repository
+mkdir external_repo
+ln -s %{_javadir} external_repo/JPP
+
+export M2_SETTINGS=$(pwd)/settings.xml
+
+mvn-jpp \
+        -e \
+        -s $M2_SETTINGS \
+        -Dmaven2.jpp.depmap.file=%{SOURCE2} \
+        -Dmaven.repo.local=$MAVEN_REPO_LOCAL \
+        install javadoc:javadoc site
+
+#       -Dmaven.test.failure.ignore=true \
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -107,35 +143,28 @@
 install -d -m 755 $RPM_BUILD_ROOT%{_javadir}
 install -d -m 0755 $RPM_BUILD_ROOT%{_datadir}/maven2/poms
 
-install -m 644 %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP-%{name}.pom
+install -m 644 pom.xml $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP-%{name}.pom
 %add_to_maven_depmap org.javolution javolution %{version} JPP %{name}
 
-install -m 644 javolution.jar \
+install -m 644 target/%{name}-%{version}.jar \
   $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar
+install -m 644 target/%{name}-%{version}-sources.jar \
+  $RPM_BUILD_ROOT%{_javadir}/%{name}-sources-%{version}.jar
 (cd $RPM_BUILD_ROOT%{_javadir} && for jar in *-%{version}.jar; do ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`; done)
 
 # javadoc
 install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
-cp -pr api/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
+cp -pr target/site/apidocs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
 ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name}
-
+rm -rf target/site/apidocs
 
 # docs
 install -d -m 755 $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
-cp -pr doc/* $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
+cp -pr target/site/* $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%post javadoc
-rm -f %{_javadocdir}/%{name}
-ln -s %{name}-%{version} %{_javadocdir}/%{name}
-
-%postun javadoc
-if [ "$1" = "0" ]; then
-  rm -f %{_javadocdir}/%{name}
-fi
-
 %post
 %update_maven_depmap
 
@@ -146,14 +175,17 @@
 %defattr(0644,root,root,0755)
 %{_docdir}/%{name}-%{version}
 %{_javadir}/*.jar
-%{_datadir}/maven2/poms
-%{_mavendepmapfragdir}
+%{_datadir}/maven2/poms/*
+%{_mavendepmapfragdir}/*
 
 %files javadoc
 %defattr(0644,root,root,0755)
-%{_javadocdir}/%{name}-%{version}
-%ghost %{_javadocdir}/%{name}
+%doc %{_javadocdir}/%{name}-%{version}
+%doc %{_javadocdir}/%{name}
 
 %changelog
+* Sat Aug 11 2012 Ralph Apel <r.apel at r-apel.de> - 0:5.5.1-1
+- 5.5.1 for JPP-6
+
 * Fri Jul 11 2008 Ralph Apel <r.apel at r-apel.de> - 0:5.2.6-1.jpp5
 - First JPP release
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.