SPECS (DEVEL): adobe-flash.spec - version check on build

glen glen at pld-linux.org
Tue Dec 11 00:01:52 CET 2007


Author: glen                         Date: Mon Dec 10 23:01:52 2007 GMT
Module: SPECS                         Tag: DEVEL
---- Log message:
- version check on build

---- Files affected:
SPECS:
   adobe-flash.spec (1.78.2.5 -> 1.78.2.6) 

---- Diffs:

================================================================
Index: SPECS/adobe-flash.spec
diff -u SPECS/adobe-flash.spec:1.78.2.5 SPECS/adobe-flash.spec:1.78.2.6
--- SPECS/adobe-flash.spec:1.78.2.5	Tue Dec  4 19:06:12 2007
+++ SPECS/adobe-flash.spec	Tue Dec 11 00:01:46 2007
@@ -3,10 +3,10 @@
 # Conditional build:
 %bcond_with	license_agreement	# generates package
 #
-%define		_ver_major	9
-%define		_ver_minor	0
-%define		_ver_patch	115
-%define		_ver_serial	0
+%define		ver_major	9
+%define		ver_minor	0
+%define		ver_patch	115
+%define		ver_serial	0
 %define		base_name	adobe-flash
 Summary:	Flash plugin for Netscape-compatible WWW browsers
 Summary(pl.UTF-8):	Wtyczka Flash dla przeglÄ
darek WWW zgodnych z Netscape
@@ -16,7 +16,7 @@
 Name:		%{base_name}-installer
 %endif
 %define		_rel 1
-Version:	%{_ver_major}.%{_ver_minor}.%{_ver_patch}.%{_ver_serial}
+Version:	%{ver_major}.%{ver_minor}.%{ver_patch}.%{ver_serial}
 Release:	%{_rel}%{?with_license_agreement:wla}
 License:	Free to use, non-distributable
 Group:		X11/Applications/Multimedia
@@ -57,7 +57,14 @@
 
 %prep
 %if %{with license_agreement}
-%setup -q -n install_flash_player_%{_ver_major}_linux
+%setup -q -n install_flash_player_%{ver_major}_linux
+
+%build
+ver=$(strings libflashplayer.so | grep -e "^Shockwave Flash [.\d+]*" | sed -e "s/Shockwave Flash //g")
+if [ "$ver" != "%{ver_major}.%{ver_minor} r%{ver_patch}" ]; then
+	: Fetched version $ver, expected %{ver_major}.%{ver_minor} r%{ver_patch}
+	exit 1
+fi
 %endif
 
 %install
@@ -120,6 +127,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.78.2.6  2007-12-10 23:01:46  glen
+- version check on build
+
 Revision 1.78.2.5  2007-12-04 18:06:12  arekm
 - stable release 9.0.115.0 (but for now on DEVEL)
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/adobe-flash.spec?r1=1.78.2.5&r2=1.78.2.6&f=u



More information about the pld-cvs-commit mailing list