head 1.6; access; symbols; locks; strict; comment @-- @; 1.6 date 2009.09.22.18.05.49; author rse; state Exp; branches; next 1.5; commitid 8P9mRa79wW6wDH4u; 1.5 date 2009.04.18.13.11.27; author rse; state Exp; branches; next 1.4; commitid 4pHXU27WTIGCZuKt; 1.4 date 2009.03.21.18.11.01; author rse; state Exp; branches; next 1.3; commitid xqyXJ90tk38ZBVGt; 1.3 date 2009.03.21.18.04.22; author rse; state Exp; branches; next 1.2; commitid afjfOG4EYDyHzVGt; 1.2 date 2008.10.25.21.12.35; author rse; state Exp; branches; next 1.1; commitid DTT6Wu9jPznel3ot; 1.1 date 2008.10.25.19.07.24; author rse; state Exp; branches; next ; commitid dG5SjPktmNLhE2ot; desc @@ 1.6 log @simplify output @ text @## ## java-jdkfake.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 information Name: java-jdkfake 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: Open Source Version: 0 Release: 20090922 # list of sources # build information Prefix: %{l_prefix} BuildRoot: %{l_buildroot} BuildPreReq: OpenPKG, openpkg >= 20060823 PreReq: OpenPKG, openpkg >= 20060823 PreReq: java AutoReq: no AutoReqProv: no Provides: JAVA-JDK %description This is a fake package for the Sun Java Standard Edition. This package does nothing except providing the virtual OpenPKG RPM package "JAVA-JDK". %track %prep %setup -q -T -c %build %install rm -rf $RPM_BUILD_ROOT %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} %files -f files %clean rm -rf $RPM_BUILD_ROOT %post if [ $1 -eq 1 ]; then ( echo "This package just provides the virtual package \"JAVA-JDK\"". echo "In order to work, you now have to manually register and activate" echo "your external Sun Java Standard Edition JDK via:" echo " \$ $RPM_INSTALL_PREFIX/bin/java-toolkit --register=sun-jdk-0.0:/path/to/external/jdk" echo " \$ $RPM_INSTALL_PREFIX/bin/java-toolkit --activate=sun-jdk-0.0" ) | %{l_rpmtool} msg -b -t notice fi @ 1.5 log @bump years in copyright messages @ text @d35 1 a35 1 Release: 20090321 d75 2 a76 4 echo " \$ $RPM_INSTALL_PREFIX/bin/java-toolkit \\" echo " --register=sun-jdk-0.0:/path/to/external/jdk" echo " \$ $RPM_INSTALL_PREFIX/bin/java-toolkit \\" echo " --activate=sun-jdk-0.0" @ 1.4 log @one additional fix: the version really has to be number based @ text @d3 1 a3 1 ## Copyright (c) 2000-2008 OpenPKG Foundation e.V. @ 1.3 log @fix the name of the faking Sun JDK @ text @d76 1 a76 1 echo " --register=sun-jdk-fake:/path/to/external/jdk" d78 1 a78 1 echo " --activate=sun-jdk-fake" @ 1.2 log @fix naming @ text @d35 1 a35 1 Release: 20081025 d76 1 a76 1 echo " --register=java-jdk-fake:/path/to/external/jdk" d78 1 a78 1 echo " --activate=java-jdk-fake" @ 1.1 log @new package: java-jdkfake 0 (Java Development Kit (JDK) Standard Edition) @ text @d76 1 a76 1 echo " --register=java-jdkfake:/path/to/external/jdk" d78 1 a78 1 echo " --activate=java-jdkfake" @