Compare commits

...

44 Commits

Author SHA1 Message Date
e0a172d8f7 Release 4.0.0 2017-06-03 15:40:17 +02:00
cedfb93b68 sun-java7, sun-java8: update following upstream download url changes 2017-06-03 15:39:36 +02:00
b5ddfe787c flashplugin: fix for version detection 2017-06-03 15:14:10 +02:00
0b20585be5 Release 3.94.0 2016-12-13 16:47:30 +01:00
f574490e77 flashplugin, chromium-pepper-flash: support for 24.0 2016-12-13 16:47:06 +01:00
f44219efae chromium-pepper-flash: fetch from Adobe site instead of Chrome archive 2016-12-13 16:34:49 +01:00
76b6dde25f SRPMSVERSIONS: version fetch update for chromium-pepper-flash and flashplugin 2016-12-03 19:16:35 +01:00
b4099586ce Release 3.92.0 2016-09-13 13:07:43 +02:00
b00e1dfe15 Update mambabase for sun-java8 2016-09-13 13:07:01 +02:00
4785ba0d9c Added sun-java8 SRPMS installation 2016-09-13 13:00:52 +02:00
c1dcebd6f5 Release 3.91.1 2016-09-08 20:41:47 +02:00
053f821e7f SRPMSVERSIONS: fix for flashplugin version retrieval 2016-09-08 20:39:19 +02:00
c420fa1272 Release 3.91.0 2016-07-24 16:25:00 +02:00
ec7a7c8183 skype.spec: require libv4l1.so.0 instead of libv4l.i586 2016-07-24 16:22:40 +02:00
b9e7f95109 SRPMSVERSION: fix disabling updating chromium-pepper-flash for i586 2016-07-10 23:12:03 +02:00
279f33aba3 Release 3.90.0 2016-05-19 00:30:09 +02:00
17a2a7bcee Move scripts in /etc/xprofile.d to /etc/profile.d 2016-05-19 00:29:30 +02:00
7e2099106f Release 3.0.6 (retarded commit) 2016-05-19 00:20:17 +02:00
ab3ae9a6dd SRPMSVERSION: update for Chromium also disabling no longer available 32 bit version 2016-04-21 13:44:42 +02:00
9ab6dc2fb7 Release 3.0.5 2016-03-08 12:09:12 +01:00
582526fc08 r8169: system-sleep hook for module unloading as a workaround for driver not working after resume from suspend 2016-03-08 12:08:39 +01:00
94d9fb5882 Release 3.0.4 2016-02-12 11:30:02 +01:00
d4479c117c openmamba-netsrpms: only run curl to check version for specified component, not all 2016-02-12 11:27:22 +01:00
fcb13665a0 Release 3.0.3 2016-02-12 11:17:33 +01:00
2df4b31c4b SRPMSVERSION: add --max-time also to other curl invocations 2016-02-12 11:13:38 +01:00
48755a089f SRPMS: clean builddir for each package (including previous versions) 2016-02-12 11:01:35 +01:00
8463b462e2 SRPMVERSION: fix for skype version retrieving and add curl timeout when fetching adobe version 2016-02-12 11:00:02 +01:00
1aa1b2d379 skype: require libv4l.i586 2015-10-20 20:09:59 +02:00
e22ffd5cb5 Release 3.0.2 2015-08-26 15:45:53 +02:00
2b6bc00cdb spotify: update, fetch from git and disable check on 32 bit systems 2015-08-26 15:44:36 +02:00
c2cac1a9ba virtualbox-extension-pack: support for 5.0.2 and for autoupdate 2015-08-26 15:15:45 +02:00
474169a815 b43-firmware: small fix in LICENSE 2015-05-21 16:11:34 +02:00
b670cf748a Release 3.0.1 2015-05-17 20:48:16 +02:00
89f03c5d15 mambabase: autodetect NVIDIA proprietary driver and add chromium-pepper-flash 2015-05-17 19:45:53 +02:00
7ed703c52e Release 3.0.0 2015-04-30 19:13:16 +02:00
10e2f77897 spotify: fix links to wrong openssl library version 2015-04-30 19:11:29 +02:00
546f7ae273 spotify: update spotify-make to 20150430 (git) 2015-04-30 18:54:40 +02:00
1d2c278c24 mambabase.sh: remove first-boot autostart file also if in new xdg location for autostart 2015-04-30 16:41:50 +02:00
e26a2de609 Release 2.9.94 2015-04-24 17:10:59 +02:00
8312b5cbe9 chromium-pepper-flash: fix version check and download url 2015-04-24 17:06:16 +02:00
8535042828 chromium-pepper-flash: update download link 2015-04-19 21:44:13 +02:00
33bab006eb chromium-pepper-flash: restore version retrieval 2015-04-19 21:42:25 +02:00
d81cfa32c4 Release 2.9.92 2015-03-26 13:23:55 +01:00
b8280278af chromium-pepper-flash: stop automatic updates for now, as download link for latest version is broken 2015-03-26 13:22:46 +01:00
26 changed files with 1169 additions and 250 deletions

View File

