SPECS: seamonkey-lang-en.spec - use macros - i think this one shou...

sparky sparky at pld-linux.org
Mon Jul 31 17:19:10 CEST 2006


Author: sparky                       Date: Mon Jul 31 15:19:10 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- use macros
- i think this one should be called 'seamonkey-reg-GB.spec'

---- Files affected:
SPECS:
   seamonkey-lang-en.spec (1.2 -> 1.3) 

---- Diffs:

================================================================
Index: SPECS/seamonkey-lang-en.spec
diff -u SPECS/seamonkey-lang-en.spec:1.2 SPECS/seamonkey-lang-en.spec:1.3
--- SPECS/seamonkey-lang-en.spec:1.2	Mon Apr 17 22:06:04 2006
+++ SPECS/seamonkey-lang-en.spec	Mon Jul 31 17:19:05 2006
@@ -1,12 +1,15 @@
 # $Revision$, $Date$
+%define	_lang	en
+%define	_reg	GB
+%define	_lare	%{_lang}-%{_reg}
 Summary:	British resources for SeaMonkey
 Summary(pl):	Brytyjskie pliki językowe dla SeaMonkeya
-Name:		seamonkey-lang-en
+Name:		seamonkey-lang-%{_lang}
 Version:	1.0
 Release:	1
 License:	GPL
 Group:		X11/Applications/Networking
-Source0:	http://ftp.mozilla.org/pub/mozilla.org/seamonkey/releases/%{version}/contrib-localized/seamonkey-%{version}.en-GB.langpack.xpi
+Source0:	http://ftp.mozilla.org/pub/mozilla.org/seamonkey/releases/%{version}/contrib-localized/seamonkey-%{version}.%{_lare}.langpack.xpi
 # Source0-md5:	2ca823bebb31d34c792d6c2ddd614874
 Source1:	gen-installed-chrome.sh
 URL:		http://www.mozilla.org/projects/seamonkey/
@@ -28,15 +31,15 @@
 %prep
 %setup -q -c
 install %{SOURCE1} .
-./gen-installed-chrome.sh locale bin/chrome/{en-GB,en-GB-unix}.jar \
-	> lang-en-installed-chrome.txt
+./gen-installed-chrome.sh locale bin/chrome/{%{_lare},%{_lare}-unix}.jar \
+	> lang-%{_lang}-installed-chrome.txt
 
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT%{_chromedir}
 
-install bin/chrome/{en-GB,en-GB-unix}.jar $RPM_BUILD_ROOT%{_chromedir}
-install lang-en-installed-chrome.txt $RPM_BUILD_ROOT%{_chromedir}
+install bin/chrome/{%{_lare},%{_lare}-unix}.jar $RPM_BUILD_ROOT%{_chromedir}
+install lang-%{_lang}-installed-chrome.txt $RPM_BUILD_ROOT%{_chromedir}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -49,9 +52,9 @@
 
 %files
 %defattr(644,root,root,755)
-%{_chromedir}/en-GB.jar
-%{_chromedir}/en-GB-unix.jar
-%{_chromedir}/lang-en-installed-chrome.txt
+%{_chromedir}/%{_lare}.jar
+%{_chromedir}/%{_lare}-unix.jar
+%{_chromedir}/lang-%{_lang}-installed-chrome.txt
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -59,6 +62,10 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.3  2006/07/31 15:19:05  sparky
+- use macros
+- i think this one should be called 'seamonkey-reg-GB.spec'
+
 Revision 1.2  2006/04/17 20:06:04  sparky
 - use %setup to unpack Source0
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/seamonkey-lang-en.spec?r1=1.2&r2=1.3&f=u



More information about the pld-cvs-commit mailing list