[mph-2b-damase-fonts/el5] Add epel5 specific guidelines

Parag Nemade pnemade at fedoraproject.org
Tue Aug 19 05:01:21 UTC 2014


commit c22ab065e0a1497cfa4ecbe16bec9447b0c5f315
Author: Parag Nemade <pnemade at redhat.com>
Date:   Tue Aug 19 10:31:08 2014 +0530

    Add epel5 specific guidelines

 mph-2b-damase-fonts.spec |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/mph-2b-damase-fonts.spec b/mph-2b-damase-fonts.spec
index 7485d82..12487d6 100644
--- a/mph-2b-damase-fonts.spec
+++ b/mph-2b-damase-fonts.spec
@@ -14,6 +14,7 @@ Source0:        http://www.wazu.jp/downloads/damase_v.2.zip
 Source1:        %{name}-fontconfig.conf
 
 BuildArch:      noarch
+BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildRequires:  fontpackages-devel
 Requires:       fontpackages-filesystem
 
@@ -26,6 +27,8 @@ Mark Williamson's MPH 2B Damase is a free font encoding many non-Latin scripts.
 %build
 
 %install
+rm -fr %{buildroot}
+
 install -m 0755 -d %{buildroot}%{_fontdir}
 install -m 0644 -p *.ttf %{buildroot}%{_fontdir}
 
@@ -37,6 +40,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 fonts-bugs mailing list