@@ -1,5 +1,5 @@
# Makefile for desktop-base-openmamba package
# Copyright (C) 2004-2015 by Silvan Calarco <silvan.calarco@mambasoft.it>
# Copyright (C) 2004-2016 by Silvan Calarco <silvan.calarco@mambasoft.it>
# Copyright (C) 2005-2007 by Davide Madrisan <davide.madrisan@gmail.com>
include VERSION
@@ -12,10 +12,8 @@ pck_srpms = b43-firmware sun-java7
else
SRPMSVERSIONSFILE = SRPMSVERSIONS
pck_srpms = flashplugin msttcorefonts win32codecs skype b43-firmware virtualbox-extension-pack \
sun-java7 spotify chromium-pepper-flash
sun-java7 sun-java8 spotify chromium-pepper-flash
endif
include $(SRPMSVERSIONSFILE)
PACKAGE = desktop-base-openmamba
DISTROID = openmamba
@@ -50,7 +48,7 @@ endif
initrddir = ${sysconfdir}/rc.d/init.d
mandir = ${prefix}/usr/share/man
sysconfigdir= ${sysconfdir}/sysconfig
xprofiledir = ${sysconfdir}/xprofile.d
profiledir = ${sysconfdir}/profile.d
mambabasedatadir = ${datadir}/openmamba/mambabase
mambareportdatadir = ${datadir}/openmamba/mambareport
mambaimagesdir = ${datadir}/openmamba/images
@@ -69,6 +67,7 @@ xdg_directorydir = ${datadir}/desktop-directories
xdg_menudir = ${sysconfdir}/xdg/menus
xdg_mergedmenudir = $(xdg_menudir)/applications-merged
systemdsystemdir = /lib/systemd/system
systemdsleepdir = /lib/systemd/system-sleep
distrorootdir = ${datadir}/$(DISTROid)
distrobindir = ${distrorootdir}/bin
@@ -150,14 +149,14 @@ install-kde-distro-addons: dist-update
@$(INSTALL_DIR) $(DESTDIR)$(sbindir)
@$(INSTALL_DIR) $(DESTDIR)$(distrobindir)
@$(INSTALL_DIR) $(DESTDIR)$(mambaimagesdir)
@$(INSTALL_DIR) $(DESTDIR)$(systemdsleepdir)
cp -r etc/polkit-1 $(DESTDIR)$(sysconfdir)/
cp -r etc/prelink.conf.d $(DESTDIR)$(sysconfdir)/
cp -r etc/profile.d $(DESTDIR)$(sysconfdir)/
cp -r etc/sudoers.d $(DESTDIR)$(sysconfdir)/
cp -r etc/sysconfig $(DESTDIR)$(sysconfdir)/
cp -r etc/xprofile.d $(DESTDIR)$(sysconfdir)/
cp etc/system-sleep/* $(DESTDIR)$(systemdsleepdir)/
chmod 755 $(DESTDIR)$(sysconfdir)/profile.d/*.sh
chmod 755 $(DESTDIR)$(sysconfdir)/xprofile.d/*.sh
$(INSTALL_SCRIPT) kde/scripts/showlog $(DESTDIR)$(distrobindir)
cp -r menu/icons/ $(DESTDIR)$(datadir)/icons/
@@ -230,7 +229,7 @@ install-xramdr:
install-desktop:
@$(INSTALL_DIR) $(DESTDIR)$(distrodesktopdir)
$(INSTALL_DATA) $(pck_desktop) $(DESTDIR)$(distrodesktopdir)
$(INSTALL_SCRIPT) desktop/desktop-firsttime.sh $(DESTDIR)$(xprofiledir)
$(INSTALL_SCRIPT) desktop/desktop-firsttime.sh $(DESTDIR)$(profiledir)
install-openmamba-update:
@$(INSTALL_DIR) $(DESTDIR)$(bindir)

View File

@@ -5,6 +5,6 @@ The firmware from the binary drivers is Copyright by Broadcom Corporation and mu
=======================================================
Press the "I agree" button if you have read and understood this text and accept to download and install the Adobe Flash Plugin.
Press the "I agree" button if you have read and understood this text and accept to download and install the Broadcom wireless chip firmware.
Press "I do not agree" if you want this script to terminate immediately without performing any futher operation.

View File

@@ -64,6 +64,8 @@ rm -fr ${tmpdir}
%clean
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
rm -rf %{_builddir}/%{name}-*
:
%files
%defattr(-,root,root)

View File

@@ -1,7 +1,7 @@
Name: chromium-pepper-flash
Version: @SRPMVERSION@
Release: @SRPMRELEASE@
Epoch: 1
Epoch: 2
Summary: Google Chrome's pepper-flash plugin for Chromium
Group: Applications/Web
Vendor: @vendor@
@@ -37,14 +37,14 @@ tmpdir=$(mktemp -q -d -t flashplugin.XXXXXXXX)
${CHROMIUM_PEPPER_FLASH_URL}${CHROMIUM_PEPPER_FLASH_PCK} -O ${tmpdir}/${CHROMIUM_PEPPER_FLASH_PCK}
[ -f ${tmpdir}/${CHROMIUM_PEPPER_FLASH_PCK} ] || exit 1
rpm2cpio ${tmpdir}/${CHROMIUM_PEPPER_FLASH_PCK} | cpio -id
tar xzf ${tmpdir}/${CHROMIUM_PEPPER_FLASH_PCK}
%build -q
%install
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
install -d -m0755 %{buildroot}/opt/chromium/PepperFlash
cp -a opt/google/chrome/PepperFlash/* %{buildroot}/opt/chromium/PepperFlash/
cp -a * %{buildroot}/opt/chromium/PepperFlash/
cp %{S:0} LICENSE
@@ -52,14 +52,24 @@ rm -fr ${tmpdir}
%clean
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
rm -rf %{_builddir}/%{name}-*
:
%files
%defattr(-,root,root)
%dir /opt/chromium/PepperFlash
/opt/chromium/PepperFlash/libpepflashplayer.so
/opt/chromium/PepperFlash/LICENSE
/opt/chromium/PepperFlash/license.pdf
/opt/chromium/PepperFlash/manifest.json
/opt/chromium/PepperFlash/readme.txt
%dir /opt/chromium/PepperFlash/LGPL
/opt/chromium/PepperFlash/LGPL/*
%doc LICENSE
%changelog
* Sat Dec 3 2016 Silvan Calarco <silvan.calarco@mambasoft.it> @SRPMVERSION@-@SRPMRELEASE@
- PPAPI plugin for Chromium
* Fri Sep 19 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 37.0.2062.120-1mamba
- first build for chromium-pepper-flash

View File

@@ -1,7 +1,7 @@
## Google Chrome's pepper-flash
# package name (do not modify unless you know what you're doing)
CHROMIUM_PEPPER_FLASH_PCK=google-chrome-stable-${SRPMVERSION["chromium-pepper-flash"]}-1.@arch@.rpm
CHROMIUM_PEPPER_FLASH_PCK=flash_player_ppapi_linux.@arch@.tar.gz
# package URL (do not modify unless you know what you're doing)
CHROMIUM_PEPPER_FLASH_URL=http://dl.google.com/linux/chrome/rpm/stable/@arch@/
CHROMIUM_PEPPER_FLASH_URL=http://fpdownload.macromedia.com/get/flashplayer/pdc/${SRPMVERSION["chromium-pepper-flash"]}/

View File

@@ -1,7 +1,7 @@
## Adobe Flash Plugin
# package name (do not modify unless you know what you're doing)
FLASH_PLUGIN_PCK=install_flash_player_11_linux.@arch@.tar.gz
FLASH_PLUGIN_PCK=flash_player_npapi_linux.@arch@.tar.gz
# package URL (do not modify unless you know what you're doing)
FLASH_PLUGIN_URL=http://fpdownload.macromedia.com/get/flashplayer/pdc/${SRPMVERSION["flashplugin"]}/

View File

@@ -59,6 +59,8 @@ rm -fr ${tmpdir}
%clean
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
rm -rf %{_builddir}/%{name}-*
:
%files
%defattr(-,root,root)

View File

@@ -33,6 +33,8 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-root
The TrueType core fonts for the web that was once available from http://www.microsoft.com/typography/fontpack/. The src rpm is cleverly constructed so that the actual fonts are downloaded from Sourceforge's site at build time. Therefore this package technically does not 'redistribute' the fonts, it just makes it easy to install them on a linux system.
%prep
%setup -c -n %{name}-%{version} -D -T
rm -rf %{name}
mkdir %{name}
cd %{name}
@@ -83,6 +85,8 @@ cp *.ttf %{buildroot}%{fontdir}
%clean
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
rm -rf %{_builddir}/%{name}-*
:
%post
/usr/bin/fc-cache

View File

@@ -14,6 +14,7 @@ BuildPrereq: wget
BuildPrereq: /usr/bin/tempfile
# NOTE: requires the backward compatible version of the libstdc++ library
Requires: pulseaudio
Requires: libv4l1.so.0
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
@@ -98,6 +99,8 @@ _EOF
%clean
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
rm -rf %{_builddir}/%{name}-*
:
%files
%defattr(-,root,root)

View File

@@ -1,4 +1,3 @@
#% define spotify_make_ver 20130831git
Name: spotify
Version: @SRPMVERSION@
Release: @SRPMRELEASE@
@@ -9,9 +8,12 @@ Distribution: @distribution@
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://www.spotify.com/us/download/previews/
## GITSOURCE https://github.com/leamas/spotify-make.git master
Source: https://github.com/leamas/spotify-make/tarball/master/spotify-make-%{version}.tar.gz
#Source: https://github.com/leamas/spotify-make/tarball/master/spotify-make-%{version}.tar.gz
Source1: LICENSE
License: Not distributable
BuildRequires: git
Requires: libopenssl100
Requires: zenity
## AUTOBUILDREQ-BEGIN
## AUTOBUILDREQ-END
BuildRoot: %{_tmppath}/%{name}-%{version}-root
@@ -20,8 +22,9 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-root
Listen to music using Spotify.
%prep
%setup -q -c
mv leamas-spotify-make-*/* .
%setup -q -c -T
git clone --depth=1 https://github.com/leamas/spotify-make.git
mv spotify-make/* .
%build
./configure \
@@ -42,8 +45,13 @@ mv %{buildroot}/opt/spotify/share/appdata %{buildroot}%{_datadir}
install -d -m0755 %{buildroot}%{_bindir}
ln -s /opt/spotify/bin/spotify %{buildroot}%{_bindir}/spotify
ln -sf /usr/lib64/libcrypto.so.1.0.0 %{buildroot}/opt/spotify/lib/spotify-client/libcrypto.so.1.0.0
ln -sf /usr/lib64/libssl.so.1.0.0 %{buildroot}/opt/spotify/lib/spotify-client/libssl.so.1.0.0
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
rm -rf %{_builddir}/%{name}-*
:
%pre
if [ $1 -ge 1 ]; then
@@ -84,9 +92,12 @@ fi
%dir /opt/spotify/share
%dir /opt/spotify/share/spotify-client/
/opt/spotify/share/spotify-client/*
%{_mandir}/man1/spotify.1.gz
%{_mandir}/man1/spotify.1*
%changelog
* Thu Aug 26 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 20150629-1mamba
- fetch spotify-make from git
* Thu Jan 29 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 20150129-1mamba
- updated

View File

@@ -61,23 +61,25 @@ Sun Java Platform Runtime Environment.
%setup -q -T -c
DOWNLOAD_FRAGMENT=`curl --max-time 20 -sL http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html|grep "Linux x86.*i586.tar.gz"|tail -n1|sed "s|.*/java/jdk/\([a-zA-Z0-9-]*\).*/jdk-.*|\1|"`
#echo yes | MORE=10000
%ifarch %{ix86}
wget -nv --tries=2 --no-cookies --header \
"Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie" \
http://download.oracle.com/otn-pub/java/jdk/%{pkgver}/jdk-%{realver}-linux-i586.tar.gz
http://download.oracle.com/otn-pub/java/jdk/${DOWNLOAD_FRAGMENT}/jdk-%{realver}-linux-i586.tar.gz
tar xf jdk-%{realver}-linux-i586.tar.gz
%endif
%ifarch x86_64
wget -nv --tries=2 --no-cookies --header \
"Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie" \
http://download.oracle.com/otn-pub/java/jdk/%{pkgver}/jdk-%{realver}-linux-x64.tar.gz
http://download.oracle.com/otn-pub/java/jdk/${DOWNLOAD_FRAGMENT}/jdk-%{realver}-linux-x64.tar.gz
tar xf jdk-%{realver}-linux-x64.tar.gz
%endif
%ifarch arm
wget -nv --tries=2 --no-cookies --header \
"Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie" \
http://download.oracle.com/otn-pub/java/jdk/%{pkgver}/jdk-%{realver}-linux-arm-vfp-sflt.tar.gz
http://download.oracle.com/otn-pub/java/jdk/${DOWNLOAD_FRAGMENT}/jdk-%{realver}-linux-arm-vfp-sflt.tar.gz
tar xf jdk-%{realver}-linux-arm-sfp.tar.gz
%endif
@@ -308,6 +310,8 @@ rm -f %{buildroot}%{_jvmdir}/%{jredir}/lib/*/fxavcodecplugin-52.so
%clean
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
rm -rf %{_builddir}/%{name}-*
:
%pre
if [ $1 -ge 1 ]; then

68
SRPMS/sun-java8/LICENSE Normal file
View File

@@ -0,0 +1,68 @@
Oracle Binary Code License Agreement for the Java SE Platform Products and JavaFX
ORACLE AMERICA, INC. ("ORACLE"), FOR AND ON BEHALF OF ITSELF AND ITS SUBSIDIARIES AND AFFILIATES UNDER COMMON CONTROL, IS WILLING TO LICENSE THE SOFTWARE TO YOU ONLY UPON THE CONDITION THAT YOU ACCEPT ALL OF THE TERMS CONTAINED IN THIS BINARY CODE LICENSE AGREEMENT AND SUPPLEMENTAL LICENSE TERMS (COLLECTIVELY "AGREEMENT"). PLEASE READ THE AGREEMENT CAREFULLY. BY SELECTING THE "ACCEPT LICENSE AGREEMENT" (OR THE EQUIVALENT) BUTTON AND/OR BY USING THE SOFTWARE YOU ACKNOWLEDGE THAT YOU HAVE READ THE TERMS AND AGREE TO THEM. IF YOU ARE AGREEING TO THESE TERMS ON BEHALF OF A COMPANY OR OTHER LEGAL ENTITY, YOU REPRESENT THAT YOU HAVE THE LEGAL AUTHORITY TO BIND THE LEGAL ENTITY TO THESE TERMS. IF YOU DO NOT HAVE SUCH AUTHORITY, OR IF YOU DO NOT WISH TO BE BOUND BY THE TERMS, THEN SELECT THE "DECLINE LICENSE AGREEMENT" (OR THE EQUIVALENT) BUTTON AND YOU MUST NOT USE THE SOFTWARE ON THIS SITE OR ANY OTHER MEDIA ON WHICH THE SOFTWARE IS CONTAINED.
1. DEFINITIONS. "Software" means the software identified above in binary form that you selected for download, install or use (in the version You selected for download, install or use) from Oracle or its authorized licensees, any other machine readable materials (including, but not limited to, libraries, source files, header files, and data files), any updates or error corrections provided by Oracle, and any user manuals, programming guides and other documentation provided to you by Oracle under this Agreement. "General Purpose Desktop Computers and Servers" means computers, including desktop and laptop computers, or servers, used for general computing functions under end user control (such as but not specifically limited to email, general purpose Internet browsing, and office suite productivity tools). The use of Software in systems and solutions that provide dedicated functionality (other than as mentioned above) or designed for use in embedded or function-specific software applications, for example but not limited to: Software embedded in or bundled with industrial control systems, wireless mobile telephones, wireless handheld devices, kiosks, TV/STB, Blu-ray Disc devices, telematics and network control switching equipment, printers and storage management systems, and other related systems are excluded from this definition and not licensed under this Agreement. "Programs" means (a) Java technology applets and applications intended to run on the Java Platform, Standard Edition platform on Java-enabled General Purpose Desktop Computers and Servers; and (b) JavaFX technology applications intended to run on the JavaFX Runtime on JavaFX-enabled General Purpose Desktop Computers and Servers. “Commercial Features” means those features identified in Table 1-1 (Commercial Features In Java SE Product Editions) of the Java SE documentation accessible at http://www.oracle.com/technetwork/java/javase/documentation/index.html. “README File” means the README file for the Software accessible at http://www.oracle.com/technetwork/java/javase/documentation/index.html.
2. LICENSE TO USE. Subject to the terms and conditions of this Agreement including, but not limited to, the Java Technology Restrictions of the Supplemental License Terms, Oracle grants you a non-exclusive, non-transferable, limited license without license fees to reproduce and use internally the Software complete and unmodified for the sole purpose of running Programs. THE LICENSE SET FORTH IN THIS SECTION 2 DOES NOT EXTEND TO THE COMMERCIAL FEATURES. YOUR RIGHTS AND OBLIGATIONS RELATED TO THE COMMERCIAL FEATURES ARE AS SET FORTH IN THE SUPPLEMENTAL TERMS ALONG WITH ADDITIONAL LICENSES FOR DEVELOPERS AND PUBLISHERS.
3. RESTRICTIONS. Software is copyrighted. Title to Software and all associated intellectual property rights is retained by Oracle and/or its licensors. Unless enforcement is prohibited by applicable law, you may not modify, decompile, or reverse engineer Software. You acknowledge that the Software is developed for general use in a variety of information management applications; it is not developed or intended for use in any inherently dangerous applications, including applications that may create a risk of personal injury. If you use the Software in dangerous applications, then you shall be responsible to take all appropriate fail-safe, backup, redundancy, and other measures to ensure its safe use. Oracle disclaims any express or implied warranty of fitness for such uses. No right, title or interest in or to any trademark, service mark, logo or trade name of Oracle or its licensors is granted under this Agreement. Additional restrictions for developers and/or publishers licenses are set forth in the Supplemental License Terms.
4. DISCLAIMER OF WARRANTY. THE SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. ORACLE FURTHER DISCLAIMS ALL WARRANTIES, EXPRESS AND IMPLIED, INCLUDING WITHOUT LIMITATION, ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NONINFRINGEMENT.
5. LIMITATION OF LIABILITY. IN NO EVENT SHALL ORACLE BE LIABLE FOR ANY INDIRECT, INCIDENTAL, SPECIAL, PUNITIVE OR CONSEQUENTIAL DAMAGES, OR DAMAGES FOR LOSS OF PROFITS, REVENUE, DATA OR DATA USE, INCURRED BY YOU OR ANY THIRD PARTY, WHETHER IN AN ACTION IN CONTRACT OR TORT, EVEN IF ORACLE HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. ORACLE'S ENTIRE LIABILITY FOR DAMAGES HEREUNDER SHALL IN NO EVENT EXCEED ONE THOUSAND DOLLARS (U.S. $1,000).
6. TERMINATION. This Agreement is effective until terminated. You may terminate this Agreement at any time by destroying all copies of Software. This Agreement will terminate immediately without notice from Oracle if you fail to comply with any provision of this Agreement. Either party may terminate this Agreement immediately should any Software become, or in either party's opinion be likely to become, the subject of a claim of infringement of any intellectual property right. Upon termination, you must destroy all copies of Software.
7. EXPORT REGULATIONS. You agree that U.S. export control laws and other applicable export and import laws govern your use of the Software, including technical data; additional information can be found on Oracle's Global Trade Compliance web site (http://www.oracle.com/products/export). You agree that neither the Software nor any direct product thereof will be exported, directly, or indirectly, in violation of these laws, or will be used for any purpose prohibited by these laws including, without limitation, nuclear, chemical, or biological weapons proliferation.
8. TRADEMARKS AND LOGOS. You acknowledge and agree as between you
and Oracle that Oracle owns the ORACLE and JAVA trademarks and all ORACLE- and JAVA-related trademarks, service marks, logos and other brand
designations ("Oracle Marks"), and you agree to comply with the Third
Party Usage Guidelines for Oracle Trademarks currently located at
http://www.oracle.com/us/legal/third-party-trademarks/index.html . Any use you make of the Oracle Marks inures to Oracle's benefit.
9. U.S. GOVERNMENT LICENSE RIGHTS. If Software is being acquired by or on behalf of the U.S. Government or by a U.S. Government prime contractor or subcontractor (at any tier), then the Government's rights in Software and accompanying documentation shall be only those set forth in this Agreement.
10. GOVERNING LAW. This agreement is governed by the substantive and procedural laws of California. You and Oracle agree to submit to the exclusive jurisdiction of, and venue in, the courts of San Francisco, or Santa Clara counties in California in any dispute arising out of or relating to this agreement.
11. SEVERABILITY. If any provision of this Agreement is held to be unenforceable, this Agreement will remain in effect with the provision omitted, unless omission would frustrate the intent of the parties, in which case this Agreement will immediately terminate.
12. INTEGRATION. This Agreement is the entire agreement between you and Oracle relating to its subject matter. It supersedes all prior or contemporaneous oral or written communications, proposals, representations and warranties and prevails over any conflicting or additional terms of any quote, order, acknowledgment, or other communication between the parties relating to its subject matter during the term of this Agreement. No modification of this Agreement will be binding, unless in writing and signed by an authorized representative of each party.
SUPPLEMENTAL LICENSE TERMS
These Supplemental License Terms add to or modify the terms of the Binary Code License Agreement. Capitalized terms not defined in these Supplemental Terms shall have the same meanings ascribed to them in the Binary Code License Agreement. These Supplemental Terms shall supersede any inconsistent or conflicting terms in the Binary Code License Agreement, or in any license contained within the Software.
A. COMMERCIAL FEATURES. You may not use the Commercial Features for running Programs, Java applets or applications in your internal business operations or for any commercial or production purpose, or for any purpose other than as set forth in Sections B, C, D and E of these Supplemental Terms. If You want to use the Commercial Features for any purpose other than as permitted in this Agreement, You must obtain a separate license from Oracle.
B. SOFTWARE INTERNAL USE FOR DEVELOPMENT LICENSE GRANT. Subject to the terms and conditions of this Agreement and restrictions and exceptions set forth in the README File incorporated herein by reference, including, but not limited to the Java Technology Restrictions of these Supplemental Terms, Oracle grants you a non-exclusive, non-transferable, limited license without fees to reproduce internally and use internally the Software complete and unmodified for the purpose of designing, developing, and testing your Programs.
C. LICENSE TO DISTRIBUTE SOFTWARE. Subject to the terms and conditions of this Agreement and restrictions and exceptions set forth in the README File, including, but not limited to the Java Technology Restrictions and Limitations on Redistribution of these Supplemental Terms, Oracle grants you a non-exclusive, non-transferable, limited license without fees to reproduce and distribute the Software, provided that (i) you distribute the Software complete and unmodified and only bundled as part of, and for the sole purpose of running, your Programs, (ii) the Programs add significant and primary functionality to the Software, (iii) you do not distribute additional software intended to replace any component(s) of the Software, (iv) you do not remove or alter any proprietary legends or notices contained in the Software, (v) you only distribute the Software subject to a license agreement that: (a) is a complete, unmodified reproduction of this Agreement; or (b) protects Oracle's interests consistent with the terms contained in this Agreement and that includes the notice set forth in Section H, and (vi) you agree to defend and indemnify Oracle and its licensors from and against any damages, costs, liabilities, settlement amounts and/or expenses (including attorneys' fees) incurred in connection with any claim, lawsuit or action by any third party that arises or results from the use or distribution of any and all Programs and/or Software. The license set forth in this Section C does not extend to the Software identified in Section G.
D. LICENSE TO DISTRIBUTE REDISTRIBUTABLES. Subject to the terms and conditions of this Agreement and restrictions and exceptions set forth in the README File, including but not limited to the Java Technology Restrictions and Limitations on Redistribution of these Supplemental Terms, Oracle grants you a non-exclusive, non-transferable, limited license without fees to reproduce and distribute those files specifically identified as redistributable in the README File ("Redistributables") provided that: (i) you distribute the Redistributables complete and unmodified, and only bundled as part of Programs, (ii) the Programs add significant and primary functionality to the Redistributables, (iii) you do not distribute additional software intended to supersede any component(s) of the Redistributables (unless otherwise specified in the applicable README File), (iv) you do not remove or alter any proprietary legends or notices contained in or on the Redistributables, (v) you only distribute the Redistributables pursuant to a license agreement that: (a) is a complete, unmodified reproduction of this Agreement; or (b) protects Oracle's interests consistent with the terms contained in the Agreement and includes the notice set forth in Section H, (vi) you agree to defend and indemnify Oracle and its licensors from and against any damages, costs, liabilities, settlement amounts and/or expenses (including attorneys' fees) incurred in connection with any claim, lawsuit or action by any third party that arises or results from the use or distribution of any and all Programs and/or Software. The license set forth in this Section D does not extend to the Software identified in Section G.
E. DISTRIBUTION BY PUBLISHERS. This section pertains to your distribution of the JavaTM SE Development Kit Software (“JDK”) with your printed book or magazine (as those terms are commonly used in the industry) relating to Java technology ("Publication"). Subject to and conditioned upon your compliance with the restrictions and obligations contained in the Agreement, Oracle hereby grants to you a non-exclusive, nontransferable limited right to reproduce complete and unmodified copies of the JDK on electronic media (the "Media") for the sole purpose of inclusion and distribution with your Publication(s), subject to the following terms: (i) You may not distribute the JDK on a stand-alone basis; it must be distributed with your Publication(s); (ii) You are responsible for downloading the JDK from the applicable Oracle web site; (iii) You must refer to the JDK as JavaTM SE Development Kit; (iv) The JDK must be reproduced in its entirety and without any modification whatsoever (including with respect to all proprietary notices) and distributed with your Publication subject to a license agreement that is a complete, unmodified reproduction of this Agreement; (v) The Media label shall include the following information: “Copyright [YEAR], Oracle America, Inc. All rights reserved. Use is subject to license terms. ORACLE and JAVA trademarks and all ORACLE- and JAVA-related trademarks, service marks, logos and other brand designations are trademarks or registered trademarks of Oracle in the U.S. and other countries.” [YEAR] is the year of Oracle's release of the Software; the year information can typically be found in the Softwares “About” box or screen. This information must be placed on the Media label in such a manner as to only apply to the JDK; (vi) You must clearly identify the JDK as Oracle's product on the Media holder or Media label, and you may not state or imply that Oracle is responsible for any third-party software contained on the Media; (vii) You may not include any third party software on the Media which is intended to be a replacement or substitute for the JDK; (viii) You agree to defend and indemnify Oracle and its licensors from and against any damages, costs, liabilities, settlement amounts and/or expenses (including attorneys' fees) incurred in connection with any claim, lawsuit or action by any third party that arises or results from the use or distribution of the JDK and/or the Publication; ; and (ix) You shall provide Oracle with a written notice for each Publication; such notice shall include the following information: (1) title of Publication, (2) author(s), (3) date of Publication, and (4) ISBN or ISSN numbers. Such notice shall be sent to Oracle America, Inc., 500 Oracle Parkway, Redwood Shores, California 94065 U.S.A , Attention: General Counsel.
F. JAVA TECHNOLOGY RESTRICTIONS. You may not create, modify, or change the behavior of, or authorize your licensees to create, modify, or change the behavior of, classes, interfaces, or subpackages that are in any way identified as "java", "javax", "sun", “oracle” or similar convention as specified by Oracle in any naming convention designation.
G. LIMITATIONS ON REDISTRIBUTION. You may not redistribute or otherwise transfer: (a) JavaFX Runtime prior to version 2.0.2, (b) JavaFX Development Kit prior to version 2.0.2, or (c) any and all patches, bug fixes and updates made available by Oracle through Oracle Premier Support, including those made available under Oracle's Java SE Support program.
H. COMMERCIAL FEATURES NOTICE. For purpose of complying with Supplemental Term Section C.(v)(b) and D.(v)(b), your license agreement shall include the following notice, where the notice is displayed in a manner that anyone using the Software will see the notice:
Use of the Commercial Features for any commercial or production purpose requires a separate license from Oracle. “Commercial Features” means those features identified Table 1-1 (Commercial Features In Java SE Product Editions) of the Java SE documentation accessible at http://www.oracle.com/technetwork/java/javase/documentation/index.html
I. SOURCE CODE. Software may contain source code that, unless expressly licensed for other purposes, is provided solely for reference purposes pursuant to the terms of this Agreement. Source code may not be redistributed unless expressly provided for in this Agreement.
J. THIRD PARTY CODE. Additional copyright notices and license terms applicable to portions of the Software are set forth in the THIRDPARTYLICENSEREADME file accessible at http://www.oracle.com/technetwork/java/javase/documentation/index.html. In addition to any terms and conditions of any third party opensource/freeware license identified in the THIRDPARTYLICENSEREADME file, the disclaimer of warranty and limitation of liability provisions in paragraphs 4 and 5 of the Binary Code License Agreement shall apply to all Software in this distribution.
K. TERMINATION FOR INFRINGEMENT. Either party may terminate this Agreement immediately should any Software become, or in either party's opinion be likely to become, the subject of a claim of infringement of any intellectual property right.
L. INSTALLATION AND AUTO-UPDATE. The Software's installation and auto-update processes transmit a limited amount of data to Oracle (or its service provider) about those specific processes to help Oracle understand and optimize them. Oracle does not associate the data with personally identifiable information. You can find more information about the data Oracle collects as a result of your Software download at http://www.oracle.com/technetwork/java/javase/documentation/index.html.
For inquiries please contact:
Oracle America, Inc., 500 Oracle Parkway,
Redwood Shores, California 94065, USA.
Last updated 2 July 2012

View File

View File

@@ -0,0 +1,761 @@
%define JRE_NSVER 8
%define pkgver %(echo %version | tr _ -)
%define realver %(echo %version | cut -d_ -f1)
%define MAJOR %(echo %realver | cut -du -f1)
%define MINOR %(echo %realver | cut -du -f2)
%define major 1.%{MAJOR}
%define minor 0
%define origin sun
%define javaver %{major}.%{minor}
%define jppname java-%{javaver}-%{origin}
%define javaws_ver %{javaver}
%define toplevel_dir jdk%{javaver}_%{MINOR}
%define distversion %{realver}
%define label -%{name}
%define jdklnk jdk8-%{origin}
%define jrelnk jre8-%{origin}
%define jdkdir %{jppname}
%define jredir %{jdkdir}/jre
%define jdkbindir %{_jvmdir}/%{jdklnk}/bin
%define jdklibdir %{_jvmdir}/%{jdklnk}/lib
%define jrebindir %{_jvmdir}/%{jrelnk}/bin
%define jvmjardir %{_jvmjardir}/%{jppname}
%define cgibindir %{_var}/www/cgi-bin
Name: sun-java8
Version: @SRPMVERSION@
Release: @SRPMRELEASE@
Epoch: 1
Summary: Sun Java Developer's Kit
Group: System/Libraries/Java
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://www.oracle.com/technetwork/java/javase/overview/index.html
Source: LICENSE
BuildRequires: jpackage-utils
Provides: jdk = %{realver}
Provides: jdk2 = %{realver}
License: Oracle Binary Code License
Requires: shared-mime-info
Requires: desktop-file-utils
Requires: sun-java8-runtime = %{epoch}:%{version}-%{release}
Requires: menu-java
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
Sun Java Developer's Kit.
%package runtime
Summary: Sun Java Platform Runtime Environment
Group: System/Libraries/Java
#Obsoletes: j2re
Provides: j2re = %{realver}
Provides: jre = %{realver}
%description runtime
Sun Java Platform Runtime Environment.
%prep
[ "%{toplevel_dir}" != / ] && rm -rf "%{toplevel_dir}"
%setup -q -T -c
DOWNLOAD_FRAGMENT=`curl --max-time 20 -sL http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html|grep "Linux x86.*i586.tar.gz"|tail -n1|sed "s|.*/java/jdk/\(.*\)/jdk-.*|\1|"`
#echo yes | MORE=10000
%ifarch %{ix86}
wget -nv --tries=2 --no-cookies --header \
"Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie" \
http://download.oracle.com/otn-pub/java/jdk/${DOWNLOAD_FRAGMENT}/jdk-%{realver}-linux-i586.tar.gz
tar xf jdk-%{realver}-linux-i586.tar.gz
%endif
%ifarch x86_64
wget -nv --tries=2 --no-cookies --header \
"Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie" \
http://download.oracle.com/otn-pub/java/jdk/${DOWNLOAD_FRAGMENT}/jdk-%{realver}-linux-x64.tar.gz
tar xf jdk-%{realver}-linux-x64.tar.gz
%endif
%ifarch arm
wget -nv --tries=2 --no-cookies --header \
"Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie" \
http://download.oracle.com/otn-pub/java/jdk/${DOWNLOAD_FRAGMENT}/jdk-%{realver}-linux-arm-vfp-sflt.tar.gz
tar xf jdk-%{realver}-linux-arm-sfp.tar.gz
%endif
cd %{toplevel_dir}
#cp %{SOURCE5} ./construct.sh
#mkdir unbundle-jdk
#cd unbundle-jdk
#sh %{SOURCE0} --accept-license
chmod -R u+w *
#for pack in $(find . -name "*.pack"); do
# bin/unpack200 $pack $(echo $pack | sed -e s:.pack::g).jar
#done
%install
cd %{toplevel_dir}
#construct.sh unbundle-jdk linux-jdk linux-jre
install -d -m 755 %{buildroot}%{_jvmdir}/%{jdkdir}
install -d -m 755 %{buildroot}%{_jvmdir}/%{jredir}
cat > bin/HtmlConverter << EOF
%{jrebindir}/java -jar %{jdklibdir}/htmlconverter.jar $*
EOF
sed -i "s|PATH=.*|PATH=%{jrebindir}|" bin/java-rmi.cgi
# main
cp -a bin include lib src.zip %{buildroot}%{_jvmdir}/%{jdkdir}
# extensions
install -d -m 755 %{buildroot}%{jvmjardir}
pushd %{buildroot}%{jvmjardir}
ln -s %{_jvmdir}/%{jredir}/lib/jsse.jar jsse-%{javaver}.jar
ln -s %{_jvmdir}/%{jredir}/lib/jce.jar jce-%{javaver}.jar
ln -s %{_jvmdir}/%{jredir}/lib/rt.jar jndi-%{javaver}.jar
ln -s %{_jvmdir}/%{jredir}/lib/rt.jar jndi-ldap-%{javaver}.jar
ln -s %{_jvmdir}/%{jredir}/lib/rt.jar jndi-cos-%{javaver}.jar
ln -s %{_jvmdir}/%{jredir}/lib/rt.jar jndi-rmi-%{javaver}.jar
ln -s %{_jvmdir}/%{jredir}/lib/rt.jar jaas-%{javaver}.jar
ln -s %{_jvmdir}/%{jredir}/lib/rt.jar jdbc-stdext-%{javaver}.jar
ln -s jdbc-stdext-%{javaver}.jar jdbc-stdext-3.0.jar
ln -s %{_jvmdir}/%{jredir}/lib/rt.jar sasl-%{javaver}.jar
# ln -s %{_jvmdir}/%{jredir}/lib/rt.jar xml-commons-apis.jar
for jar in *-%{javaver}.jar ; do
#if [ %{realver} != %{javaver} ]; then
#ln -fs ${jar} $(echo $jar | sed "s|-%{realver}.jar|-%{javaver}.jar|g")
#fi
ln -fs ${jar} $(echo $jar | sed "s|-%{javaver}.jar|.jar|g")
done
popd
# rest of jre
cp -a jre/bin jre/lib %{buildroot}%{_jvmdir}/%{jredir}
#cp -a jre/javaws %{buildroot}%{_jvmdir}/%{jredir}
%ifnarch arm
cp -a jre/plugin %{buildroot}%{_jvmdir}/%{jredir}
%endif
# see <http://www.java.com/it/download/help/5000010500.xml#install>
mkdir -p %{buildroot}%{_datadir}/pixmaps
mkdir -p %{buildroot}%{_datadir}/icons/mini
%ifnarch arm
install -m 644 jre/plugin/desktop/%{origin}_java.png \
%{buildroot}%{_datadir}/pixmaps/%{name}.png
ln -s %{_datadir}/pixmaps/%{name}.png %{buildroot}%{_datadir}/icons/mini/%{name}.png
install -d %{buildroot}%{_libdir}/mozilla/plugins
%endif
%ifarch %{ix86}
ln -s %{_jvmdir}/%{jredir}/plugin/i386/ns%{JRE_NSVER}/libjavaplugin_oji.so \
%{buildroot}%{_libdir}/mozilla/plugins/libjava8plugin_oji.so
ln -s %{_jvmdir}/%{jredir}/plugin/i386/ns%{JRE_NSVER}/libjavaplugin_oji.so \
%{buildroot}%{_libdir}/mozilla/plugins/libjava8plugin.so
ln -s %{_jvmdir}/%{jredir}/lib/i386/libjavaplugin_jni.so \
%{buildroot}%{_libdir}/mozilla/plugins/libjava8plugin_jni.so
ln -s %{_jvmdir}/%{jredir}/lib/i386/libjavaplugin_nscp.so \
%{buildroot}%{_libdir}/mozilla/plugins/libjava8plugin_nscp.so
ln -s %{_jvmdir}/%{jredir}/lib/i386/libnpjp2.so \
%{buildroot}%{_libdir}/mozilla/plugins/libnpjp2-8.so
%endif
%ifarch x86_64
ln -s %{_jvmdir}/%{jredir}/lib/amd64/libjavaplugin_jni.so \
%{buildroot}%{_libdir}/mozilla/plugins/libjava8plugin_jni.so
ln -s %{_jvmdir}/%{jredir}/lib/amd64/libnpjp2.so \
%{buildroot}%{_libdir}/mozilla/plugins/libnpjp2-8.so
%endif
install -d -m 755 %{buildroot}%{_jvmprivdir}/%{name}/jce/vanilla
for file in local_policy.jar US_export_policy.jar; do
mv %{buildroot}%{_jvmdir}/%{jredir}/lib/security/$file \
%{buildroot}%{_jvmprivdir}/%{name}/jce/vanilla
# for ghosts
touch %{buildroot}%{_jvmdir}/%{jredir}/lib/security/$file
done
pushd %{buildroot}%{_jvmdir}
ln -s %{jredir} %{jrelnk}
ln -s %{jdkdir} %{jdklnk}
popd
pushd %{buildroot}%{_jvmjardir}
ln -s %{jdkdir} %{jrelnk}
ln -s %{jdkdir} %{jdklnk}
popd
mkdir -p %{buildroot}%{_mandir}/man1
for manpage in man/man1/*; do
install -m 644 -p $manpage \
%{buildroot}%{_mandir}/man1/`basename $manpage .1`-%{origin}8.1
done
mkdir -p %{buildroot}%{_jvmdir}/%{jdkdir}
#cp -a demo sample %{buildroot}%{_jvmdir}/%{jdkdir}
mkdir -p %{buildroot}%{_datadir}/mime/packages/
mkdir -p %{buildroot}%{_datadir}/applications
%ifnarch arm
for style in hicolor HighContrast HighContrastInverse LowContrast; do
for size in 16 48; do
for kind in apps mimetypes; do
mkdir -p %{buildroot}%{_datadir}/icons/$style/${size}x${size}/$kind
install -m 644 jre/lib/desktop/icons/$style/${size}x${size}/$kind/*.png \
%{buildroot}%{_datadir}/icons/$style/${size}x${size}/$kind
done
done
done
rm -rf %{buildroot}%{_datadir}/icons/hicolor/48x48/mimetypes/gnome-mime-text-x-java.png
rm -rf %{buildroot}%{_datadir}/icons/hicolor/16x16/mimetypes/gnome-mime-text-x-java.png
cp -a jre/lib/desktop/mime/packages/* %{buildroot}%{_datadir}/mime/packages/
cp -a jre/lib/desktop/applications/%{origin}-java.desktop %{buildroot}%{_datadir}/applications/%{name}.desktop
mkdir -p %{buildroot}%{_datadir}/applications
if [ -e %{buildroot}%{_jvmdir}/%{jdkdir}/bin/jvisualvm ]; then
cat >> %{buildroot}%{_datadir}/applications/%{name}-jvisualvm.desktop << EOF
[Desktop Entry]
Name=Java VisualVM (%{name})
Comment=Java Virtual Machine Monitoring, Troubleshooting, and Profiling Tool
Exec=%{_jvmdir}/%{jdkdir}/bin/jvisualvm
Icon=%{_datadir}/icons/hicolor/48x48/apps/%{name}.png
Terminal=false
Type=Application
Categories=Development;Profiling;
EOF
fi
# ControlPanel freedesktop.org menu entry
cat > %{buildroot}%{_datadir}/applications/%{name}-jcontrol.desktop << EOF
[Desktop Entry]
Name=Java Plugin Control Panel (%{name})
Comment=Java Control Panel
Exec=%{_jvmdir}/%{jdkdir}/bin/jcontrol
Icon=%{_datadir}/icons/hicolor/48x48/apps/sun-jcontrol.png
Terminal=false
Type=Application
Categories=Settings;Java;
EOF
# javaws freedesktop.org menu entry
cat > %{buildroot}%{_datadir}/applications/%{name}-javaws.desktop << EOF
[Desktop Entry]
Name=Java Web Start (%{name})
Comment=Java Application Launcher
MimeType=application/x-java-jnlp-file;
Exec=%{_jvmdir}/%{jredir}/bin/javaws %%u
Icon=%{_datadir}/icons/hicolor/48x48/apps/sun-javaws.png
Terminal=false
Type=Application
Categories=Settings;Java;
EOF
%endif
mkdir -p %{buildroot}%{_datadir}/fonts/ttf/j2se-%{origin}
mkdir -p %{buildroot}%{_datadir}/fonts/ttf/j2se-%{origin}-oblique
# move the fonts into a shared fonts directory
install -m 644 jre/lib/fonts/*.ttf \
%{buildroot}%{_datadir}/fonts/ttf/j2se-%{origin}
install -m 644 jre/lib/oblique-fonts/*.ttf \
%{buildroot}%{_datadir}/fonts/ttf/j2se-%{origin}-oblique
rm -rf %{buildroot}%{_jvmdir}/%{jredir}/lib/fonts
rm -rf %{buildroot}%{_jvmdir}/%{jredir}/lib/oblique-fonts
ln -s ../../../../../share/fonts/ttf/j2se-%{origin} \
%{buildroot}%{_jvmdir}/%{jredir}/lib/fonts
ln -s ../../../../../share/fonts/ttf/j2se-%{origin}-oblique \
%{buildroot}%{_jvmdir}/%{jredir}/lib/oblique-fonts
#install -d %{buildroot}%{_sysconfdir}/profile.d
#sed -i "s|__JDK__PREFIX__|%{_jvmdir}|" %{S:3}
#sed -i "s|__JRE__PREFIX__|%{_jvmdir}%{jrelnk}|" %{S:4}
#install -m0755 %{S:3} %{buildroot}%{_sysconfdir}/profile.d/%{jdklnk}.sh
#install -m0755 %{S:4} %{buildroot}%{_sysconfdir}/profile.d/%{jrelnk}.sh
mkdir %{buildroot}%{_javadir}-%{javaver}
mkdir %{buildroot}%{_jnidir}-%{javaver}
## FIXME: temporary workaround to provide openjdk (required by ooobuild-3.1.0.6 odk patch)
#ln -s %{jdkdir} %{buildroot}%{_libdir}/jvm/java-%{MAJOR}-openjdk
pushd %{buildroot}%{_jvmdir}/%{jredir}/lib
for l in *.jar; do
ln -s ../jre/lib/$l %{buildroot}%{_jvmdir}/%{jdkdir}/lib/$l
done
install -d -m 0755 %{buildroot}%{_jvmdir}/%{jredir}/.systemPrefs
touch %{buildroot}%{_jvmdir}/%{jredir}/.systemPrefs/.systemRootModFile
#for file in %{buildroot}%{_jvmdir}/%{jdkdir}/bin/* %{buildroot}%{_jvmdir}/%{jredir}/bin/*
#do
# chrpath --list $file && chrpath --delete $file || :
#done
#for file in $(find %{buildroot}%{_jvmdir}/%{jdkdir}/demo -name "*.so")
#do
# chrpath --list $file && chrpath --delete $file || :
#done
#for file in $(find %{buildroot}%{_jvmdir}/%{jredir}/lib -name "*.so")
#do
# chrpath --list $file && chrpath --delete $file || :
#done
# Remove requirements missing ffmpeg libraries
rm -f %{buildroot}%{_jvmdir}/%{jredir}/lib/*/libavplugin-ffmpeg-56.so
rm -f %{buildroot}%{_jvmdir}/%{jredir}/lib/*/libavplugin-53.so
rm -f %{buildroot}%{_jvmdir}/%{jredir}/lib/*/libavplugin-54.so
rm -f %{buildroot}%{_jvmdir}/%{jredir}/lib/*/libavplugin-56.so
%clean
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
rm -rf %{_builddir}/%{name}-*
:
%pre
if [ $1 -ge 1 ]; then
# legacy cleanups
for b in javac jar; do
/usr/sbin/update-alternatives --remove $b \
/opt/java/jdk/bin/$b 2>/dev/null
done
fi
:
%post
if [ $1 -ge 1 ]; then
# new install
if ! echo ${PATH} | grep -q %{_jredir}/bin; then
export PATH="$PATH:%{_jredir}/bin"
fi
for b in javac jar; do
[ -L %{_bindir}/$b -a "`readlink %{_bindir}/$b`" != "%{_sysconfdir}/alternatives/$b" ] &&
rm -f %{_bindir}/$b
%{_sbindir}/update-alternatives \
--install %{_bindir}/$b $b \
%{_jvmdir}/%{jdklnk}/bin/$b 56
done
%{_sbindir}/update-alternatives \
--install %{_jvmdir}/jdk jdk \
%{_jvmdir}/%{jdklnk} 56
%{_sbindir}/update-alternatives \
--install %{_jvmjardir}/jdk jdk-exports \
%{_jvmjardir}/%{jdklnk} 56
fi
:
%preun
if [ $1 -eq 0 ]; then
for b in javac jar; do
%{_sbindir}/update-alternatives --remove $b \
%{_jvmdir}/%{jdklnk}/bin/$b
done
%{_sbindir}/update-alternatives --remove jdk \
%{_jvmdir}/%{jdklnk}
%{_sbindir}/update-alternatives --remove jdk-exports \
%{_jvmjardir}/%{jdklnk}
fi
:
%pre runtime
if [ $1 -ge 1 ]; then
[ -L %{_jvmdir}/%{jredir}/lib/fonts ] || rm -rf %{_jvmdir}/%{jredir}/lib/fonts
[ -L %{_jvmdir}/%{jredir}/lib/oblique-fonts ] || rm -rf %{_jvmdir}/%{jredir}/lib/oblique-fonts
[ -e %{_jvmdir}/%{jrelnk} ] && rm -rf %{_jvmdir}/%{jrelnk}
[ -L %{_bindir}/java -a "`readlink %{_bindir}/java`" != "%{_sysconfdir}/alternatives/java" ] &&
rm -f %{_bindir}/java
if [ -d /opt/java/jre ]; then
# legacy cleanups
%{_sbindir}/update-alternatives --remove java \
/opt/java/jre/bin/java 2>/dev/null
fi
%{_sbindir}/update-alternatives \
--install %{_bindir}/java java \
%{_jvmdir}/%{jrelnk}/bin/java 56
%{_sbindir}/update-alternatives \
--install %{_jvmdir}/jre jre \
%{_jvmdir}/%{jrelnk} 56
%{_sbindir}/update-alternatives \
--install %{_jvmjardir}/jre jre-exports \
%{_jvmjardir}/%{jrelnk} 56
fi
:
%post runtime
if [ -x %{_bindir}/fc-cache ]; then
%{_bindir}/fc-cache %{_datadir}/fonts/ttf/j2se-%{origin}
%{_bindir}/fc-cache %{_datadir}/fonts/ttf/j2se-%{origin}-oblique
fi
if ! echo ${PATH} | grep -q %{_jvmdir}/jre/bin; then
export PATH="$PATH: %{_jvmdir}/jre/bin"
fi
if [ -d %{_jvmdir}/%{jrelnk}/lib/security ]; then
# Need to remove the old jars in order to support upgrading
# update-alternatives fails silently if the link targets exist as files
rm -f %{_jvmdir}/%{jrelnk}/lib/security/{local,US_export}_policy.jar
fi
%{_sbindir}/update-alternatives \
--install %{_jvmdir}/%{jredir}/lib/oblique-fonts \
oblique_fonts_%{javaver}_%{origin} %{_datadir}/fonts/ttf/j2se-%{origin}-oblique 56
%{_sbindir}/update-alternatives \
--install %{_jvmdir}/%{jredir}/lib/fonts fonts_%{javaver}_%{origin} \
%{_datadir}/fonts/ttf/j2se-%{origin} 56
%{_sbindir}/update-alternatives \
--install %{_jvmdir}/%{jrelnk}/lib/security/local_policy.jar \
jce_%{javaver}_%{origin}_local_policy %{_jvmprivdir}/%{name}/jce/vanilla/local_policy.jar 56
%{_sbindir}/update-alternatives \
--install %{_jvmdir}/%{jrelnk}/lib/security/US_export_policy.jar \
jce_%{javaver}_%{origin}_us_export_policy %{_jvmprivdir}/%{name}/jce/vanilla/US_export_policy.jar 56
:
%preun runtime
if [ $1 -eq 0 ]; then
%{_sbindir}/update-alternatives --remove java \
%{_jvmdir}/%{jrelnk}/bin/java
%{_sbindir}/update-alternatives --remove jre \
%{_jvmdir}/%{jrelnk}
%{_sbindir}/update-alternatives --remove jre-exports \
%{_jvmjardir}/%{jrelnk}
fi
:
%postun runtime
if [ $1 -eq 0 ]; then
if [ -x %{_bindir}/fc-cache ]; then
%{_bindir}/fc-cache --system-only
fi
%{_sbindir}/update-alternatives \
--remove jce_%{javaver}_%{origin}_local_policy \
%{_jvmprivdir}/%{name}/jce/vanilla/local_policy.jar
%{_sbindir}/update-alternatives \
--remove oblique_fonts_%{javaver}_%{origin} \
%{_datadir}/fonts/ttf/j2se-%{origin}-oblique
%{_sbindir}/update-alternatives \
--remove fonts_%{javaver}_%{origin} \
%{_datadir}/fonts/ttf/j2se-%{origin}
fi
:
%files
%defattr(-,root,root)
#%{_sysconfdir}/profile.d/%{jdklnk}.sh
%{_jvmdir}/%{jdklnk}
%{_jvmjardir}/%{jdklnk}
%{_jvmdir}/%{jdkdir}/bin
#%{_jvmdir}/%{jdkdir}/db
#%{_jvmdir}/%{jdkdir}/demo
%{_jvmdir}/%{jdkdir}/lib
%{_jvmdir}/%{jdkdir}/include
#%{_jvmdir}/%{jdkdir}/sample
%{_jvmdir}/%{jdkdir}/src.zip
%dir %{_javadir}-%{javaver}
%dir %{_jnidir}-%{javaver}
%{_mandir}/man1/appletviewer-sun8.1*
#%{_mandir}/man1/apt-sun8.1*
%{_mandir}/man1/extcheck-sun8.1*
%{_mandir}/man1/idlj-sun8.1*
%{_mandir}/man1/jar-sun8.1*
%{_mandir}/man1/jarsigner-sun8.1*
%{_mandir}/man1/javac-sun8.1*
%{_mandir}/man1/javadoc-sun8.1*
%ifnarch arm
%{_mandir}/man1/javafxpackager-sun8.1*
%endif
%{_mandir}/man1/javah-sun8.1*
%{_mandir}/man1/javap-sun8.1*
%{_mandir}/man1/javapackager-sun8.1*
%{_mandir}/man1/jdeps-sun8.1*
%{_mandir}/man1/jjs-sun8.1*
%{_mandir}/man1/jcmd-sun8.1*
%{_mandir}/man1/jconsole-sun8.1*
%{_mandir}/man1/jdb-sun8.1*
%{_mandir}/man1/jhat-sun8.1*
%{_mandir}/man1/jinfo-sun8.1*
%{_mandir}/man1/jmap-sun8.1*
%{_mandir}/man1/jmc-sun8.1*
%{_mandir}/man1/jps-sun8.1*
%{_mandir}/man1/jrunscript-sun8.1*
%{_mandir}/man1/jsadebugd-sun8.1*
%{_mandir}/man1/jstack-sun8.1*
%{_mandir}/man1/jstat-sun8.1*
%{_mandir}/man1/jstatd-sun8.1*
%{_mandir}/man1/jvisualvm-sun8.1*
%{_mandir}/man1/native2ascii-sun8.1*
%{_mandir}/man1/policytool-sun8.1*
%{_mandir}/man1/rmic-sun8.1*
%{_mandir}/man1/schemagen-sun8.1*
%{_mandir}/man1/serialver-sun8.1*
%{_mandir}/man1/wsgen-sun8.1*
%{_mandir}/man1/wsimport-sun8.1*
%{_mandir}/man1/xjc-sun8.1*
%doc %{toplevel_dir}/COPYRIGHT %{toplevel_dir}/LICENSE
%doc %{toplevel_dir}/THIRDPARTYLICENSEREADME.txt
# %{toplevel_dir}/README*
%files runtime
%defattr(-,root,root)
#%{_sysconfdir}/profile.d/%{jrelnk}.sh
%dir %{_jvmdir}/%{jdkdir}
%dir %{_jvmdir}/%{jredir}
%dir %{_jvmdir}/%{jredir}/lib
%{_jvmdir}/%{jredir}/lib/*.jar
%{_jvmdir}/%{jredir}/lib/*.properties*
%{_jvmdir}/%{jredir}/lib/fontconfig*.bfc
%{_jvmdir}/%{jredir}/lib/classlist
%{_jvmdir}/%{jredir}/lib/jexec
%{_jvmdir}/%{jredir}/lib/*.txt
%{_jvmdir}/%{jredir}/lib/meta-index
#%{_jvmdir}/%{jredir}/lib/audio
%{_jvmdir}/%{jredir}/lib/cmm
%ifnarch arm
%{_jvmdir}/%{jredir}/lib/deploy
%{_jvmdir}/%{jredir}/lib/desktop
%{_jvmdir}/%{jredir}/lib/locale
%endif
%{_jvmdir}/%{jredir}/lib/ext
%ifarch %{ix86}
%{_jvmdir}/%{jredir}/lib/i386
%endif
%ifarch x86_64
%{_jvmdir}/%{jredir}/lib/amd64
%endif
%ifarch arm
%{_jvmdir}/%{jredir}/lib/arm
%endif
#%{_jvmdir}/%{jredir}/lib/im
%{_jvmdir}/%{jredir}/lib/images
%{_jvmdir}/%{jredir}/lib/management
%dir %{_jvmdir}/%{jredir}/lib/security
%config(noreplace) %{_jvmdir}/%{jredir}/lib/security/cacerts
%config(noreplace) %{_jvmdir}/%{jredir}/lib/security/java.policy
%config(noreplace) %{_jvmdir}/%{jredir}/lib/security/blacklisted.certs
%config(noreplace) %{_jvmdir}/%{jredir}/lib/security/java.security
%ifnarch arm
#%config(noreplace) %{_jvmdir}/%{jredir}/lib/security/javafx.policy
%config(noreplace) %{_jvmdir}/%{jredir}/lib/security/javaws.policy
%endif
%{_jvmdir}/%{jredir}/lib/tzdb.dat
%config(noreplace) %{_jvmdir}/%{jredir}/lib/security/blacklist
%config(noreplace) %{_jvmdir}/%{jredir}/lib/security/trusted.libraries
%ghost %{_jvmdir}/%{jredir}/lib/security/local_policy.jar
%ghost %{_jvmdir}/%{jredir}/lib/security/US_export_policy.jar
%dir %{_jvmdir}/%{jredir}/lib/jfr
%{_jvmdir}/%{jredir}/lib/jfr/*
%{_jvmdir}/%{jredir}/lib/currency.data
#%{_jvmdir}/%{jredir}/lib/servicetag
%{_jvmdir}/%{jredir}/.systemPrefs
#%{_jvmdir}/%{jredir}/lib/zi
%{_jvmdir}/%{jredir}/lib/fonts
%{_jvmdir}/%{jredir}/lib/oblique-fonts
%dir %{_jvmprivdir}/%{name}
%dir %{_jvmprivdir}/%{name}/jce
%dir %{_jvmprivdir}/%{name}/jce/vanilla
%config(noreplace) %{_jvmprivdir}/%{name}/jce/vanilla/US_export_policy.jar
%config(noreplace) %{_jvmprivdir}/%{name}/jce/vanilla/local_policy.jar
%{_jvmdir}/%{jredir}/bin
#%{_jvmdir}/%{jredir}/javaws
#%{_jvmdir}/%{jredir}/lib
%ifnarch arm
%{_jvmdir}/%{jredir}/plugin
%endif
%{_jvmdir}/%{jrelnk}
%{_jvmjardir}/%{jrelnk}
%{_jvmjardir}/%{jppname}/jaas*.jar
%{_jvmjardir}/%{jppname}/jce*jar
%{_jvmjardir}/%{jppname}/jdbc-stdext*jar
%{_jvmjardir}/%{jppname}/jndi*.jar
%{_jvmjardir}/%{jppname}/jsse*.jar
%{_jvmjardir}/%{jppname}/sasl*.jar
#%{_jvmjardir}/%{jppname}/xml-commons-apis.jar
%ifnarch arm
%{_libdir}/mozilla/plugins/libjava8plugin*.so
%{_libdir}/mozilla/plugins/libnpjp2-8.so
%{_datadir}/applications/%{name}.desktop
%{_datadir}/applications/%{name}-javaws.desktop
%{_datadir}/applications/%{name}-jcontrol.desktop
%{_datadir}/applications/%{name}-jvisualvm.desktop
%{_datadir}/icons/*/*x*/*/*.png
%{_datadir}/icons/mini/%{name}.png
%{_datadir}/mime/packages/x-java-*.xml
%{_datadir}/pixmaps/%{name}.png
%endif
%dir %{_datadir}/fonts/ttf/j2se-sun-oblique
%{_datadir}/fonts/ttf/j2se-sun-oblique/*.ttf
%dir %{_datadir}/fonts/ttf/j2se-sun
%{_datadir}/fonts/ttf/j2se-sun/*.ttf
%{_mandir}/man1/java-sun8.1*
%{_mandir}/man1/javaws-sun8.1*
%{_mandir}/man1/keytool-sun8.1*
%{_mandir}/man1/orbd-sun8.1*
%{_mandir}/man1/pack200-sun8.1*
%{_mandir}/man1/rmid-sun8.1*
%{_mandir}/man1/rmiregistry-sun8.1*
%{_mandir}/man1/servertool-sun8.1*
%{_mandir}/man1/tnameserv-sun8.1*
%{_mandir}/man1/unpack200-sun8.1*
%doc %{toplevel_dir}/jre/COPYRIGHT %{toplevel_dir}/jre/LICENSE
%doc %{toplevel_dir}/jre/THIRDPARTYLICENSEREADME.txt
# %{toplevel_dir}/jre/README %{toplevel_dir}/jre/Welcome.html
%changelog
* Tue Sep 13 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 8u102_b14-1mamba
- update to java8
* Sat Oct 11 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 7u67_b01-1mamba
- fix x86_64 mozulla plugin symlinks
- support for pkg download code (b01) in version
* Fri Mar 26 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 7u51-2mamba
- update wget download string (see https://ivan-site.com/2012/05/download-oracle-java-jre-jdk-using-a-script/)
- dont' install fxavcodecplugin-52.so to remove dependencies on old libav library; fxavcodecplugin-53.so is provided requiring ffmpeg0
* Fri Jan 17 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 7u51-1mamba
- update to 7u51
* Sun Nov 03 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 7u45-1mamba
- update to 7u45
* Wed Apr 10 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 7u17-1mamba
- update to 7u17
* Sun Aug 19 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 7u6-2mamba
- rename to sun-java7
* Thu Aug 16 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 7u6-1mamba
- update to 7u6
* Tue Mar 27 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 6u26-2mamba
- don't obsolete jre and jdk
* Wed Jun 08 2011 Automatic Build System <autodist@mambasoft.it> 6u26-1mamba
- automatic update by autodist
* Wed Apr 27 2011 Automatic Build System <autodist@mambasoft.it> 6u25-1mamba
- automatic update by autodist
* Thu Feb 17 2011 Automatic Build System <autodist@mambasoft.it> 6u24-1mamba
- automatic update by autodist
* Wed Oct 13 2010 Automatic Build System <autodist@mambasoft.it> 6u22-1mamba
- automatic update to 6u22 by autodist
* Mon Jul 26 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 6u21-3mamba
- don't launch chrpath or executables won't find libraries because they are not in system path
* Wed Jul 21 2010 Stefano Cotta Ramusino <stefano.cotta@openmamba.org> 6u21-2mamba
- specfile fixes and cleanup
- fix broken fonts symlink
- edit %%post and %%postun runtime scripts
* Fri Jul 16 2010 Automatic Build System <autodist@mambasoft.it> 6u21-1mamba
- automatic update to 6u21 by autodist
* Mon Jun 14 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 6u20-2mamba
- link libnpjp2.so instead of libjavaplugin.so to /usr/lib/mozilla/plugins
* Fri Apr 16 2010 Automatic Build System <autodist@mambasoft.it> 6u20-1mamba
- automatic update to 6u20 by autodist
* Wed Mar 31 2010 Automatic Build System <autodist@mambasoft.it> 6u19-1mamba
- automatic update to 6u19 by autodist
* Thu Jan 21 2010 Automatic Build System <autodist@mambasoft.it> 6u18-1mamba
- automatic update to 6u18 by autodist
* Tue Nov 17 2009 Automatic Build System <autodist@mambasoft.it> 6u17-1mamba
- automatic update to 6u17 by autodist
* Wed Sep 23 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 6u16-2mamba
- fixed wrong symlink destination for jav for mozilla plugin files
* Mon Aug 17 2009 Automatic Build System <autodist@mambasoft.it> 6u16-1mamba
- automatic update to 6u16 by autodist
* Thu Aug 06 2009 Automatic Build System <autodist@mambasoft.it> 6u15-1mamba
- automatic update to 6u15 by autodist
* Mon Jul 13 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 6u14-2mamba
- create symlink of jre jar's into jdk lib directory
* Tue Jun 09 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 6u14-1mamba
- update to 6u14
* Fri Jun 05 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 6u13-4mamba
- manage /usr/lib/jvm/{jdk,jre} as alternatives
- remove profile files for setting JAVA_HOME (now handled by initscripts and alternatives)
* Thu Jun 04 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 6u13-3mamba
- added symlink in /usr/lib/jvm
* Mon Apr 20 2009 gil <puntogil@libero.it> 6u13-2mamba
- added requirement for menu-java
* Wed Mar 18 2009 gil <puntogil@libero.it> 6u13-1mamba
- update to 6u13
- edit spec file
* Tue Sep 23 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 6u7-1mamba
- automatic update to 6u7 by autodist
* Tue Mar 11 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 1.6.0-4mamba
- update to release 6u4
- manage /usr/bin/{java,javac,jar} using alternatives with priority 50
* Sat Apr 07 2007 Silvan Calarco <silvan.calarco@mambasoft.it> 1.6.0-3mamba
- install into /opt/java
* Mon Feb 26 2007 Silvan Calarco <silvan.calarco@mambasoft.it> 1.6.0-2qilnx
- check and handle a pre-existing /usr/java/jre%version dir
* Mon Feb 19 2007 Silvan Calarco <silvan.calarco@mambasoft.it> 1.6.0-1qilnx
- new build under the Operating System Distributor License for Java (DLJ 1.1)
* Fri Feb 02 2007 Davide Madrisan <davide.madrisan@qilinux.it> 1.5-1qilnx
- get download parameters from a sysconfig file
* Tue Oct 31 2006 Davide Madrisan <davide.madrisan@qilinux.it> 1.5.0-8qilnx
- specfile updated to donwload latest jre version (1.5.0_09)
* Wed Jul 12 2006 Davide Madrisan <davide.madrisan@qilinux.it> 1.5.0-7qilnx
- added "provides j2re" (needed by the limewire rpm)
* Mon Apr 03 2006 Davide Madrisan <davide.madrisan@qilinux.it> 1.5.0-6qilnx
- updated javaurl
* Thu Feb 02 2006 Davide Madrisan <davide.madrisan@qilinux.it> 1.5.0-5qilnx
- fixed symbolic link in %{_libdir}/mozilla/plugins
* Tue Aug 23 2005 Davide Madrisan <davide.madrisan@qilinux.it> 1.5.0-4qilnx
- specfile updates for last jre version (1.5.0_04)
* Thu Jul 07 2005 Silvan Calarco <silvan.calarco@mambasoft.it> 1.5.0-3qilnx
- remove %{javapath}/.systemPrefs if found
* Wed Apr 20 2005 Silvan Calarco <silvan.calarco@mambasoft.it> 1.5.0-2qilnx
- enable resume of download
- remove requirements and provides
* Wed Apr 20 2005 Silvan Calarco <silvan.calarco@mambasoft.it> 1.5.0-1qilnx
- specfile for new jre version (1.5.0)
- added automatic download and build support (this is a non distributable package)
* Mon Jul 12 2004 Silvan Calarco <silvan.calarco@mambasoft.it> 1.4.2-2qilnx
- create symlinks for browser plugins to /usr/lib/mozilla/plugins
* Mon Oct 13 2003 Silvan Calarco <silvan.calarco@mambasoft.it> 1.4.2-1qilnx
- first build

View File

@@ -40,21 +40,23 @@ wget -nv --timeout=10 --tries=2 \
declare -A SRPMVERSION SRPMRELEASE
. /etc/sysconfig/@sysconfigfile@
install -D -m0644 ${VIRTUALBOX_EXTENSION_PACK_PCK} %{buildroot}/opt/VirtualBox/extension/${VIRTUALBOX_EXTENSION_PACK_PCK}
install -D -m0644 ${VIRTUALBOX_EXTENSION_PACK_PCK} %{buildroot}%{_libdir}/VirtualBox/extension/${VIRTUALBOX_EXTENSION_PACK_PCK}
cp %{S:0} LICENSE
%clean
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
rm -rf %{_builddir}/%{name}-*
:
%post
#VBoxManage extpack uninstall Oracle_VM_VirtualBox_Extension_Pack || true
VBoxManage extpack install /opt/VirtualBox/extension/Oracle_VM_VirtualBox_Extension_Pack-%{pck_majver}%{?pck_minver:%pck_minver}.vbox-extpack --replace
VBoxManage extpack install %{_libdir}/VirtualBox/extension/Oracle_VM_VirtualBox_Extension_Pack-%{pck_majver}%{?pck_minver:%pck_minver}.vbox-extpack --replace
# not working
:
%files
%defattr(-,root,root)
/opt/VirtualBox/extension/Oracle_VM_VirtualBox_Extension_Pack-%{pck_majver}%{?pck_minver:%pck_minver}.vbox-extpack
%{_libdir}/VirtualBox/extension/Oracle_VM_VirtualBox_Extension_Pack-%{pck_majver}%{?pck_minver:%pck_minver}.vbox-extpack
%doc LICENSE
%changelog

View File

@@ -92,6 +92,8 @@ find . -type f -exec install -D "{}" "%{buildroot}%{win32dir}/{}" \;
%clean
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
rm -rf %{_builddir}/%{name}-*
:
%files
%defattr(-,root,root)

View File

@@ -2,26 +2,45 @@
SRPMVERSION["b43-firmware"]=4.150.10.5
SRPMRELEASE["b43-firmware"]=1mamba
# flashplugin
SRPMVERSION["flashplugin"]="`curl -s http://www.adobe.com/software/flash/about/ | grep -A2 "Linux" | tail -n1 | sed -e 's/[[:space:]]*<[^>][^>]*>//g;s/[[:space:]]//' 2>/dev/null`"
SRPMRELEASE["flashplugin"]=1mamba
if [ ! "$SRPMCHECK" -o "$SRPMCHECK" = "flashplugin" ]; then
SRPMVERSION["flashplugin"]="`curl --max-time 20 -sL http://www.adobe.com/software/flash/about/ | grep -A10 "Linux" | grep -A3 "NPAPI" | grep "[0-9]\.[0-9]\.[0-9]" | sed -e 's/[[:space:]]*<[^>][^>]*>//g;s/[[:space:]]//' 2>/dev/null`"
SRPMRELEASE["flashplugin"]=1mamba
fi
# msttcorefonts
SRPMVERSION["msttcorefonts"]=1.3
SRPMRELEASE["msttcorefonts"]=7mamba
# skype
SRPMVERSION["skype"]="`curl -sLI "http://www.skype.com/go/getskype-linux-beta-dynamic"|grep "linux/skype-"|sed "s|.*skype-\(.*\)\.tar\..*|\1|" 2>/dev/null`"
SRPMRELEASE["skype"]=2mamba
if [ ! "$SRPMCHECK" -o "$SRPMCHECK" = "skype" ]; then
SRPMVERSION["skype"]="`curl --max-time 20 -sLI "http://www.skype.com/go/getskype-linux-beta-dynamic"|grep "linux/skype-"|sed "s|.*skype-\(.*\)\.tar\..*|\1|"|grep -v "\.\.0\." 2>/dev/null`"
SRPMRELEASE["skype"]=2mamba
fi
# spotify
SRPMVERSION["spotify"]=20150129
if [ "`uname -m`" == "x86_64" ]; then
SRPMVERSION["spotify"]=20150629
else
SRPMVERSION["spotify"]=0
fi
SRPMRELEASE["spotify"]=1mamba
# sun-java7
SRPMVERSION["sun-java7"]="`curl -s http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html|grep "Linux x86.*i586.tar.gz"|tail -n1|sed "s|.*/java/jdk/\(.*\)/jdk-.*|\1|;s|-|_|" 2>/dev/null`"
SRPMRELEASE["sun-java7"]=1mamba
if [ ! "$SRPMCHECK" -o "$SRPMCHECK" = "sun-java7" ]; then
SRPMVERSION["sun-java7"]="`curl --max-time 20 -sL http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html|grep "Linux x86.*i586.tar.gz"|tail -n1|sed "s|.*/java/jdk/\([a-zA-Z0-9-]*\).*/jdk-.*|\1|;s|-|_|" 2>/dev/null`"
SRPMRELEASE["sun-java7"]=1mamba
fi
# sun-java8
if [ ! "$SRPMCHECK" -o "$SRPMCHECK" = "sun-java8" ]; then
SRPMVERSION["sun-java8"]="`curl --max-time 20 -sL http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html|grep "Linux x86.*i586.tar.gz"|tail -n1|sed "s|.*/java/jdk/\([a-zA-Z0-9-]*\).*/jdk-.*|\1|;s|-|_|" 2>/dev/null`"
SRPMRELEASE["sun-java8"]=1mamba
fi
# virtualbox-extension-pack
SRPMVERSION["virtualbox-extension-pack"]=4.3.20
SRPMRELEASE["virtualbox-extension-pack"]=1mamba
if [ ! "$SRPMCHECK" -o "$SRPMCHECK" = "virtualbox-extension-pack" ]; then
SRPMVERSION["virtualbox-extension-pack"]="`rpm -q VirtualBox 2>/dev/null| cut -d- -f2`"
SRPMRELEASE["virtualbox-extension-pack"]=1mamba
fi
# win32codecs
SRPMVERSION["win32codecs"]=20110131
SRPMRELEASE["win32codecs"]=1mamba
# chromium-pepper-flash
SRPMVERSION["chromium-pepper-flash"]="`curl -s "http://googlechromereleases.blogspot.it/" | grep -i -m 1 "stable channel has been updated to" | sed "s|.*updated to \([0-9.]*\) .*|\1|" 2>/dev/null`"
SRPMRELEASE["chromium-pepper-flash"]=1mamba
if [ ! "$SRPMCHECK" -o "$SRPMCHECK" = "chromium-pepper-flash" ]; then
SRPMVERSION["chromium-pepper-flash"]="`curl --max-time 20 -sL http://www.adobe.com/software/flash/about/ | grep -A11 "Linux" | grep -A1 "Chromium" | tail -n1 | sed -e 's/[[:space:]]*<[^>][^>]*>//g;s/[[:space:]]//' 2>/dev/null`"
SRPMRELEASE["chromium-pepper-flash"]=1mamba
fi

