%define debug_package %{nil} %define _use_internal_dependency_generator 0 %define __check_files %{nil} %define _unpackaged_files_terminate_build 0 %define _missing_doc_files_terminate_build 0 %define _missing_build_ids_terminate_build 0 %define _build_id_links none %define _binaries_in_noarch_packages_terminate_build 0 Name: adobeair Version: 2.6.0 Release: 19171 Summary: Adobe AIR 2 License: Commercial URL: http://www.adobe.com Group: Applications Packager: Adobe Systems, Incorporated Vendor: Adobe Systems, Incorporated AutoReqProv: no BuildArch: noarch Requires(post): /sbin/ldconfig Requires(postun): /sbin/ldconfig Source0: https://web.archive.org/web/20190413141344/http://airdownload.adobe.com/air/lin/download/2.6/AdobeAIRInstaller.bin Source1: https://mirror.fcix.net/fedora-archive/fedora/linux/releases/11/Everything/i386/os/Packages/gtk2-2.16.1-4.fc11.i586.rpm Source2: https://mirror.fcix.net/fedora-archive/fedora/linux/releases/11/Everything/i386/os/Packages/gtk2-devel-2.16.1-4.fc11.i586.rpm Source3: https://mirror.fcix.net/fedora-archive/fedora/linux/releases/11/Everything/i386/os/Packages/dbus-glib-0.80-2.fc11.i586.rpm Source4: https://mirror.fcix.net/fedora-archive/fedora/linux/releases/11/Everything/i386/os/Packages/dbus-glib-devel-0.80-2.fc11.i586.rpm Source5: https://mirror.fcix.net/fedora-archive/fedora/linux/releases/11/Everything/i386/os/Packages/hal-libs-0.5.12-26.20090226git.fc11.i586.rpm Source6: https://mirror.fcix.net/fedora-archive/fedora/linux/releases/11/Everything/i386/os/Packages/libgcrypt-1.4.4-4.fc11.i586.rpm Source7: https://mirror.fcix.net/fedora-archive/fedora/linux/releases/11/Everything/i386/os/Packages/libgcrypt-devel-1.4.4-4.fc11.i586.rpm Source8: https://mirror.fcix.net/fedora-archive/fedora/linux/releases/11/Everything/i386/os/Packages/gnome-keyring-2.26.1-1.fc11.i586.rpm Source9: https://mirror.fcix.net/fedora-archive/fedora/linux/releases/11/Everything/i386/os/Packages/gnome-keyring-devel-2.26.1-1.fc11.i586.rpm Source10: https://mirror.fcix.net/fedora-archive/fedora/linux/releases/11/Everything/i386/os/Packages/libXt-1.0.5-2.fc11.i586.rpm Source11: https://mirror.fcix.net/fedora-archive/fedora/linux/releases/11/Everything/i386/os/Packages/libXt-devel-1.0.5-2.fc11.i586.rpm Source12: https://mirror.fcix.net/fedora-archive/fedora/linux/releases/11/Everything/i386/os/Packages/nspr-4.7.3-5.fc11.i586.rpm Source13: https://mirror.fcix.net/fedora-archive/fedora/linux/releases/11/Everything/i386/os/Packages/nspr-devel-4.7.3-5.fc11.i586.rpm Source14: https://mirror.fcix.net/fedora-archive/fedora/linux/releases/11/Everything/i386/os/Packages/nss-3.12.3-4.fc11.i586.rpm Source15: https://mirror.fcix.net/fedora-archive/fedora/linux/releases/11/Everything/i386/os/Packages/nss-devel-3.12.3-4.fc11.i586.rpm Source16: https://mirror.fcix.net/fedora-archive/fedora/linux/releases/11/Everything/i386/os/Packages/nss-softokn-freebl-3.12.3-4.fc11.i586.rpm Source17: https://mirror.fcix.net/fedora-archive/fedora/linux/releases/11/Everything/i386/os/Packages/kdelibs-4.2.2-12.fc11.i586.rpm Source18: https://mirror.fcix.net/fedora-archive/fedora/linux/releases/11/Everything/i386/os/Packages/kdelibs-devel-4.2.2-12.fc11.i586.rpm Source19: https://mirror.fcix.net/fedora-archive/fedora/linux/releases/11/Everything/i386/os/Packages/libxml2-2.7.3-2.fc11.i586.rpm Source20: https://mirror.fcix.net/fedora-archive/fedora/linux/releases/11/Everything/i386/os/Packages/libxml2-devel-2.7.3-2.fc11.i586.rpm BuildRequires: rpm-build BuildRequires: rpm-devel Requires: glibc Requires: rpm-devel %description Adobe AIR 2 %prep %setup -q -T -c adobeair-2.6.0 %build echo "build" %install rm -rf * cp %{SOURCE0} ./ tail -c+6705 AdobeAIRInstaller.bin | xz -qqd | tar -xf- --xform='s,^./build,Adobe_AIR_Files,' mkdir -p %{buildroot}/etc/opt/Adobe/certificates/ cp -R Adobe_AIR_Files/etc/opt/Adobe/certificates/* %{buildroot}/etc/opt/Adobe/certificates/ mkdir -p "%{buildroot}/opt/Adobe AIR/Versions/1.0/" cp -R "Adobe_AIR_Files/opt/Adobe AIR/"* "%{buildroot}/opt/Adobe AIR/" mkdir -p "%{buildroot}/var/opt/Adobe AIR/" cp -R "Adobe_AIR_Files/var/opt/Adobe AIR/"* "%{buildroot}/var/opt/Adobe AIR/" mkdir -p "%{buildroot}/opt/Adobe AIR/Versions/1.0/Resources/lib/" touch "%{buildroot}/opt/Adobe AIR/Versions/1.0/Resources/lib/test" mkdir -p "%{buildroot}/etc/ld.so.conf.d/" cat > "%{buildroot}/etc/ld.so.conf.d/adobeairi386.conf" </dev/null 2>&1; then : else PATH="$PATH:/opt/kde3/bin:/opt/kde4/bin:/opt/kde/bin" export PATH fi if [ -z "$XDG_DATA_DIRS" ]; then XDG_DATA_DIRS="/usr/share/:/usr/local/share/" if xdg_data_dir=`kde-config --prefix 2>/dev/null`; then XDG_DATA_DIRS="${XDG_DATA_DIRS}:${xdg_data_dir}/share/" fi if [ -x /opt/gnome/bin/gnome-open ]; then XDG_DATA_DIRS="${XDG_DATA_DIRS}:/opt/gnome/share/" fi export XDG_DATA_DIRS fi if [ -n "$RPM_INSTALL_PREFIX" ]; then InstallDir="$RPM_INSTALL_PREFIX" else InstallDir="/opt/Adobe AIR" fi version="1.0" VersionDir="$InstallDir/Versions/$version" ResourceDir="$VersionDir/Resources" PATH="$ResourceDir/xdg-utils:$PATH" XDG_UTILS_INSTALL_MODE="system" export PATH export XDG_UTILS_INSTALL_MODE InstallIcons() { icon_dir="$1" for icon_size in 16 22 24 32 48 64 128; do xdg-icon-resource install --noupdate --novendor --context apps --size $icon_size "$icon_dir/${icon_size}x${icon_size}/AdobeAIR.png" xdg-icon-resource install --noupdate --novendor --theme gnome --context apps --size $icon_size "$icon_dir/${icon_size}x${icon_size}/AdobeAIR.png" xdg-icon-resource install --noupdate --novendor --context apps --size $icon_size "$icon_dir/${icon_size}x${icon_size}/air.png" xdg-icon-resource install --noupdate --novendor --theme gnome --context apps --size $icon_size "$icon_dir/${icon_size}x${icon_size}/air.png" xdg-icon-resource install --noupdate --novendor --context mimetypes --size $icon_size "$icon_dir/${icon_size}x${icon_size}/air.png" 'application-vnd.adobe.air-application-installer-package+zip' xdg-icon-resource install --noupdate --novendor --theme gnome --context mimetypes --size $icon_size "$icon_dir/${icon_size}x${icon_size}/air.png" 'application-vnd.adobe.air-application-installer-package+zip' done xdg-icon-resource forceupdate } InstallMimeType() { xdg-mime install --novendor "$ResourceDir/support/AdobeAIR.xml" } SetAsDefaultApplication() { oldpwd="$PWD" cd "$ResourceDir/support" xdg-mime default AdobeAIR.desktop 'application/vnd.adobe.air-application-installer-package+zip' cd "$oldpwd" } InstallDesktopFile() { priority="`echo 1.0 | tr -d .`" mkdir -p "/opt/Adobe/Flash Player/AddIns/airappinstaller" env PATH="/usr/sbin:$PATH" update-alternatives --install "/usr/bin/Adobe AIR Application Installer" "Adobe_AIR_Application_Installer" "$VersionDir/Adobe AIR Application Installer" ${priority} \ --slave "/usr/share/applications/AdobeAIR.desktop" "AdobeAIR.desktop" "$ResourceDir/support/AdobeAIR.desktop" \ --slave "/opt/Adobe/Flash Player/AddIns/airappinstaller/airappinstaller" "airappinstaller" "$VersionDir/Resources/airappinstaller" \ --slave "/opt/Adobe/Flash Player/AddIns/airappinstaller/digest.s" "digest.s" "$VersionDir/Resources/digest.s" } InstallDesktopFileOld() { rm -f /usr/share/applications/AdobeAIR.desktop "/usr/bin/Adobe AIR Application Installer" ln -s "$ResourceDir/support/AdobeAIR.desktop" /usr/share/applications/AdobeAIR.desktop ln -s "$VersionDir/Adobe AIR Application Installer" "/usr/bin/Adobe AIR Application Installer" } IsLatestVersion() { sxsVersion="1.0" if [ "`ls -1Sr "$1" | head -1`" != "$sxsVersion" ]; then return 1 fi return 0 } CheckUpdateAlternatives() { env PATH="$PATH:/sbin:/usr/sbin" which update-alternatives >/dev/null 2>&1 } CheckUpdateAlternatives && InstallDesktopFile >/dev/null 2>&1 if __TAG_HANDLE_AIR__ "$InstallDir/Versions"; then InstallMimeType >/dev/null 2>&1 SetAsDefaultApplication >/dev/null 2>&1 InstallIcons "$ResourceDir/support/icons" >/dev/null 2>&1 CheckUpdateAlternatives || InstallDesktopFile >/dev/null 2>&1 fi MergeCertificates() { if [ "$1" = "2" ]; then if [ -f "/etc/opt/Adobe/certificates/AIR/crypt/config.xml.rpmsave" ] ; then inputFile="/etc/opt/Adobe/certificates/AIR/crypt/config.xml.rpmsave" elif [ -f "/etc/opt/Adobe/certificates/crypt/config.xml.rpmsave" ] ; then inputFile="/etc/opt/Adobe/certificates/crypt/config.xml.rpmsave" cp -rf /etc/opt/Adobe/certificates/crypt/*.[0-9]* /etc/opt/Adobe/certificates/AIR/crypt/ &>/dev/null elif [ -f "/etc/opt/Adobe/certificates/crypt/config.xml" ] ; then inputFile="/etc/opt/Adobe/certificates/crypt/config.xml" cp -rf /etc/opt/Adobe/certificates/crypt/*.[0-9]* /etc/opt/Adobe/certificates/AIR/crypt/ &>/dev/null fi if [ -n "${inputFile}" ] then "$ResourceDir/aucm" -m -S "$inputFile" -D "/etc/opt/Adobe/certificates/AIR/crypt/config.xml" return $? fi fi return 0 } # Nested checking calls, because it's possble that one of the child does not exist but # we still need to make sure that all the parent nodes are updated if not links if [ -h "/var/opt/Adobe AIR/Shared/Adobe/AIR/Updater/initialPingback" ] then : else chmod 666 "/var/opt/Adobe AIR/Shared/Adobe/AIR/Updater/initialPingback" 2>/dev/null fi if [ ! -h "/var/opt/Adobe AIR/Shared/Adobe/AIR/Updater/updatePingback" ] then rm -f "/var/opt/Adobe AIR/Shared/Adobe/AIR/Updater/updatePingback" 2>/dev/null fi ## For first install "$1" gets 1, in case of upgrade request it gets 2 exitStatus=0 MergeCertificates "$1" exitStatus=$? if [ "$exitStatus" = "0" ] then rm -f "/etc/opt/Adobe/certificates/AIR/crypt/config.xml.rpmsave" rm -f "/etc/opt/Adobe/certificates/crypt/config.xml.rpmsave" fi exit $exitStatus %preun /sbin/ldconfig ## Check if this runtime is the latest of all the installed IsLatestVersion() { sxsVersion="1.0" if [ "`ls -1Sr "$1" | head -1`" != "$sxsVersion" ]; then return 1 fi return 0 } if [ "$1" = "0" ]; then ## last uninstall, in case of upgrade request it gets 1 if [ -n "$RPM_INSTALL_PREFIX" ]; then InstallDir="$RPM_INSTALL_PREFIX" else InstallDir="/opt/Adobe AIR" fi version=1.0 VersionDir="$InstallDir/Versions/$version" ResourceDir="$VersionDir/Resources" PATH="$ResourceDir/xdg-utils:$PATH" XDG_UTILS_INSTALL_MODE="system" if which kde-config >/dev/null 2>&1; then : else PATH="$PATH:/opt/kde3/bin:/opt/kde4/bin:/opt/kde/bin" fi if [ -z "$XDG_DATA_DIRS" ]; then XDG_DATA_DIRS="/usr/share/:/usr/local/share/" if xdg_data_dir=`kde-config --prefix 2>/dev/null`; then XDG_DATA_DIRS="${XDG_DATA_DIRS}:${xdg_data_dir}/share/" fi if [ -x /opt/gnome/bin/gnome-open ]; then XDG_DATA_DIRS="${XDG_DATA_DIRS}:/opt/gnome/share/" fi export XDG_DATA_DIRS fi export PATH export XDG_UTILS_INSTALL_MODE InstallIcons() { icon_dir="$1" for icon_size in 12 16 20 22 24 32 48 64 128; do xdg-icon-resource uninstall --noupdate --novendor --context apps --size $icon_size "$icon_dir/${icon_size}x${icon_size}/AdobeAIR.png" xdg-icon-resource uninstall --noupdate --novendor --theme gnome --context apps --size $icon_size "$icon_dir/${icon_size}x${icon_size}/AdobeAIR.png" xdg-icon-resource uninstall --noupdate --novendor --context apps --size $icon_size "$icon_dir/${icon_size}x${icon_size}/air.png" xdg-icon-resource uninstall --noupdate --novendor --theme gnome --context apps --size $icon_size "$icon_dir/${icon_size}x${icon_size}/air.png" xdg-icon-resource uninstall --noupdate --novendor --context mimetypes --size $icon_size "$icon_dir/${icon_size}x${icon_size}/air.png" 'application-vnd.adobe.air-application-installer-package+zip' xdg-icon-resource uninstall --noupdate --novendor --theme gnome --context mimetypes --size $icon_size "$icon_dir/${icon_size}x${icon_size}/air.png" 'application-vnd.adobe.air-application-installer-package+zip' done xdg-icon-resource forceupdate } InstallMimeType() { xdg-mime uninstall --novendor "$ResourceDir/support/AdobeAIR.xml" } SetAsDefaultApplication() { oldpwd="$PWD" cd "$ResourceDir/support" xdg-mime unset AdobeAIR.desktop 'application/vnd.adobe.air-application-installer-package+zip' cd "$oldpwd" } CheckUpdateAlternatives() { env PATH="$PATH:/sbin:/usr/sbin" which update-alternatives >/dev/null 2>&1 } InstallDesktopFile() { env PATH="/usr/sbin:$PATH" update-alternatives --remove "Adobe_AIR_Application_Installer" "$VersionDir/Adobe AIR Application Installer" if env PATH="/usr/sbin:$PATH" update-alternatives --list; then : else env PATH="/usr/sbin:$PATH" update-alternatives --remove-all "Adobe_AIR_Application_Installer" fi rmdir -p "/opt/Adobe/Flash Player/AddIns/airappinstaller" } InstallDesktopFileOld() { rm -f /usr/share/applications/AdobeAIR.desktop "/usr/bin/Adobe AIR Application Installer" } CheckUpdateAlternatives && InstallDesktopFile >/dev/null 2>&1 if IsLatestVersion "$InstallDir/Versions"; then InstallIcons "$ResourceDir/support/icons" >/dev/null 2>&1 SetAsDefaultApplication >/dev/null 2>&1 InstallMimeType >/dev/null 2>&1 CheckUpdateAlternatives || InstallDesktopFileOld fi fi exit 0 %postun %files %defattr(-, root, root) /etc/ld.so.conf.d/adobeairi386.conf /etc/opt/Adobe/certificates/AIR/crypt/1e8e7201.0 /etc/opt/Adobe/certificates/AIR/crypt/2afc57aa.0 /etc/opt/Adobe/certificates/AIR/crypt/7a481e66.0 /etc/opt/Adobe/certificates/AIR/crypt/7d453d8f.0 /etc/opt/Adobe/certificates/AIR/crypt/54edfa5d.0 /etc/opt/Adobe/certificates/AIR/crypt/111e6273.0 /etc/opt/Adobe/certificates/AIR/crypt/256fd83b.0 /etc/opt/Adobe/certificates/AIR/crypt/673b5b.0 /etc/opt/Adobe/certificates/AIR/crypt/693dcfe1.0 /etc/opt/Adobe/certificates/AIR/crypt/5021a0a2.0 /etc/opt/Adobe/certificates/AIR/crypt/7651b327.0 /etc/opt/Adobe/certificates/AIR/crypt/b0f3e76e.0 /etc/opt/Adobe/certificates/AIR/crypt/c1e65b0d.0 /etc/opt/Adobe/certificates/AIR/crypt/c33a80d4.0 %config /etc/opt/Adobe/certificates/AIR/crypt/config.xml /etc/opt/Adobe/certificates/AIR/crypt/facacbc6.0 /etc/opt/Adobe/certificates/AIR/nss/cert8.db /etc/opt/Adobe/certificates/AIR/nss/key3.db /etc/opt/Adobe/certificates/AIR/nss/secmod.db "/opt/Adobe AIR/Versions/" "/var/opt/Adobe AIR/Shared/Adobe/AIR/Updater" %doc %changelog * Sun Feb 04 2024 Adobe Systems, Incorporated - update for new syst�me and full support x86_64