Search
j0ke.net Open Build Service
>
Projects
>
Java
>
jpackage-utils
> Changes
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 4
[-]
[+]
Changed
jpackage-utils.spec
@@ -1,252 +1,598 @@ +# Copyright (c) 2000-2008, JPackage Project +# All rights reserved. # -# spec file for package jpackage-utils (Version 1.7.0) +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions +# are met: # -# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany. -# This file and all modifications and additions to the pristine -# package are under the same license as the package itself. +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the +# distribution. +# 3. Neither the name of the JPackage Project nor the names of its +# contributors may be used to endorse or promote products derived +# from this software without specific prior written permission. # -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # -# usedforbuild aaa_base acl attr audit-libs autoconf automake bash binutils bzip2 coreutils cpio cpp cpp42 cracklib cvs desktop-translations diffutils file filesystem fillup findutils gawk gcc gcc42 gdbm gettext gettext-devel glibc glibc-devel glibc-locale grep groff gzip info insserv less libacl libattr libbz2-1 libbz2-devel libdb-4_5 libgcc42 libgomp42 libltdl-3 libmudflap42 libreadline5 libstdc++42 libtool libuuid1 libvolume_id libxcrypt libzio linux-kernel-headers m4 make man mktemp ncurses net-tools netcfg pam pam-modules patch perl perl-base permissions popt rpm sed sysvinit tar texinfo timezone update-desktop-files util-linux zlib - -Name: jpackage-utils -BuildRequires: update-desktop-files %define distver 1.7 %define section free -%define runtimescript java.binfmt_misc -Version: 1.7.0 -Release: 77.2 -Summary: JPackage Utilities -License: GPL v2 or later -Url: http://www.jpackage.org/ + +Name: jpackage-utils +Version: 1.7.5 +Release: 1jpp +Epoch: 0 +Summary: JPackage utilities +License: JPackage License +URL: http://www.jpackage.org/ Source0: %{name}-%{version}.tar.bz2 -Source1: README.SUSE -Source2: jarwrapper -Source3: javaclassname -Source4: javawrapper -Source5: java.png -Source6: %{runtimescript} -Source7: javawswrapper -Patch0: %{name}-%{version}-macros.patch -Group: Development/Languages/Java -BuildRoot: %{_tmppath}/%{name}-%{version}-build +Group: Utilities +Vendor: %{?_vendorinfo:%{_vendorinfo}}%{!?_vendorinfo:%{_vendor}} +Distribution: %{?_distribution:%{_distribution}}%{!?_distribution:%{_vendor}} +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot + +BuildArch: noarch AutoReqProv: no -Requires: /bin/egrep, /bin/sed, /usr/bin/perl +%if %defined suse_version +BuildRequires: awk +BuildRequires: grep +%else +BuildRequires: %{__awk} +BuildRequires: %{__grep} +%endif +Requires: /bin/egrep +Requires: /bin/sed +Requires: /usr/bin/perl %description -Utilities for the JPackage project <http://www.jpackage.org/>. +Utilities for the JPackage Project <http://www.jpackage.org/>: + +* %{_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. -%debug_package %prep %setup -q -%patch0 -p1 -cp %{SOURCE1} doc + %build echo "JPackage release %{distver} (%{distribution}) for %{buildarch}" \ > etc/jpackage-release + %install rm -rf $RPM_BUILD_ROOT + # Pull macros out of macros.jpackage and emulate them during install for # smooth bootstrapping experience. for dir in \ - jvmdatadir jvmsysconfdir \ + jvmdir jvmjardir jvmprivdir \ + jvmlibdir jvmdatadir jvmsysconfdir \ jvmcommonlibdir jvmcommondatadir jvmcommonsysconfdir \ - ; do - export _${dir}=$(rpm --eval $(%{__grep} -E "^%_${dir}\b" /usr/lib/rpm/macros | %{__awk} '{ print $2 }')) + javadir jnidir javadocdir mavendepmapdir; do + export _${dir}=$(rpm --eval $(%{__grep} -E "^%_${dir}\b" misc/macros.jpackage | %{__awk} '{ print $2 }')) done + install -dm 755 ${RPM_BUILD_ROOT}%{_bindir} -install -dm 755 ${RPM_BUILD_ROOT}%{_sysconfdir}/{java,rpm,init.d} -install -dm 755 ${RPM_BUILD_ROOT}%{_jvmdir} -install -dm 755 ${RPM_BUILD_ROOT}%{_jvmjardir} -install -dm 755 ${RPM_BUILD_ROOT}%{_jvmprivdir} -#install -dm 755 ${RPM_BUILD_ROOT}%{_jvmlibdir} +install -dm 755 ${RPM_BUILD_ROOT}%{_sysconfdir}/{java,rpm} +install -dm 755 ${RPM_BUILD_ROOT}${_jvmdir} +install -dm 755 ${RPM_BUILD_ROOT}${_jvmjardir} +install -dm 755 ${RPM_BUILD_ROOT}${_jvmprivdir} +install -dm 755 ${RPM_BUILD_ROOT}${_jvmlibdir} install -dm 755 ${RPM_BUILD_ROOT}${_jvmdatadir} install -dm 755 ${RPM_BUILD_ROOT}${_jvmsysconfdir} install -dm 755 ${RPM_BUILD_ROOT}${_jvmcommonlibdir} install -dm 755 ${RPM_BUILD_ROOT}${_jvmcommondatadir} install -dm 755 ${RPM_BUILD_ROOT}${_jvmcommonsysconfdir} -install -dm 755 ${RPM_BUILD_ROOT}%{_javadir} -install -dm 755 ${RPM_BUILD_ROOT}%{_jnidir} -install -dm 755 ${RPM_BUILD_ROOT}%{_javadir}-{utils,ext,1.4.0,1.4.1,1.4.2,1.5.0,1.6.0} -install -dm 755 ${RPM_BUILD_ROOT}%{_jnidir}-{ext,1.4.0,1.4.1,1.4.2,1.5.0,1.6.0} -install -dm 755 ${RPM_BUILD_ROOT}%{_javadocdir} -install -dm 755 ${RPM_BUILD_ROOT}%{_sbindir} +install -dm 755 ${RPM_BUILD_ROOT}${_javadir} +install -dm 755 ${RPM_BUILD_ROOT}${_jnidir} +install -dm 755 ${RPM_BUILD_ROOT}${_javadir}-{utils,ext,1.4.0,1.4.1,1.4.2,1.5.0,1.6.0} +install -dm 755 ${RPM_BUILD_ROOT}${_jnidir}-{ext,1.4.0,1.4.1,1.4.2,1.5.0,1.6.0} +install -dm 755 ${RPM_BUILD_ROOT}${_javadocdir} +install -dm 755 ${RPM_BUILD_ROOT}${_mavendepmapdir} + install -pm 755 bin/* ${RPM_BUILD_ROOT}%{_bindir} install -pm 644 etc/font.properties ${RPM_BUILD_ROOT}%{_sysconfdir}/java + +# Create an initial (empty) depmap +echo -e "<dependencies>\\n" > ${RPM_BUILD_ROOT}${_mavendepmapdir}/maven2-depmap.xml +echo -e "</dependencies>\\n" >> ${RPM_BUILD_ROOT}${_mavendepmapdir}/maven2-depmap.xml + cat > etc/java.conf << EOF # System-wide Java configuration file -*- sh -*- # # JPackage Project <http://www.jpackage.org/> + # Location of jar files on the system -JAVA_LIBDIR=%{_javadir} +JAVA_LIBDIR=${_javadir} +