View File

@@ -1,2 +1,5 @@
SRPMVERSION["sun-java7"]="`curl -s http://www.oracle.com/technetwork/java/javase/downloads/jdk7-arm-downloads-2187468.html|grep "Linux ARM.*arm-vfp-sflt.tar.gz"|tail -n1|sed "s|.*/java/jdk/\(.*\)/jdk-.*|\1|;s|-|_|" 2>/dev/null`"
# sun-java7
if [ ! "$SRPMCHECK" -o "$SRPMCHECK" = "sun-java7" ]; then
SRPMVERSION["sun-java7"]="`curl --max-time 20 -s http://www.oracle.com/technetwork/java/javase/downloads/jdk7-arm-downloads-2187468.html|grep "Linux ARM.*arm-vfp-sflt.tar.gz"|tail -n1|sed "s|.*/java/jdk/\([a-zA-Z0-9-]*\).*/jdk-.*|\1|;s|-|_|" 2>/dev/null`"
SRPMRELEASE["sun-java7"]=1mamba
fi

View File

@@ -1 +1 @@
VERSION = 2.9.91
VERSION = 4.0.0

9
etc/system-sleep/r8169 Executable file
View File

@@ -0,0 +1,9 @@
#!/bin/bash
TMPFILE=/tmp/system-sleep-hook-r8169.tmp
if [ "$1/$2" = "pre/suspend" ]; then
rmmod r8169
touch $TMPFILE
elif [ "$1/$2" = "post/suspend" -a -e $TMPFILE ]; then
modprobe r8169
rm -f $TMPFILE
fi

