Changes of Revision 4
[-] | Changed | jpackage-utils.spec |
x 1
2 +# Copyright (c) 2000-2008, JPackage Project 3 +# All rights reserved. 4 # 5 -# spec file for package jpackage-utils (Version 1.7.0) 6 +# Redistribution and use in source and binary forms, with or without 7 +# modification, are permitted provided that the following conditions 8 +# are met: 9 # 10 -# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany. 11 -# This file and all modifications and additions to the pristine 12 -# package are under the same license as the package itself. 13 +# 1. Redistributions of source code must retain the above copyright 14 +# notice, this list of conditions and the following disclaimer. 15 +# 2. Redistributions in binary form must reproduce the above copyright 16 +# notice, this list of conditions and the following disclaimer in the 17 +# documentation and/or other materials provided with the 18 +# distribution. 19 +# 3. Neither the name of the JPackage Project nor the names of its 20 +# contributors may be used to endorse or promote products derived 21 +# from this software without specific prior written permission. 22 # 23 -# Please submit bugfixes or comments via http://bugs.opensuse.org/ 24 +# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 25 +# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 26 +# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 27 +# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 28 +# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 29 +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 30 +# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 31 +# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 32 +# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 33 +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 34 +# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 35 # 36 37 -# 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 38 - 39 -Name: jpackage-utils 40 -BuildRequires: update-desktop-files 41 %define distver 1.7 42 %define section free 43 -%define runtimescript java.binfmt_misc 44 -Version: 1.7.0 45 -Release: 77.2 46 -Summary: JPackage Utilities 47 -License: GPL v2 or later 48 -Url: http://www.jpackage.org/ 49 + 50 +Name: jpackage-utils 51 +Version: 1.7.5 52 +Release: 1jpp 53 +Epoch: 0 54 +Summary: JPackage utilities 55 +License: JPackage License 56 +URL: http://www.jpackage.org/ 57 Source0: %{name}-%{version}.tar.bz2 58 -Source1: README.SUSE 59 -Source2: jarwrapper 60 -Source3: javaclassname 61 -Source4: javawrapper 62 -Source5: java.png 63 -Source6: %{runtimescript} 64 -Source7: javawswrapper 65 -Patch0: %{name}-%{version}-macros.patch 66 -Group: Development/Languages/Java 67 -BuildRoot: %{_tmppath}/%{name}-%{version}-build 68 +Group: Utilities 69 +Vendor: %{?_vendorinfo:%{_vendorinfo}}%{!?_vendorinfo:%{_vendor}} 70 +Distribution: %{?_distribution:%{_distribution}}%{!?_distribution:%{_vendor}} 71 +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot 72 + 73 +BuildArch: noarch 74 AutoReqProv: no 75 -Requires: /bin/egrep, /bin/sed, /usr/bin/perl 76 +%if %defined suse_version 77 +BuildRequires: awk 78 +BuildRequires: grep 79 +%else 80 +BuildRequires: %{__awk} 81 +BuildRequires: %{__grep} 82 +%endif 83 +Requires: /bin/egrep 84 +Requires: /bin/sed 85 +Requires: /usr/bin/perl 86 87 %description 88 -Utilities for the JPackage project <http://www.jpackage.org/>. 89 +Utilities for the JPackage Project <http://www.jpackage.org/>: 90 + 91 +* %{_bindir}/build-classpath 92 + build the Java classpath in a portable manner 93 +* %{_bindir}/build-jar-repository 94 + build a jar repository in a portable manner 95 +* %{_bindir}/rebuild-jar-repository 96 + rebuild a jar repository in a portable manner 97 + (after a jvm change...) 98 +* %{_bindir}/build-classpath-directory 99 + build the Java classpath from a directory 100 +* %{_bindir}/diff-jars 101 + show jar content differences 102 +* %{_bindir}/jvmjar 103 + install jvm extensions 104 +* %{_bindir}/create-jar-links 105 + create custom jar links 106 +* %{_bindir}/clean-binary-files 107 + remove binary files from sources 108 +* %{_bindir}/check-binary-files 109 + check for presence of unexpected binary files 110 +* %{_datadir}/java-utils/java-functions 111 + shell script functions library for Java 112 + applications 113 +* %{_sysconfdir}/java/jpackage-release 114 + string identifying the currently installed 115 + JPackage release 116 +* %{_sysconfdir}/java/java.conf 117 + system-wide Java configuration file 118 +* %{_sysconfdir}/rpm/macros.jpackage 119 + RPM macros for Java packagers and developers 120 +* %{_docdir}/%{name}-%{version}/jpackage-policy 121 + Java packaging policy for packagers and 122 + developers 123 124 +It contains also the License, man pages, documentation, XSL files of general 125 +use with maven2, a header file for spec files etc. 126 127 128 -%debug_package 129 %prep 130 %setup -q 131 -%patch0 -p1 132 -cp %{SOURCE1} doc 133 + 134 135 %build 136 echo "JPackage release %{distver} (%{distribution}) for %{buildarch}" \ 137 > etc/jpackage-release 138 139 + 140 %install 141 rm -rf $RPM_BUILD_ROOT 142 + 143 # Pull macros out of macros.jpackage and emulate them during install for 144 # smooth bootstrapping experience. 145 for dir in \ 146 - jvmdatadir jvmsysconfdir \ 147 + jvmdir jvmjardir jvmprivdir \ 148 + jvmlibdir jvmdatadir jvmsysconfdir \ 149 jvmcommonlibdir jvmcommondatadir jvmcommonsysconfdir \ 150 - ; do 151 - export _${dir}=$(rpm --eval $(%{__grep} -E "^%_${dir}\b" /usr/lib/rpm/macros | %{__awk} '{ print $2 }')) 152 + javadir jnidir javadocdir mavendepmapdir; do 153 + export _${dir}=$(rpm --eval $(%{__grep} -E "^%_${dir}\b" misc/macros.jpackage | %{__awk} '{ print $2 }')) 154 done 155 + 156 install -dm 755 ${RPM_BUILD_ROOT}%{_bindir} 157 -install -dm 755 ${RPM_BUILD_ROOT}%{_sysconfdir}/{java,rpm,init.d} 158 -install -dm 755 ${RPM_BUILD_ROOT}%{_jvmdir} 159 -install -dm 755 ${RPM_BUILD_ROOT}%{_jvmjardir} 160 -install -dm 755 ${RPM_BUILD_ROOT}%{_jvmprivdir} 161 -#install -dm 755 ${RPM_BUILD_ROOT}%{_jvmlibdir} 162 +install -dm 755 ${RPM_BUILD_ROOT}%{_sysconfdir}/{java,rpm} 163 +install -dm 755 ${RPM_BUILD_ROOT}${_jvmdir} 164 +install -dm 755 ${RPM_BUILD_ROOT}${_jvmjardir} 165 +install -dm 755 ${RPM_BUILD_ROOT}${_jvmprivdir} 166 +install -dm 755 ${RPM_BUILD_ROOT}${_jvmlibdir} 167 install -dm 755 ${RPM_BUILD_ROOT}${_jvmdatadir} 168 install -dm 755 ${RPM_BUILD_ROOT}${_jvmsysconfdir} 169 install -dm 755 ${RPM_BUILD_ROOT}${_jvmcommonlibdir} 170 install -dm 755 ${RPM_BUILD_ROOT}${_jvmcommondatadir} 171 install -dm 755 ${RPM_BUILD_ROOT}${_jvmcommonsysconfdir} 172 -install -dm 755 ${RPM_BUILD_ROOT}%{_javadir} 173 -install -dm 755 ${RPM_BUILD_ROOT}%{_jnidir} 174 -install -dm 755 ${RPM_BUILD_ROOT}%{_javadir}-{utils,ext,1.4.0,1.4.1,1.4.2,1.5.0,1.6.0} 175 -install -dm 755 ${RPM_BUILD_ROOT}%{_jnidir}-{ext,1.4.0,1.4.1,1.4.2,1.5.0,1.6.0} 176 -install -dm 755 ${RPM_BUILD_ROOT}%{_javadocdir} 177 -install -dm 755 ${RPM_BUILD_ROOT}%{_sbindir} 178 +install -dm 755 ${RPM_BUILD_ROOT}${_javadir} 179 +install -dm 755 ${RPM_BUILD_ROOT}${_jnidir} 180 +install -dm 755 ${RPM_BUILD_ROOT}${_javadir}-{utils,ext,1.4.0,1.4.1,1.4.2,1.5.0,1.6.0} 181 +install -dm 755 ${RPM_BUILD_ROOT}${_jnidir}-{ext,1.4.0,1.4.1,1.4.2,1.5.0,1.6.0} 182 +install -dm 755 ${RPM_BUILD_ROOT}${_javadocdir} 183 +install -dm 755 ${RPM_BUILD_ROOT}${_mavendepmapdir} 184 + 185 install -pm 755 bin/* ${RPM_BUILD_ROOT}%{_bindir} 186 install -pm 644 etc/font.properties ${RPM_BUILD_ROOT}%{_sysconfdir}/java 187 + 188 +# Create an initial (empty) depmap 189 +echo -e "<dependencies>\\n" > ${RPM_BUILD_ROOT}${_mavendepmapdir}/maven2-depmap.xml 190 +echo -e "</dependencies>\\n" >> ${RPM_BUILD_ROOT}${_mavendepmapdir}/maven2-depmap.xml 191 + 192 cat > etc/java.conf << EOF 193 # System-wide Java configuration file -*- sh -*- 194 # 195 # JPackage Project <http://www.jpackage.org/> 196 + 197 # Location of jar files on the system 198 -JAVA_LIBDIR=%{_javadir} 199 +JAVA_LIBDIR=${_javadir} 200 + 201 |