SPECS: seamonkey-lang-nb.spec - use macros

sparky sparky at pld-linux.org
Mon Jul 31 18:17:23 CEST 2006


Author: sparky                       Date: Mon Jul 31 16:17:23 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- use macros

---- Files affected:
SPECS:
   seamonkey-lang-nb.spec (1.3 -> 1.4) 

---- Diffs:

================================================================
Index: SPECS/seamonkey-lang-nb.spec
diff -u SPECS/seamonkey-lang-nb.spec:1.3 SPECS/seamonkey-lang-nb.spec:1.4
--- SPECS/seamonkey-lang-nb.spec:1.3	Mon Apr 17 22:06:04 2006
+++ SPECS/seamonkey-lang-nb.spec	Mon Jul 31 18:17:18 2006
@@ -1,14 +1,17 @@
 # $Revision$, $Date$
+%define	_lang	nb
+%define	_reg	NO
+%define	_lare	%{_lang}-%{_reg}
 Summary:	Norwegian resources for SeaMonkey
 Summary(pl):	Norweskie pliki językowe dla SeaMonkeya
-Name:		seamonkey-lang-nb
+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}.nb-NO.langpack.xpi
+Source0:	http://ftp.mozilla.org/pub/mozilla.org/seamonkey/releases/%{version}/contrib-localized/seamonkey-%{version}.%{_lare}.langpack.xpi
 # Source0-md5:	935b8004f94a8febefdf78d6a022bb43
-Source1:	http://www.mozilla-enigmail.org/downloads/lang/0.9x/enigmail-nb-NO-0.9x.xpi
+Source1:	http://www.mozilla-enigmail.org/downloads/lang/0.9x/enigmail-%{_lare}-0.9x.xpi
 # Source1-md5:	2aa5734f939734bdc05a29e0f2cf1c3e
 Source2:	gen-installed-chrome.sh
 URL:		http://www.mozilla.org/projects/seamonkey/
@@ -29,20 +32,20 @@
 
 %prep
 %setup -q -c
-unzip -o %{SOURCE1}
+%{__unzip} -o -qq %{SOURCE1}
 install %{SOURCE2} .
-./gen-installed-chrome.sh locale bin/chrome/{NO,nb-NO,nb-unix}.jar \
-	> lang-nb-installed-chrome.txt
-./gen-installed-chrome.sh locale chrome/enigmail-nb-NO.jar \
-	>> lang-nb-installed-chrome.txt
+./gen-installed-chrome.sh locale bin/chrome/{%{_reg},%{_lare},%{_lang}-unix}.jar \
+	> lang-%{_lang}-installed-chrome.txt
+./gen-installed-chrome.sh locale chrome/enigmail-%{_lare}.jar \
+	>> lang-%{_lang}-installed-chrome.txt
 
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT%{_chromedir}
 
-install bin/chrome/{NO,nb-NO,nb-unix}.jar $RPM_BUILD_ROOT%{_chromedir}
-install chrome/enigmail-nb-NO.jar $RPM_BUILD_ROOT%{_chromedir}
-install lang-nb-installed-chrome.txt $RPM_BUILD_ROOT%{_chromedir}
+install bin/chrome/{%{_reg},%{_lare},%{_lang}-unix}.jar $RPM_BUILD_ROOT%{_chromedir}
+install chrome/enigmail-%{_lare}.jar $RPM_BUILD_ROOT%{_chromedir}
+install lang-%{_lang}-installed-chrome.txt $RPM_BUILD_ROOT%{_chromedir}
 cp -r bin/defaults $RPM_BUILD_ROOT%{_datadir}/seamonkey
 
 %clean
@@ -56,13 +59,13 @@
 
 %files
 %defattr(644,root,root,755)
-%{_chromedir}/NO.jar
-%{_chromedir}/nb-NO.jar
-%{_chromedir}/nb-unix.jar
-%{_chromedir}/enigmail-nb-NO.jar
-%{_chromedir}/lang-nb-installed-chrome.txt
-%{_datadir}/seamonkey/defaults/messenger/NO
-%{_datadir}/seamonkey/defaults/profile/NO
+%{_chromedir}/%{_reg}.jar
+%{_chromedir}/%{_lare}.jar
+%{_chromedir}/%{_lang}-unix.jar
+%{_chromedir}/enigmail-%{_lare}.jar
+%{_chromedir}/lang-%{_lang}-installed-chrome.txt
+%{_datadir}/seamonkey/defaults/messenger/%{_reg}
+%{_datadir}/seamonkey/defaults/profile/%{_reg}
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -70,6 +73,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.4  2006/07/31 16:17:18  sparky
+- use macros
+
 Revision 1.3  2006/04/17 20:06:04  sparky
 - use %setup to unpack Source0
 
================================================================

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



More information about the pld-cvs-commit mailing list