From f8348f9b586f95fa4ebaeb8260f043ef8a30d7ef Mon Sep 17 00:00:00 2001 From: Rahul Bhalerao Date: Tue, 16 Oct 2007 16:15:51 +0000 Subject: [PATCH] Initial import --- .cvsignore | 1 + kacst-fonts.spec | 59 ++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 61 insertions(+) create mode 100644 kacst-fonts.spec diff --git a/.cvsignore b/.cvsignore index e69de29..2cb1b6a 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +kacst_fonts_1.6.2.tar.bz2 diff --git a/kacst-fonts.spec b/kacst-fonts.spec new file mode 100644 index 0000000..e057909 --- /dev/null +++ b/kacst-fonts.spec @@ -0,0 +1,59 @@ +%define fontname kacst +%define fontdir %{_datadir}/fonts/%{fontname} + +Name: %{fontname}-fonts +Version: 1.6.2 +Release: 2%{?dist} +License: GPLv2 +Source: http://downloads.sourceforge.net/sourceforge/arabeyes/%{fontname}_fonts_%{version}.tar.bz2 +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildArch: noarch +BuildRequires: dos2unix +Group: User Interface/X +Summary: Fonts for arabic from arabeyes project +URL: http://www.arabeyes.org/resources.php + +%description +This package contains fonts for the display of Arabic +from the King Abdulaziz City for Science & Technology(kacst). + +%prep +%setup -q -n KacstArabicFonts-1.6.2 +find . -not -name \*.ttf -type f -exec dos2unix -k {} \; + +%build +echo "Nothing to do in Build." + +%install +rm -rf %{buildroot} + +install -m 0755 -d %{buildroot}%{fontdir} +install -m 0644 -p *.ttf %{buildroot}%{fontdir} + +%clean +rm -rf %{buildroot} + +%post +if [ -x %{_bindir}/fc-cache ]; then + %{_bindir}/fc-cache %{fontdir} +fi + +%postun +if [ "$1" = "0" ]; then + if [ -x %{_bindir}/fc-cache ]; then + %{_bindir}/fc-cache %{fontdir} + fi +fi + +%files +%defattr(-,root,root,-) +%doc *.TXT +%dir %{fontdir} +%{fontdir}/*.ttf + +%changelog +* Mon Oct 15 2007 Rahul Bhalerao - 1.6.2-2.fc8 +- Used dos2unix + +* Thu Oct 12 2007 Rahul Bhalerao - 1.6.2-1.fc8 +- Initial Packaging diff --git a/sources b/sources index e69de29..edbbcfc 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +3f914b65dc4e0cc7b30e1d6b263f1d16 kacst_fonts_1.6.2.tar.bz2