View File

@@ -841,85 +841,6 @@ dcop @dcopid KommanderIf setEnabled inst_devel $missing
<set>WordBreak|AlignVCenter</set>
</property>
</widget>
<widget class="ScriptObject">
<property name="name">
<cstring>checkform3</cstring>
</property>
<property name="geometry">
<rect>
<x>0</x>
<y>370</y>
<width>32</width>
<height>32</height>
</rect>
</property>
<property name="associations" stdset="0">
<stringlist>
<string>@BackBox.setChecked(true)
@NextBox.setChecked(true)
rpm -q xorg-drv-video-nvidia &amp;&amp; {
dcop @dcopid KommanderIf setEnabled inst_nvidia false
}
rpm -q xorg-drv-video-nvidia_304 &amp;&amp; {
dcop @dcopid KommanderIf setEnabled inst_nvidia_legacy false
}
rpm -q xorg-drv-video-fglrx &amp;&amp; {
dcop @dcopid KommanderIf setEnabled inst_fglrx false
}
rpm -q xorg-drv-video-fglrx &amp;&amp; {
dcop @dcopid KommanderIf setEnabled inst_fglrx_legacy false
}
openmamba-netsrpms -c flashplugin &gt; /dev/null
if [ $? -eq 0 ]; then
dcop @dcopid KommanderIf setEnabled inst_flash false
fi
openmamba-netsrpms -c msttcorefonts &gt; /dev/null
if [ $? -eq 0 ]; then
dcop @dcopid KommanderIf setEnabled inst_msttcf false
fi
openmamba-netsrpms -c win32codecs &gt; /dev/null
if [ $? -eq 0 ]; then
dcop @dcopid KommanderIf setEnabled inst_codecs false
fi
openmamba-netsrpms -c sun-java7 &gt; /dev/null
if [ $? -eq 0 ]; then
dcop @dcopid KommanderIf setEnabled inst_java false
fi
openmamba-netsrpms -c skype &gt; /dev/null
if [ $? -eq 0 ]; then
dcop @dcopid KommanderIf setEnabled inst_skype false
fi
openmamba-netsrpms -c broadcom-sta &gt; /dev/null
if [ $? -eq 0 ]; then
dcop @dcopid KommanderIf setEnabled inst_broadcom_sta false
fi
openmamba-netsrpms -c b43-firmware &gt; /dev/null
if [ $? -eq 0 ]; then
dcop @dcopid KommanderIf setEnabled inst_b43 false
fi
openmamba-netsrpms -c spotify &gt; /dev/null
if [ $? -eq 0 ]; then
dcop @dcopid KommanderIf setEnabled inst_spotify false
fi
openmamba-netsrpms -c virtualbox-extension-pack &gt; /dev/null
if [ $? -eq 0 ]; then
dcop @dcopid KommanderIf setEnabled inst_virtualbox false
fi</string>
</stringlist>
</property>
</widget>
<widget class="GroupBox">
<property name="name">
<cstring>GroupBox2_2_2</cstring>
@@ -950,7 +871,7 @@ fi</string>
</widget>
<widget class="CheckBox">
<property name="name">
<cstring>inst_nvidia_legacy</cstring>
<cstring>inst_nvidia</cstring>
</property>
<property name="enabled">
<bool>true</bool>
@@ -958,13 +879,16 @@ fi</string>
<property name="geometry">
<rect>
<x>20</x>
<y>40</y>
<y>20</y>
<width>510</width>
<height>20</height>
</rect>
</property>
<property name="text">
<string>NVIDIA propri&amp;etary video driver (legacy) from openmamba.org</string>
<string>NVIDIA proprietary video &amp;driver (autodetected) from openmamba.org</string>
</property>
<property name="tristate">
<bool>false</bool>
</property>
<property name="associations" stdset="0">
<stringlist>
@@ -981,6 +905,32 @@ fi</string>
<property name="enabled">
<bool>true</bool>
</property>
<property name="geometry">
<rect>
<x>20</x>
<y>40</y>
<width>510</width>
<height>20</height>
</rect>
</property>
<property name="text">
<string>AMD/ATI propri&amp;etary video driver from openmamba.org</string>
</property>
<property name="associations" stdset="0">
<stringlist>
<string></string>
<string></string>
<string></string>
</stringlist>
</property>
</widget>
<widget class="CheckBox">
<property name="name">
<cstring>inst_fglrx_legacy</cstring>
</property>
<property name="enabled">
<bool>true</bool>
</property>
<property name="geometry">
<rect>
<x>20</x>
@@ -990,7 +940,59 @@ fi</string>
</rect>
</property>
<property name="text">
<string>AMD/ATI proprietary video driver from openmamba.org</string>
<string>AMD/ATI proprietary video driver (le&amp;gacy) from openmamba.org</string>
</property>
<property name="associations" stdset="0">
<stringlist>
<string></string>
<string></string>
<string></string>
</stringlist>
</property>
</widget>
<widget class="CheckBox">
<property name="name">
<cstring>inst_broadcom_sta</cstring>
</property>
<property name="enabled">
<bool>true</bool>
</property>
<property name="geometry">
<rect>
<x>20</x>
<y>80</y>
<width>510</width>
<height>20</height>
</rect>
</property>
<property name="text">
<string>Broadcom-sta proprietary wireless driver from openmamba.org</string>
</property>
<property name="associations" stdset="0">
<stringlist>
<string></string>
<string></string>
<string></string>
</stringlist>
</property>
</widget>
<widget class="CheckBox">
<property name="name">
<cstring>inst_b43</cstring>
</property>
<property name="enabled">
<bool>true</bool>
</property>
<property name="geometry">
<rect>
<x>20</x>
<y>100</y>
<width>510</width>
<height>20</height>
</rect>
</property>
<property name="text">
<string>&amp;Broadcom B43 proprietary firmware from openwrt.org</string>
</property>
<property name="associations" stdset="0">
<stringlist>
@@ -1107,6 +1109,28 @@ fi</string>
</stringlist>
</property>
</widget>
<widget class="CheckBox">
<property name="name">
<cstring>inst_codecs</cstring>
</property>
<property name="enabled">
<bool>true</bool>
</property>
<property name="geometry">
<rect>
<x>20</x>
<y>180</y>
<width>500</width>
<height>20</height>
</rect>
</property>
<property name="text">
<string>&amp;Win32 codecs from mplayerhq.hu</string>
</property>
<property name="checked">
<bool>false</bool>
</property>
</widget>
<widget class="CheckBox">
<property name="name">
<cstring>inst_msttcf</cstring>
@@ -1143,7 +1167,7 @@ fi</string>
<property name="geometry">
<rect>
<x>20</x>
<y>140</y>
<y>120</y>
<width>510</width>
<height>20</height>
</rect>
@@ -1157,7 +1181,7 @@ fi</string>
</widget>
<widget class="CheckBox">
<property name="name">
<cstring>inst_codecs</cstring>
<cstring>inst_pepperflash</cstring>
</property>
<property name="enabled">
<bool>true</bool>
@@ -1165,125 +1189,18 @@ fi</string>
<property name="geometry">
<rect>
<x>20</x>
<y>180</y>
<width>500</width>
<y>139</y>
<width>510</width>
<height>20</height>
</rect>
</property>
<property name="text">
<string>&amp;Win32 codecs from mplayerhq.hu</string>
<string>Pepper-Flas&amp;h plugin for chromium from google.com</string>
</property>
<property name="checked">
<bool>false</bool>
</property>
</widget>
<widget class="CheckBox">
<property name="name">
<cstring>inst_nvidia</cstring>
</property>
<property name="enabled">
<bool>true</bool>
</property>
<property name="geometry">
<rect>
<x>20</x>
<y>20</y>
<width>510</width>
<height>20</height>
</rect>
</property>
<property name="text">
<string>NVIDIA proprietary video &amp;driver from openmamba.org</string>
</property>
<property name="tristate">
<bool>false</bool>
</property>
<property name="associations" stdset="0">
<stringlist>
<string></string>
<string></string>
<string></string>
</stringlist>
</property>
</widget>
<widget class="CheckBox">
<property name="name">
<cstring>inst_fglrx_legacy</cstring>
</property>
<property name="enabled">
<bool>true</bool>
</property>
<property name="geometry">
<rect>
<x>20</x>
<y>80</y>
<width>510</width>
<height>20</height>
</rect>
</property>
<property name="text">
<string>AMD/ATI proprietary video driver (le&amp;gacy) from openmamba.org</string>
</property>
<property name="associations" stdset="0">
<stringlist>
<string></string>
<string></string>
<string></string>
</stringlist>
</property>
</widget>
<widget class="CheckBox">
<property name="name">
<cstring>inst_b43</cstring>
</property>
<property name="enabled">
<bool>true</bool>
</property>
<property name="geometry">
<rect>
<x>20</x>
<y>120</y>
<width>510</width>
<height>20</height>
</rect>
</property>
<property name="text">
<string>&amp;Broadcom B43 proprietary firmware from openwrt.org</string>
</property>
<property name="associations" stdset="0">
<stringlist>
<string></string>
<string></string>
<string></string>
</stringlist>
</property>
</widget>
<widget class="CheckBox">
<property name="name">
<cstring>inst_broadcom_sta</cstring>
</property>
<property name="enabled">
<bool>true</bool>
</property>
<property name="geometry">
<rect>
<x>20</x>
<y>100</y>
<width>510</width>
<height>20</height>
</rect>
</property>
<property name="text">
<string>Broadcom-sta proprietary wireless driver from openmamba.org</string>
</property>
<property name="associations" stdset="0">
<stringlist>
<string></string>
<string></string>
<string></string>
</stringlist>
</property>
</widget>
</widget>
<widget class="Label">
<property name="name">
@@ -1305,6 +1222,86 @@ WARNING: you'll have to accept a license agreement for most selected packages.</
<set>WordBreak|AlignTop</set>
</property>
</widget>
<widget class="ScriptObject">
<property name="name">
<cstring>checkform3</cstring>
</property>
<property name="geometry">
<rect>
<x>0</x>
<y>370</y>
<width>32</width>
<height>32</height>
</rect>
</property>
<property name="associations" stdset="0">
<stringlist>
<string>@BackBox.setChecked(true)
@NextBox.setChecked(true)
rpm -q xorg-drv-video-nvidia || rpm -q xorg-drv-video-nvidia_304 || rpm -q xorg-drv-video-nvidia_340 &amp;&amp; {
dcop @dcopid KommanderIf setEnabled inst_nvidia false
}
rpm -q xorg-drv-video-fglrx &amp;&amp; {
dcop @dcopid KommanderIf setEnabled inst_fglrx false
}
rpm -q xorg-drv-video-fglrx &amp;&amp; {
dcop @dcopid KommanderIf setEnabled inst_fglrx_legacy false
}
openmamba-netsrpms -c flashplugin &gt; /dev/null
if [ $? -eq 0 ]; then
dcop @dcopid KommanderIf setEnabled inst_flash false
fi
openmamba-netsrpms -c chromium-pepper-flash &gt; /dev/null
if [ $? -eq 0 ]; then
dcop @dcopid KommanderIf setEnabled inst_pepperflash false
fi
openmamba-netsrpms -c msttcorefonts &gt; /dev/null
if [ $? -eq 0 ]; then
dcop @dcopid KommanderIf setEnabled inst_msttcf false
fi
openmamba-netsrpms -c win32codecs &gt; /dev/null
if [ $? -eq 0 ]; then
dcop @dcopid KommanderIf setEnabled inst_codecs false
fi
openmamba-netsrpms -c sun-java8 &gt; /dev/null
if [ $? -eq 0 ]; then
dcop @dcopid KommanderIf setEnabled inst_java false
fi
openmamba-netsrpms -c skype &gt; /dev/null
if [ $? -eq 0 ]; then
dcop @dcopid KommanderIf setEnabled inst_skype false
fi
openmamba-netsrpms -c broadcom-sta &gt; /dev/null
if [ $? -eq 0 ]; then
dcop @dcopid KommanderIf setEnabled inst_broadcom_sta false
fi
openmamba-netsrpms -c b43-firmware &gt; /dev/null
if [ $? -eq 0 ]; then
dcop @dcopid KommanderIf setEnabled inst_b43 false
fi
openmamba-netsrpms -c spotify &gt; /dev/null
if [ $? -eq 0 ]; then
dcop @dcopid KommanderIf setEnabled inst_spotify false
fi
openmamba-netsrpms -c virtualbox-extension-pack &gt; /dev/null
if [ $? -eq 0 ]; then
dcop @dcopid KommanderIf setEnabled inst_virtualbox false
fi</string>
</stringlist>
</property>
</widget>
</widget>
<widget class="QWidget">
<property name="name">
@@ -1478,11 +1475,11 @@ INSTALL_VIRTUALIZATION='@inst_virtualization.checked()'
INSTALL_SERVER='@inst_server.checked()'
INSTALL_DEVEL='@inst_devel.checked()'
INSTALL_FLASH='@inst_flash.checked()'
INSTALL_PEPPERFLASH='@inst_pepperflash.checked()'
INSTALL_CODECS='@inst_codecs.checked()'
INSTALL_MSTTCF='@inst_msttcf.checked()'
INSTALL_SKYPE='@inst_skype.checked()'
INSTALL_NVIDIA='@inst_nvidia.checked()'
INSTALL_NVIDIA_LEGACY='@inst_nvidia_legacy.checked()'
INSTALL_FGLRX='@inst_fglrx.checked()'
INSTALL_FGLRX_LEGACY='@inst_fglrx_legacy.checked()'
INSTALL_BROADCOM_STA='@inst_broadcom_sta.checked()'

