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

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


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

---- Files affected:
SPECS:
   seamonkey-lang-sv.spec (1.4 -> 1.5) 

---- Diffs:

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

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



More information about the pld-cvs-commit mailing list