[trabajo-fonts/el5] follow epel5 specific guidelines
Parag Nemade
pnemade at fedoraproject.org
Tue Aug 19 05:12:17 UTC 2014
commit a77ccac061956286551c2965bcb5876cf72791cf
Author: Parag Nemade <pnemade at redhat.com>
Date: Tue Aug 19 10:42:03 2014 +0530
follow epel5 specific guidelines
trabajo-fonts.spec | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/trabajo-fonts.spec b/trabajo-fonts.spec
index 371185e..460b6bc 100644
--- a/trabajo-fonts.spec
+++ b/trabajo-fonts.spec
@@ -14,6 +14,7 @@ Source0: http://openfontlibrary.org/assets/downloads/trabajo/d8bc760f0333
Source1: %{name}-fontconfig.conf
BuildArch: noarch
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: fontpackages-devel
BuildRequires: dos2unix
Requires: fontpackages-filesystem
@@ -32,6 +33,8 @@ dos2unix OFL.txt
%build
%install
+rm -fr %{buildroot}
+
install -m 0755 -d %{buildroot}%{_fontdir}
install -m 0644 -p *.otf %{buildroot}%{_fontdir}
@@ -43,6 +46,8 @@ install -m 0644 -p %{SOURCE1} \
ln -s %{_fontconfig_templatedir}/%{fontconf} \
%{buildroot}%{_fontconfig_confdir}/%{fontconf}
+%clean
+rm -fr %{buildroot}
%_font_pkg -f %{fontconf} *.otf
More information about the fonts-bugs
mailing list