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

sparky sparky at pld-linux.org
Mon Jul 31 17:53:46 CEST 2006


Author: sparky                       Date: Mon Jul 31 15:53:46 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- use macros

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

---- Diffs:

================================================================
Index: SPECS/seamonkey-lang-tr.spec
diff -u SPECS/seamonkey-lang-tr.spec:1.2 SPECS/seamonkey-lang-tr.spec:1.3
--- SPECS/seamonkey-lang-tr.spec:1.2	Mon Apr 17 22:06:04 2006
+++ SPECS/seamonkey-lang-tr.spec	Mon Jul 31 17:53:40 2006
@@ -1,12 +1,15 @@
 # $Revision$, $Date$
+%define	_lang	tr
+%define	_reg	TR
+%define	_lare	%{_lang}-%{_reg}
 Summary:	Turkish resources for SeaMonkey
 Summary(pl):	Tureckie pliki językowe dla SeaMonkeya
-Name:		seamonkey-lang-tr
+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}.tr-TR.langpack.xpi
+Source0:	http://ftp.mozilla.org/pub/mozilla.org/seamonkey/releases/%{version}/contrib-localized/seamonkey-%{version}.%{_lare}.langpack.xpi
 # Source0-md5:	ea0a0175ab0f6d39a11f14102787cd92
 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 chrome/{TR,tr-TR,tr-unix}.jar \
-	> lang-tr-installed-chrome.txt
+./gen-installed-chrome.sh locale chrome/{%{_reg},%{_lare},%{_lang}-unix}.jar \
+	> lang-%{_lang}-installed-chrome.txt
 
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT%{_chromedir}
 
-install chrome/{TR,tr-TR,tr-unix}.jar $RPM_BUILD_ROOT%{_chromedir}
-install lang-tr-installed-chrome.txt $RPM_BUILD_ROOT%{_chromedir}
+install chrome/{%{_reg},%{_lare},%{_lang}-unix}.jar $RPM_BUILD_ROOT%{_chromedir}
+install lang-%{_lang}-installed-chrome.txt $RPM_BUILD_ROOT%{_chromedir}
 cp -r defaults $RPM_BUILD_ROOT%{_datadir}/seamonkey
 
 %clean
@@ -50,12 +53,12 @@
 
 %files
 %defattr(644,root,root,755)
-%{_chromedir}/tr-TR.jar
-%{_chromedir}/tr-unix.jar
-%{_chromedir}/TR.jar
-%{_chromedir}/lang-tr-installed-chrome.txt
-%{_datadir}/seamonkey/defaults/messenger/TR
-%{_datadir}/seamonkey/defaults/profile/TR
+%{_chromedir}/%{_lare}.jar
+%{_chromedir}/%{_lang}-unix.jar
+%{_chromedir}/%{_reg}.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
@@ -63,6 +66,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.3  2006/07/31 15:53:40  sparky
+- use macros
+
 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-tr.spec?r1=1.2&r2=1.3&f=u



More information about the pld-cvs-commit mailing list