head 1.12; access; symbols; locks; strict; comment @-- @; 1.12 date 2009.04.18.13.11.26; author rse; state Exp; branches; next 1.11; commitid 4pHXU27WTIGCZuKt; 1.11 date 2008.07.09.05.59.12; author rse; state Exp; branches; next 1.10; commitid ucfb4JTXwnJ7L5at; 1.10 date 2008.03.10.17.10.13; author cs; state Exp; branches; next 1.9; commitid 1DSuOpHirsqsmBUs; 1.9 date 2008.01.01.14.56.03; author rse; state Exp; branches; next 1.8; commitid B8esaHJHoduuKILs; 1.8 date 2007.12.13.17.51.57; author rse; state Exp; branches; next 1.7; commitid ICwbLCrwFWp9qiJs; 1.7 date 2007.11.13.16.40.29; author cs; state Exp; branches; next 1.6; commitid nvmvSs7Ue4aqZqFs; 1.6 date 2007.10.06.08.00.07; author rse; state Exp; branches; next 1.5; commitid Z6MbeL8GEjyCkvAs; 1.5 date 2007.10.03.07.40.36; author rse; state Exp; branches; next 1.4; commitid Uruu0t66vgEUj7As; 1.4 date 2007.08.27.10.18.49; author rse; state Exp; branches; next 1.3; commitid L8PeuVwozPIVnnvs; 1.3 date 2007.08.27.10.15.53; author rse; state Exp; branches; next 1.2; commitid 9vvlxTY0jkhVmnvs; 1.2 date 2007.08.27.09.22.24; author rse; state Exp; branches; next 1.1; commitid m2yJc9mb3vKz4nvs; 1.1 date 2007.08.27.08.29.51; author rse; state Exp; branches; next ; commitid Rf3r1QmEOtyxMmvs; desc @@ 1.12 log @bump years in copyright messages @ text @## ## java-jdk15.spec -- OpenPKG RPM Package Specification ## Copyright (c) 2000-2009 OpenPKG Foundation e.V. ## ## Permission to use, copy, modify, and distribute this software for ## any purpose with or without fee is hereby granted, provided that ## the above copyright notice and this permission notice appear in all ## copies. ## ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED 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 AUTHORS AND COPYRIGHT HOLDERS AND THEIR ## 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. ## # package versions %define V_base 1.5.0 %define V_openpkg 1.5.0.16 %define V_sundist 1_5_0_16 %define V_sunfsys 1.5.0_16 %define V_sunsupp 1_5_0 %define V_bsddist 1.5.0_07-b01 %define V_bsdfsys 1.5.0_07 # package information Name: java-jdk15 Summary: Java Development Kit (JDK) Standard Edition URL: http://java.sun.com/javase/ Vendor: Sun Microsystems, Inc. Packager: OpenPKG Foundation e.V. Distribution: OpenPKG Community Class: EVAL Group: Language License: Commercial Version: %{V_openpkg} Release: 20080709 # package options %option with_demo no %option with_docs no %option with_jce no # list of sources Source0: http://java.sun.com/javase/::/jdk-%{V_sundist}-linux-i586.bin Source1: http://java.sun.com/javase/::/jdk-%{V_sundist}-linux-amd64.bin Source2: http://java.sun.com/javase/::/jdk-%{V_sundist}-solaris-sparc.sh Source3: http://java.sun.com/javase/::/jdk-%{V_sundist}-solaris-sparcv9.sh Source4: http://java.sun.com/javase/::/jdk-%{V_sundist}-solaris-i586.sh Source5: http://java.sun.com/javase/::/jdk-%{V_sundist}-solaris-amd64.sh Source6: http://java.sun.com/javase/::/jdk-%{V_sunsupp}-doc.zip Source7: http://java.sun.com/javase/::/jce_policy-%{V_sunsupp}.zip Source8: http://www.freebsdfoundation.org/downloads/java.shtml::/diablo-caffe-freebsd6-i386-%{V_bsddist}.tar.bz2 Source9: http://www.freebsdfoundation.org/downloads/java.shtml::/diablo-caffe-freebsd6-amd64-%{V_bsddist}.tar.bz2 %NoSource 0 %NoSource 1 %NoSource 2 %NoSource 3 %NoSource 4 %NoSource 5 %NoSource 6 %NoSource 7 %NoSource 8 %NoSource 9 # build information Prefix: %{l_prefix} BuildRoot: %{l_buildroot} BuildPreReq: OpenPKG, openpkg >= 20060823 PreReq: OpenPKG, openpkg >= 20060823 PreReq: java %if "%{with_docs}" == "yes" || "%{with_jce}" == "yes" BuildPreReq: infozip %endif AutoReq: no AutoReqProv: no Provides: JAVA-JDK %description The Sun Java Standard Edition contains both the Java Development Kit (JDK) and Java Runtime Environment (JRE). The premier solution for rapidly developing and deploying mission-critical, enterprise applications, JDK provides the essential compiler, tools, runtimes, and APIs for writing, deploying, and running applets and applications in the Java programming language. %track prog java-jdk15 = { version = %{V_sundist} url = http://java.sun.com/javase/downloads/index_jdk5.jsp regex = jdk-(\d+(\.\d+)+_\d+)- } %prep %setup -q -c java-jdk15 -T %build %install rm -rf $RPM_BUILD_ROOT # select vendor source pkgfile1="" pkgfile2="" docsfile="%{SOURCE jdk-%{V_sunsupp}-doc.zip}" cryptfile="%{SOURCE jce_policy-%{V_sunsupp}.zip}" pkgdir="%{V_sunfsys}" case "%{l_platform -t}" in i?86-freebsd[5-8]* ) pkgfile1="%{SOURCE diablo-caffe-freebsd6-i386-%{V_bsddist}.tar.bz2}" pkgdir="diablo-jdk%{V_bsdfsys}" ;; amd64-freebsd[5-8]* ) pkgfile1="%{SOURCE diablo-caffe-freebsd6-amd64-%{V_bsddist}.tar.bz2}" pkgdir="diablo-jdk%{V_bsdfsys}" ;; i?86-linux2.[2-6]* ) pkgfile1="%{SOURCE jdk-%{V_sundist}-linux-i586.bin}" pkgdir="jdk%{V_sunfsys}" ;; amd64-linux2.[2-6]* ) pkgfile1="%{SOURCE jdk-%{V_sundist}-linux-i586.bin}" pkgfile2="%{SOURCE jdk-%{V_sundist}-linux-amd64.bin}" pkgdir="jdk%{V_sunfsys}" ;; sun4u-sunos5.[6-9]* | sun4[uv]-sunos5.10 ) pkgfile1="%{SOURCE jdk-%{V_sundist}-solaris-sparc.sh}" pkgfile2="%{SOURCE jdk-%{V_sundist}-solaris-sparcv9.sh}" pkgdir="jdk%{V_sunfsys}" ;; i?86-sunos5.[6-9]* | i?86-sunos5.10 ) pkgfile1="%{SOURCE jdk-%{V_sundist}-solaris-i586.sh}" pkgdir="jdk%{V_sunfsys}" ;; amd64-sunos5.[6-9]* | amd64-sunos5.10 ) pkgfile1="%{SOURCE jdk-%{V_sundist}-solaris-i586.sh}" pkgfile2="%{SOURCE jdk-%{V_sundist}-solaris-amd64.sh}" pkgdir="jdk%{V_sunfsys}" ;; esac if [ ".$pkgfile1" = . ]; then echo "Sorry, unsupported architecture '%{l_platform -t}'" 1>&2 exit 1 fi # create installation tree %{l_shtool} mkdir -f -p -m 755 \ $RPM_BUILD_ROOT%{l_prefix}/bin \ $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d \ $RPM_BUILD_ROOT%{l_prefix}/libexec/java-jdk15 \ $RPM_BUILD_ROOT%{l_prefix}/man/man1 # unpack vendor distribution ( umask 022 cd $RPM_BUILD_ROOT%{l_prefix}/libexec HOME=$RPM_BUILD_ROOT%{l_prefix}/libexec/java-jdk15 case "%{l_platform -t}" in i?86-freebsd[5-8]* ) %{l_bzip2} -d -c $pkgfile1 | %{l_tar} xf - touch COPYING ;; amd64-freebsd[5-8]* ) %{l_bzip2} -d -c $pkgfile1 | %{l_tar} xf - touch COPYING ;; i?86-linux2.[2-6]* ) echo "yes" | sh $pkgfile1 >COPYING.32 ;; amd64-linux2.[2-6]* ) echo "yes" | sh $pkgfile1 >COPYING.32 echo "yes" | sh $pkgfile2 >COPYING.64 ;; sun4u-sunos5.[6-9]* | sun4[uv]-sunos5.10 ) echo "yes" | sh $pkgfile1 >COPYING.32 && \ echo "yes" | sh $pkgfile2 >COPYING.64 ;; i?86-sunos5.[6-9]* | i?86-sunos5.10 ) echo "yes" | sh $pkgfile1 >COPYING.32 ;; amd64-sunos5.[6-9]* | amd64-sunos5.10 ) echo "yes" | sh $pkgfile1 >COPYING.32 echo "yes" | sh $pkgfile2 >COPYING.64 ;; * ) false ;; esac if [ $? != 0 ]; then echo "ERROR: unpacking failed" 1>&2 exit 1 fi mv $pkgdir/* java-jdk15/ mv COPYING.* java-jdk15/ rmdir $pkgdir ) || exit $? # fix vendor distribution ( cd $RPM_BUILD_ROOT%{l_prefix}/libexec/java-jdk15/bin find . -type f -print | xargs chmod u+w cd $RPM_BUILD_ROOT%{l_prefix}/libexec/java-jdk15/jre/bin find . -type f -print | xargs chmod u+w case "%{l_platform -t}" in sun4u-sunos5.[6-9]* | sun4[uv]-sunos5.10 ) cd $RPM_BUILD_ROOT%{l_prefix}/libexec/java-jdk15/bin/sparcv9 find . -type f -print | xargs chmod u+w cd $RPM_BUILD_ROOT%{l_prefix}/libexec/java-jdk15/jre/bin/sparcv9 find . -type f -print | xargs chmod u+w ;; esac ) || exit $? # remove GNOME and other irrelevant files rm -rf $RPM_BUILD_ROOT%{l_prefix}/libexec/java-jdk15/.gnome rm -rf $RPM_BUILD_ROOT%{l_prefix}/libexec/java-jdk15/.icons # conditionally remove demo %if "%{with_demo}" == "no" rm -rf $RPM_BUILD_ROOT%{l_prefix}/libexec/java-jdk15/demo 2>/dev/null || true rm -rf $RPM_BUILD_ROOT%{l_prefix}/libexec/java-jdk15/sample 2>/dev/null || true %endif # conditionally install docs %if "%{with_docs}" == "yes" unzip -q $docsfile mv docs $RPM_BUILD_ROOT%{l_prefix}/libexec/java-jdk15/ %endif # install Java Cryptography Extension (JCE) Unlimited Strength Jurisdiction Policy # under confirmation of the US Export Administration Regulations (EAR) %if "%{with_jce}" == "yes" unzip -q $cryptfile cp jce/COPYRIGHT.html $RPM_BUILD_ROOT%{l_prefix}/libexec/java-jdk15/JCE_COPYRIGHT.html cp jce/README.txt $RPM_BUILD_ROOT%{l_prefix}/libexec/java-jdk15/JCE_README.txt cp -f jce/US_export_policy.jar $RPM_BUILD_ROOT%{l_prefix}/libexec/java-jdk15/jre/lib/security/ cp -f jce/local_policy.jar $RPM_BUILD_ROOT%{l_prefix}/libexec/java-jdk15/jre/lib/security/ %endif # remember particular toolkit platform identification echo "sun-jdk-%{V_base}" >$RPM_BUILD_ROOT%{l_prefix}/libexec/java-jdk15/PLATFORM # determine installation files %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} %files -f files %clean rm -rf $RPM_BUILD_ROOT %post # unconditionally (re)register platform=`cat $RPM_INSTALL_PREFIX/libexec/java-jdk15/PLATFORM 2>/dev/null` if [ ".$platform" != . ]; then $RPM_INSTALL_PREFIX/bin/java-toolkit --register="$platform:$RPM_INSTALL_PREFIX/libexec/java-jdk15" fi # optionally activate if we are the only toolkit if [ ".`$RPM_INSTALL_PREFIX/bin/java-toolkit --list | wc -l | awk '{ print $1; }'`" = .1 ]; then $RPM_INSTALL_PREFIX/bin/java-toolkit --activate="$platform" fi %preun # unconditionally unregister platform=`cat $RPM_INSTALL_PREFIX/libexec/java-jdk15/PLATFORM 2>/dev/null` if [ ".$platform" != . ]; then $RPM_INSTALL_PREFIX/bin/java-toolkit --unregister="$platform" fi @ 1.11 log @upgrading package: java-jdk15 1.5.0.15 -> 1.5.0.16 @ text @d3 1 a3 1 ## Copyright (c) 2000-2008 OpenPKG Foundation e.V. @ 1.10 log @upgrading package: java-jdk15 1.5.0.14 -> 1.5.0.15 @ text @d26 3 a28 3 %define V_openpkg 1.5.0.15 %define V_sundist 1_5_0_15 %define V_sunfsys 1.5.0_15 d44 1 a44 1 Release: 20080310 @ 1.9 log @Update package specifications according to OpenPKG year 2008 world order: http://www.mail-archive.com/openpkg-announce@@openpkg.org/msg00221.html @ text @d26 3 a28 3 %define V_openpkg 1.5.0.14 %define V_sundist 1_5_0_14 %define V_sunfsys 1.5.0_14 d44 1 a44 1 Release: 20080101 d98 1 a98 1 regex = jre-(__VER__)- @ 1.8 log @support FreeBSD 8 @ text @d3 1 a3 2 ## Copyright (c) 2000-2007 OpenPKG Foundation e.V. ## Copyright (c) 2000-2007 Ralf S. Engelschall d44 1 a44 1 Release: 20071213 @ 1.7 log @upgrading package: java-jdk15 1.5.0.13 -> 1.5.0.14 @ text @d45 1 a45 1 Release: 20071113 d117 1 a117 1 i?86-freebsd[567]* ) d121 1 a121 1 amd64-freebsd[567]* ) d166 1 a166 1 i?86-freebsd[567]* ) d170 1 a170 1 amd64-freebsd[567]* ) @ 1.6 log @shift up to FreeBSD 7 @ text @d27 3 a29 3 %define V_openpkg 1.5.0.13 %define V_sundist 1_5_0_13 %define V_sunfsys 1.5.0_13 d45 1 a45 1 Release: 20071006 @ 1.5 log @upgrading package: java-jdk15 1.5.0.12 -> 1.5.0.13 @ text @d45 1 a45 1 Release: 20071003 d117 1 a117 1 i?86-freebsd[456]* ) d121 1 a121 1 amd64-freebsd[456]* ) d166 1 a166 1 i?86-freebsd[456]* ) d170 1 a170 1 amd64-freebsd[456]* ) @ 1.4 log @use upper-case to indicate that this is a virtual provide @ text @d27 3 a29 3 %define V_openpkg 1.5.0.12 %define V_sundist 1_5_0_12 %define V_sunfsys 1.5.0_12 d45 1 a45 1 Release: 20070827 @ 1.3 log @cleanups @ text @d85 1 a85 1 Provides: java-jdk @ 1.2 log @remove doubled label @ text @d85 1 a156 1 $RPM_BUILD_ROOT%{l_prefix}/cgi \ d226 1 a244 5 # provide RMI CGI ( cd $RPM_BUILD_ROOT%{l_prefix}/cgi ln -s ../libexec/java-jdk15/jdk%{V_sunfsys}/bin/java-rmi.cgi java-rmi.cgi ) || exit $? @ 1.1 log @provide new Java toolkit frontend and backends @ text @d174 1 a174 1 i?86-linux2.[2-6]* | i?86-freebsd[456]* ) @