[tharlon-fonts/el5] follow epel5 specific guidelines
Parag Nemade
pnemade at fedoraproject.org
Tue Aug 19 05:31:23 UTC 2014
commit 16c4c2a99956d193d19834c96e78c7b7c82255e3
Author: Parag Nemade <pnemade at redhat.com>
Date: Tue Aug 19 11:01:09 2014 +0530
follow epel5 specific guidelines
tharlon-fonts.spec | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/tharlon-fonts.spec b/tharlon-fonts.spec
index 42074e2..e6031ef 100644
--- a/tharlon-fonts.spec
+++ b/tharlon-fonts.spec
@@ -14,6 +14,7 @@ Source1: %{name}-fontconfig.conf
Source2: http://tharlon-font.googlecode.com/files/OFL.txt
BuildArch: noarch
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: fontpackages-devel dos2unix
Requires: fontpackages-filesystem
@@ -36,6 +37,8 @@ dos2unix OFL.txt
%install
+rm -fr %{buildroot}
+
install -m 0755 -d %{buildroot}%{_fontdir}
install -m 0644 -p *.ttf %{buildroot}%{_fontdir}
@@ -47,6 +50,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