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

sparky sparky at pld-linux.org
Mon Jul 31 16:39:22 CEST 2006


Author: sparky                       Date: Mon Jul 31 14:39:22 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- use macros

---- Files affected:
SPECS:
   seamonkey-lang-pl.spec (1.6 -> 1.7) 

---- Diffs:

================================================================
Index: SPECS/seamonkey-lang-pl.spec
diff -u SPECS/seamonkey-lang-pl.spec:1.6 SPECS/seamonkey-lang-pl.spec:1.7
--- SPECS/seamonkey-lang-pl.spec:1.6	Mon Jul 31 12:59:13 2006
+++ SPECS/seamonkey-lang-pl.spec	Mon Jul 31 16:39:17 2006
@@ -1,14 +1,17 @@
 # $Revision$, $Date$
+%define	_lang	pl
+%define	_reg	PL
+%define _lare	%{_lang}-%{_reg}
 Summary:	Polish resources for SeaMonkey
 Summary(pl):	Polskie pliki językowe dla SeaMonkeya
-Name:		seamonkey-lang-pl
+Name:		seamonkey-lang-%{_lang}
 Version:	1.0.3
 Release:	1
 License:	GPL
 Group:		X11/Applications/Networking
-Source0:	http://ftp.mozilla.org/pub/mozilla.org/seamonkey/releases/%{version}/contrib-localized/seamonkey-%{version}.pl-PL.langpack.xpi
+Source0:	http://ftp.mozilla.org/pub/mozilla.org/seamonkey/releases/%{version}/contrib-localized/seamonkey-%{version}.%{_lare}.langpack.xpi
 # Source0-md5:	41a828a165b8cd5c20e1fdadf6258246
-Source1:	http://www.mozilla-enigmail.org/downloads/lang/0.9x/enigmail-pl-PL-0.9x.xpi
+Source1:	http://www.mozilla-enigmail.org/downloads/lang/0.9x/enigmail-%{_lare}-0.9x.xpi
 # Source1-md5:	5061fb4a0b321644a1716aea831cf281
 Source2:	gen-installed-chrome.sh
 URL:		http://www.mozilla.org/projects/seamonkey/
@@ -30,23 +33,23 @@
 
 %prep
 %setup -q -c
-unzip -o %{SOURCE1}
+%{__unzip} -o -qq %{SOURCE1}
 install %{SOURCE2} .
-./gen-installed-chrome.sh locale bin/chrome/{PL,pl-PL,pl-unix}.jar \
-	> lang-pl-installed-chrome.txt
-./gen-installed-chrome.sh locale chrome/enigmail-pl-PL.jar \
-	>> lang-pl-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/{PL,pl-PL,pl-unix}.jar $RPM_BUILD_ROOT%{_chromedir}
-install chrome/enigmail-pl-PL.jar $RPM_BUILD_ROOT%{_chromedir}
-install lang-pl-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/{searchplugins,defaults,components/myspell} $RPM_BUILD_ROOT%{_datadir}/seamonkey
 rm $RPM_BUILD_ROOT%{_datadir}/seamonkey/searchplugins/google.*
-rename PL pl-PL $RPM_BUILD_ROOT%{_datadir}/seamonkey/myspell/PL.{aff,dic}
+rename PL %{_lare} $RPM_BUILD_ROOT%{_datadir}/seamonkey/myspell/PL.{aff,dic}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -59,14 +62,14 @@
 
 %files
 %defattr(644,root,root,755)
-%{_chromedir}/PL.jar
-%{_chromedir}/pl-PL.jar
-%{_chromedir}/pl-unix.jar
-%{_chromedir}/enigmail-pl-PL.jar
-%{_chromedir}/lang-pl-installed-chrome.txt
+%{_chromedir}/%{_reg}.jar
+%{_chromedir}/%{_lare}.jar
+%{_chromedir}/%{_lang}-unix.jar
+%{_chromedir}/enigmail-%{_lare}.jar
+%{_chromedir}/lang-%{_lang}-installed-chrome.txt
 %{_datadir}/seamonkey/searchplugins/*
-%{_datadir}/seamonkey/defaults/messenger/PL
-%{_datadir}/seamonkey/defaults/profile/PL
+%{_datadir}/seamonkey/defaults/messenger/%{_reg}
+%{_datadir}/seamonkey/defaults/profile/%{_reg}
 %{_datadir}/seamonkey/myspell/*
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
@@ -75,6 +78,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.7  2006/07/31 14:39:17  sparky
+- use macros
+
 Revision 1.6  2006/07/31 10:59:13  dzeus
 - up to 1.0.3
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/seamonkey-lang-pl.spec?r1=1.6&r2=1.7&f=u



More information about the pld-cvs-commit mailing list