View File

@@ -1,5 +1,5 @@
# openmamba post installation script
# Copyright (c) 2007-2014 by Silvan Calarco <silvan.calarco@mambasoft.it>
# Copyright (c) 2007-2015 by Silvan Calarco <silvan.calarco@mambasoft.it>
#
# Released under the terms of the GNU GPLv3 License
@@ -77,12 +77,12 @@ TOTAL_PROGRESS=10
[ "$INSTALL_SERVER" = "1" ] && TOTAL_PROGRESS=`expr $TOTAL_PROGRESS + 15`
[ "$INSTALL_DEVEL" = "1" ] && TOTAL_PROGRESS=`expr $TOTAL_PROGRESS + 15`
[ "$INSTALL_FLASH" = "1" ] && TOTAL_PROGRESS=`expr $TOTAL_PROGRESS + 10`
[ "$INSTALL_PEPPERFLASH" = "1" ] && TOTAL_PROGRESS=`expr $TOTAL_PROGRESS + 10`
[ "$INSTALL_SKYPE" = "1" ] && TOTAL_PROGRESS=`expr $TOTAL_PROGRESS + 10`
[ "$INSTALL_CODECS" = "1" ] && TOTAL_PROGRESS=`expr $TOTAL_PROGRESS + 10`
[ "$INSTALL_MSTTCF" = "1" ] && TOTAL_PROGRESS=`expr $TOTAL_PROGRESS + 10`
[ "$INSTALL_JAVA" = "1" ] && TOTAL_PROGRESS=`expr $TOTAL_PROGRESS + 10`
[ "$INSTALL_NVIDIA" = "1" ] && TOTAL_PROGRESS=`expr $TOTAL_PROGRESS + 10`
[ "$INSTALL_NVIDIA_LEGACY" = "1" ] && TOTAL_PROGRESS=`expr $TOTAL_PROGRESS + 10`
[ "$INSTALL_FGLRX" = "1" ] && TOTAL_PROGRESS=`expr $TOTAL_PROGRESS + 10`
[ "$INSTALL_FGLRX_LEGACY" = "1" ] && TOTAL_PROGRESS=`expr $TOTAL_PROGRESS + 10`
[ "$INSTALL_BROADCOM_STA" = "1" ] && TOTAL_PROGRESS=`expr $TOTAL_PROGRESS + 10`
@@ -106,6 +106,8 @@ if [ "$INSTALL_BASE" = "1" ]; then
# first time: remove mambabase from autostart
[ -e /home/$USER/.kde4/Autostart/mambabase.desktop ] && \
rm -f /home/$USER/.kde4/Autostart/mambabase.desktop
[ -e /home/$USER/.config/autostart/mambabase.desktop ] && \
rm -f /home/$USER/.config/autostart/mambabase.desktop
# ugly workaround: don't have permissions to rm file in /etc/xdg/autostart
[ -e /etc/xdg/autostart/mambabase.desktop ] && \
> /etc/xdg/autostart/mambabase.desktop
@@ -172,15 +174,10 @@ if [ "$INSTALL_DEVEL" = "1" ]; then
fi
if [ "$INSTALL_NVIDIA" = "1" ]; then
echo $"Installing NVIDIA proprietary video driver packages"
dcop_write $"Installing/updating NVIDIA proprietary video driver packages..." 10
rpm -q --whatprovides xorg-drv-video-nvidia >/dev/null || apt_get_parsed install -y xorg-drv-video-nvidia
fi
if [ "$INSTALL_NVIDIA_LEGACY" = "1" ]; then
echo $"Installing NVIDIA proprietary (legacy) video driver packages"
dcop_write $"Installing/updating NVIDIA proprietary (legacy) video driver packages..." 10
rpm -q --whatprovides xorg-drv-video-nvidia_304 >/dev/null || apt_get_parsed install -y xorg-drv-video-nvidia_304
echo $"Installing NVIDIA proprietary video driver (autodetected) packages"
dcop_write $"Installing/updating NVIDIA proprietary video driver (autodetected) packages..." 10
NVIDIA_DETECTED=$(/sbin/nvidia-autoselect-driver | sed "s|.* ||")
rpm -q --whatprovides $NVIDIA_DETECTED >/dev/null || apt_get_parsed install -y $NVIDIA_DETECTED
fi
if [ "$INSTALL_FGLRX" = "1" ]; then
@@ -227,10 +224,16 @@ if [ "$INSTALL_FLASH" = "1" ]; then
nspluginscan
rpm -q gnash && {
echo $"Removing gnash"
sudo rpm -e gnash
sudo rpm -e gnash
}
fi
if [ "$INSTALL_PEPPERFLASH" = "1" ]; then
echo $"Installing pepper-flash plugin"
dcop_write $"Installing Pepper-Flash plugin..." 10
/usr/bin/openmamba-netsrpms chromium-pepper-flash
fi
if [ "$INSTALL_CODECS" = "1" ]; then
echo $"Installing win32 codecs"
dcop_write $"Installing Win32 codecs..." 10
@@ -249,8 +252,8 @@ if [ "$INSTALL_SKYPE" = "1" ]; then
fi
if [ "$INSTALL_JAVA" = "1" ]; then
dcop_write $"Installing Oracle Java 7..." 10
/usr/bin/openmamba-netsrpms sun-java7
dcop_write $"Installing Oracle Java 8..." 10
/usr/bin/openmamba-netsrpms sun-java8
fi
if [ "$INSTALL_JRE" = "1" ]; then

View File

@@ -0,0 +1,19 @@
[Desktop Entry]
Name=Install Sun Java 8
Name[es]=Instala Sun Java 8
Name[fr]=Installation du Sun Java 8
Name[it]=Installa Sun Java 8
Comment=Install Sun Java 8 from network
Comment[es]=Instala Sun Java 8 por red
Comment[fr]=Installation du Sun Java 8 depuis le réseau
Comment[it]=Installa Sun Java 8 dalla rete
Encoding=UTF-8
Exec=@bindir@/openmamba-netsrpms sun-java8
Icon=distromenu-java
MimeType=
Path=
StartupNotify=false
Terminal=false
TerminalOptions=
Type=Application
Categories=X-@distroID@-NetInstall;

View File

@@ -44,9 +44,10 @@ function check_if_already_installed() {
}
declare -A SRPMVERSION SRPMRELEASE
. /etc/sysconfig/netsrpminstall || exit 1
for pckname in $PACKAGES; do
export SRPMCHECK="$pckname"
. /etc/sysconfig/netsrpminstall || exit 1
SRPM_PATH=$DISTRO_SRPMS_DIR/${pckname}
SPEC_PATHNAME=$SRPM_PATH/${pckname}.spec