]> git.pld-linux.org Git - packages/adobe-flash.git/blobdiff - adobe-flash.spec
- 10.3.162.29 for 64bit
[packages/adobe-flash.git] / adobe-flash.spec
index 7a103b22f4708b980876c754f7c13a9ab65a5437..e921d650850c2804f0373aaae298b7591d285863 100644 (file)
@@ -1,20 +1,21 @@
 #
 # Conditional build:
 %bcond_with    license_agreement       # generates package
-#
+
 %ifarch %{x8664}
-%define         ver_major       10
-%define         ver_minor       0
-%define         ver_patch       d21
-%define         ver_serial      1
+%define                ver_major       10
+%define                ver_minor       3
+%define                ver_patch       162
+%define                ver_serial      29
 %define                libmark         ()(64bit)
 %else
 %define                ver_major       10
-%define                ver_minor       0
-%define                ver_patch       15
-%define                ver_serial      3
+%define                ver_minor       2
+%define                ver_patch       161
+%define                ver_serial      23
 %define                libmark         %{nil}
 %endif
+
 %define                base_name       adobe-flash
 %define                rel 1
 Summary:       Flash plugin for Netscape-compatible WWW browsers
@@ -26,15 +27,21 @@ Name:               %{base_name}-installer
 %endif
 Version:       %{ver_major}.%{ver_minor}.%{ver_patch}.%{ver_serial}
 Release:       %{rel}%{?with_license_agreement:wla}
+Epoch:         1
 License:       Free to use, non-distributable
 Group:         X11/Applications/Multimedia
 %if %{with license_agreement}
-Source0:       http://fpdownload.macromedia.com/get/flashplayer/current/install_flash_player_10_linux.tar.gz
-# NoSource0-md5:       afab0b40b0ae11445e2e90a4a9224a8a
-Source1:       http://download.macromedia.com/pub/labs/flashplayer10/libflashplayer-10.0.d21.1.linux-x86_64.so.tar.gz
-# NoSource1-md5:       c165af9d4e324bfaf6d1cfbdbe959fbb
+##Source0:     http://fpdownload.macromedia.com/get/flashplayer/current/install_flash_player_10_linux.tar.gz
+Source0:       http://download.macromedia.com/pub/labs/flashplayer10/flashplayer10_2_p2_32bit_linux_111710.tar.gz
+# NoSource0-md5:       3a5c1e0a77bb44d3456c933a056bcf47
+NoSource:      0
+##Source1:     http://download.macromedia.com/pub/labs/flashplayer10/libflashplayer-%{version}.linux-x86_64.so.tar.gz
+Source1:       http://download.macromedia.com/pub/labs/flashplayer10/flashplayer10_2_p3_64bit_linux_111710.tar.gz
+# NoSource1-md5:       49b55c7eb8044453e5f6f2e4b3cb4084
+NoSource:      1
 %else
-Source2:       license-installer.sh
+Source2:       http://svn.pld-linux.org/svn/license-installer/license-installer.sh
+# Source2-md5: 329c25f457fea66ec502b7ef70cb9ede
 %endif
 URL:           http://www.adobe.com/products/flashplayer/
 %if %{with license_agreement}
@@ -45,7 +52,8 @@ Requires:     browser-plugins >= 2.0
 Requires:      libasound.so.2%{libmark}
 Requires:      libcurl.so.4%{libmark}
 %else
-Requires:      rpm-build-tools
+Requires:      rpm-build-tools >= 4.4.37
+Requires:      rpmbuild(macros) >= 1.544
 %endif
 Provides:      browser(flash)
 Provides:      macromedia-flash
@@ -78,8 +86,16 @@ treÅ›ci i aplikacji we Flashu pod Linuksem.
 %ifarch %{x8664}
 %setup -q -T -c -b 1
 %else
-%setup -q -T -b 0 -n install_flash_player_%{ver_major}_linux
+%setup -q -T -c -b 0
 %endif
+
+%build
+s='LNX %{ver_major},%{ver_minor},%{ver_patch},%{ver_serial}'
+v=$(strings libflashplayer.so | grep '^LNX ')
+if [ "$v" != "$s" ]; then
+       : wrong version
+       exit 1
+fi
 %endif
 
 %install
@@ -93,6 +109,7 @@ sed -e '
        s-@VERSION@-%{version}-g
        s-@RELEASE@-%{release}-g
        s,@SPECFILE@,%{_datadir}/%{base_name}/%{base_name}.spec,g
+       s,@DATADIR@,%{_datadir}/%{base_name},g
 ' %{SOURCE2} > $RPM_BUILD_ROOT%{_bindir}/%{base_name}.install
 
 install %{_specdir}/%{base_name}.spec $RPM_BUILD_ROOT%{_datadir}/%{base_name}
This page took 0.076592 seconds and 4 git commands to generate.