%define distver 1.7.5 %define gcj_support 1 Name: jpackage-utils Version: 1.7.5 Release: 6mamba2 Summary: JPackage utilities Group: Development/Tools Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: http://www.jpackage.org # Taken from: # http://mirrors.dotsrc.org/jpackage/5.0/generic/free/SRPMS/jpackage-utils-5.0.0-2.jpp5.src.rpm # http://mirrors.dotsrc.org/jpackage/1.7/generic/free/SRPMS/jpackage-utils-1.7.5-1jpp.src.rpm Source0: %{name}-%{version}.tar.bz2 Source1: jpackage-utils-README Source2: jpackage-utils-abs2rel.sh Source3: jpackage-utils-abs2rel.lua Patch0: jpackage-utils-1.7.5-enable-gcj-support.patch Patch1: jpackage-utils-1.7.5-own-mavendirs.patch Patch2: jpackage-utils-1.7.5-prefer-jre.patch License: BSD, JPackage BuildRoot: %{_tmppath}/%{name}-%{version}-root %description Utilities for the JPackage Project : * %{_bindir}/build-classpath build the Java classpath in a portable manner * %{_bindir}/build-jar-repository build a jar repository in a portable manner * %{_bindir}/rebuild-jar-repository rebuild a jar repository in a portable manner (after a jvm change...) * %{_bindir}/build-classpath-directory build the Java classpath from a directory * %{_bindir}/diff-jars show jar content differences * %{_bindir}/jvmjar install jvm extensions * %{_bindir}/create-jar-links create custom jar links * %{_bindir}/clean-binary-files remove binary files from sources * %{_bindir}/check-binary-files check for presence of unexpected binary files * %{_datadir}/java-utils/java-functions shell script functions library for Java applications * %{_sysconfdir}/java/jpackage-release string identifying the currently installed JPackage release * %{_sysconfdir}/java/java.conf system-wide Java configuration file * %{_sysconfdir}/rpm/macros.jpackage RPM macros for Java packagers and developers * %{_docdir}/%{name}-%{version}/jpackage-policy Java packaging policy for packagers and developers It contains also the License, man pages, documentation, XSL files of general use with maven2, a header file for spec files etc. %prep %setup -q %patch0 -p1 %patch1 -p1 %patch2 -p1 cp -p %{SOURCE1} . cp -p %{SOURCE2} abs2rel.sh cp -p %{SOURCE3} abs2rel.lua %build echo "JPackage release %{distver} (%{distribution}) for %{_build_arch}" > etc/jpackage-release %install [ "%{buildroot}" != / ] && rm -rf %{buildroot} for dir in jvmdir jvmjardir jvmprivdir \ jvmlibdir jvmdatadir jvmsysconfdir \ jvmcommonlibdir jvmcommondatadir jvmcommonsysconfdir \ javadir jnidir javadocdir mavenpomdir \ mavendepmapdir mavendepmapfragdir ; do export _${dir}=$(rpm --eval $(%{__grep} -E "^%_${dir}\b" misc/macros.jpackage | %{__awk} '{ print $2 }')) done install -dm 755 %{buildroot}%{_bindir} install -dm 755 %{buildroot}%{_sysconfdir}/{java,rpm} %if %{gcj_support} install -dm 755 %{buildroot}%{_sysconfdir}/java/security install -dm 755 %{buildroot}%{_sysconfdir}/java/security/security.d %endif install -dm 755 %{buildroot}${_jvmprivdir} install -dm 755 %{buildroot}${_jvmlibdir} install -dm 755 %{buildroot}${_jvmdatadir} install -dm 755 %{buildroot}${_jvmsysconfdir} install -dm 755 %{buildroot}${_jvmcommonlibdir} install -dm 755 %{buildroot}${_jvmcommondatadir} install -dm 755 %{buildroot}${_jvmcommonsysconfdir} install -dm 755 %{buildroot}${_jvmdir} install -dm 755 %{buildroot}${_jvmjardir} install -dm 755 %{buildroot}${_jvmprivdir} install -dm 755 %{buildroot}${_javadir} install -dm 755 %{buildroot}${_jnidir} install -dm 755 %{buildroot}${_javadir}-{utils,ext,1.4.0,1.4.1,1.4.2,1.5.0,1.6.0,1.7.0} install -dm 755 %{buildroot}${_jnidir}-{ext,1.4.0,1.4.1,1.4.2,1.5.0,1.6.0,1.7.0} install -dm 755 %{buildroot}${_javadocdir} install -dm 755 %{buildroot}${_mavenpomdir} install -dm 755 %{buildroot}${_mavendepmapfragdir} install -pm 755 bin/* %{buildroot}%{_bindir} install -pm 644 etc/font.properties %{buildroot}%{_sysconfdir}/java # Create an initial (empty) depmap echo -e "\\n" \ > %{buildroot}${_mavendepmapdir}/maven2-depmap.xml echo -e "\\n" \ >> %{buildroot}${_mavendepmapdir}/maven2-depmap.xml install -pm 755 abs2rel.sh %{buildroot}%{_javadir}-utils install -pm 644 abs2rel.lua %{buildroot}%{_javadir}-utils cat > etc/java.conf << EOF # System-wide Java configuration file -*- sh -*- # # JPackage Project # Location of jar files on the system JAVA_LIBDIR=${_javadir} # Location of arch-specific jar files on the system JNI_LIBDIR=${_jnidir} # Root of all JVM installations JVM_ROOT=${_jvmdir} # You can define a system-wide JVM root here if you're not using the # default one. # # If you have the a base JRE package installed #JAVA_HOME=\$JVM_ROOT/jre # If you have the a devel JDK package installed #JAVA_HOME=\$JVM_ROOT/java #JAVA_HOME=\$JVM_ROOT/java-bea # Options to pass to the java interpreter JAVACMD_OPTS= EOF install -pm 644 etc/java.conf %{buildroot}%{_sysconfdir}/java install -pm 644 etc/jpackage-release %{buildroot}%{_sysconfdir}/java install -pm 644 java-utils/* %{buildroot}${_javadir}-utils install -pm 644 misc/macros.jpackage %{buildroot}%{_sysconfdir}/rpm mkdir -p %{buildroot}%{_mandir}/man1 install -pm 644 man/* %{buildroot}%{_mandir}/man1 mkdir -p %{buildroot}${_javadir}-utils/xml install -pm 644 xml/* %{buildroot}${_javadir}-utils/xml cat > jpackage-utils-%{version}.files << __GIL %dir ${_jvmdir} %dir ${_jvmjardir} %dir ${_jvmprivdir} #%dir ${_jvmlibdir} %dir ${_jvmdatadir} %dir ${_jvmsysconfdir} %dir ${_jvmcommonlibdir} %dir ${_jvmcommondatadir} %dir ${_jvmcommonsysconfdir} %dir ${_javadir} %dir ${_javadir}-* %dir ${_jnidir} %dir ${_jnidir}-* %dir ${_javadocdir} %dir %{_datadir}/maven2 %dir ${_mavenpomdir} %dir ${_mavendepmapdir} %dir ${_mavendepmapfragdir} ${_javadir}-utils/* __GIL %clean [ "%{buildroot}" != / ] && rm -rf %{buildroot} %files -f jpackage-utils-%{version}.files %defattr(-,root,root) %{_bindir}/build-classpath %{_bindir}/build-classpath-directory %{_bindir}/build-jar-repository %{_bindir}/check-binary-files %{_bindir}/clean-binary-files %{_bindir}/create-jar-links %{_bindir}/diff-jars %{_bindir}/find-jar %{_bindir}/jvmjar %{_bindir}/rebuild-jar-repository %dir %{_sysconfdir}/java %if %{gcj_support} %{_sysconfdir}/java/security %endif %config %{_sysconfdir}/java/jpackage-release %config(noreplace) %{_sysconfdir}/java/java.conf %config(noreplace) %{_sysconfdir}/java/font.properties %config(noreplace) %{_sysconfdir}/rpm/macros.jpackage %config(noreplace) %{_sysconfdir}/maven/maven2-depmap.xml %{_datadir}/java-utils/xml/maven2jpp-mapdeps.xsl %{_datadir}/java-utils/java-functions %{_mandir}/man1/build-classpath.1.gz %{_mandir}/man1/build-jar-repository.1.gz %{_mandir}/man1/diff-jars.1.gz %{_mandir}/man1/rebuild-jar-repository.1.gz %doc LICENSE.txt HEADER.JPP doc/* %doc etc/httpd-javadoc.conf jpackage-utils-README %changelog * Thu Aug 23 2012 Silvan Calarco 1.7.5-6mamba2 - mamba2 milestone rebuild * Sat Mar 13 2010 gil 1.7.5-6mamba - edit spec file - edit etc/java.conf - added (from fedora) abs2rel.* scripts * Fri Jun 05 2009 Silvan Calarco 1.7.5-5mamba - rebuilt in devel * Wed Feb 25 2009 gil 1.7.5-4mamba - fixed some errors * Wed Feb 25 2009 gil 1.7.5-3mamba - added macro for maven and gcj support - added manual and documentation * Sat Jun 21 2008 Tiziana Ferro 1.7.5-2mamba - update to 1.7.5 * Thu Aug 11 2005 Silvan Calarco 1.6.3-1qilnx - package created by autospec