[google-phetsarath-fonts/el5] follow epel5 specific guidelines

Parag Nemade pnemade at fedoraproject.org
Tue Aug 19 05:00:58 UTC 2014


commit 81793a70a6255d06bc5b87aeecca94082504077e
Author: Parag Nemade <pnemade at redhat.com>
Date:   Tue Aug 19 10:30:32 2014 +0530

    follow epel5 specific guidelines

 google-phetsarath-fonts.spec |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/google-phetsarath-fonts.spec b/google-phetsarath-fonts.spec
index c11990c..6d36255 100644
--- a/google-phetsarath-fonts.spec
+++ b/google-phetsarath-fonts.spec
@@ -13,6 +13,7 @@ Source0:        http://themes.googleusercontent.com/static/fonts/earlyaccess/phe
 Source1:        %{name}-fontconfig.conf
 
 BuildArch:      noarch
+BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildRequires:  fontpackages-devel
 Requires:       fontpackages-filesystem
 
@@ -28,6 +29,8 @@ Posts and Telecommunications of the Laos government.
 
 
 %install
+rm -fr %{buildroot}
+
 install -m 0755 -d %{buildroot}%{_fontdir}
 install -m 0644 -p *.ttf %{buildroot}%{_fontdir}
 
@@ -39,6 +42,8 @@ install -m 0644 -p %{SOURCE1} \
 ln -s %{_fontconfig_templatedir}/%{fontconf} \
       %{buildroot}%{_fontconfig_confdir}/%{fontconf}
 
+%clean
+rm -fr %{buildroot}
 
 %_font_pkg -f %{fontconf} *.ttf
 


More information about the scm-commits mailing list