2007-10-17 11:47:38 +00:00
|
|
|
%define fontname lklug
|
|
|
|
%define fontdir %{_datadir}/fonts/%{fontname}
|
|
|
|
|
|
|
|
Name: %{fontname}-fonts
|
|
|
|
Version: 0.2.2
|
2008-06-27 09:17:16 +00:00
|
|
|
Release: 6%{?dist}
|
2007-10-17 11:47:38 +00:00
|
|
|
License: GPLv2+
|
|
|
|
Source: lklug-%{version}.tar.gz
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
BuildArch: noarch
|
2008-07-23 01:51:34 +00:00
|
|
|
# provides can be dropped for F11
|
2008-06-27 09:17:16 +00:00
|
|
|
Provides: fonts-sinhala = 0.2.2-3
|
|
|
|
Obsoletes: fonts-sinhala <= 0.2.2-2
|
2007-10-17 11:47:38 +00:00
|
|
|
Group: User Interface/X
|
|
|
|
Summary: Fonts for Sinhala language
|
|
|
|
URL: http://sinhala.sourceforge.net/
|
|
|
|
|
|
|
|
%description
|
|
|
|
The lklug-fonts package contains fonts for the display of
|
|
|
|
Sinhala. The original font for TeX/LaTeX is developed by Yannis
|
|
|
|
Haralambous and are in GPL. OTF tables are added by Anuradha
|
|
|
|
Ratnaweera and Harshani Devadithya.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{fontname}-%{version}
|
|
|
|
|
|
|
|
%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}/fonts
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc license.txt COPYING
|
|
|
|
%dir %{fontdir}
|
|
|
|
%{fontdir}/*.ttf
|
|
|
|
|
|
|
|
%changelog
|
2008-06-27 09:17:16 +00:00
|
|
|
* Fri Jun 27 2008 Rahul Bhalerao <rbhalera@redhat.com> - 0.2.2-6
|
|
|
|
- Updated spec to obsolete fonts-sinhala
|
|
|
|
|
2007-10-17 11:47:38 +00:00
|
|
|
* Wed Oct 17 2007 Rahul Bhalerao <rbhalera@redhat.com> - 0.2.2-5
|
|
|
|
- Added sfd file into srpm
|
|
|
|
|
|
|
|
* Thu Oct 11 2007 Rahul Bhalerao <rbhalera@redhat.com> - 0.2.2-4
|
|
|
|
- Updated according to the review
|
|
|
|
|
|
|
|
* Thu Oct 04 2007 Rahul Bhalerao <rbhalera@redhat.com> - 0.2.2-3
|
|
|
|
- Using common template of font spec file
|
|
|
|
|
|
|
|
* Thu Oct 04 2007 Rahul Bhalerao <rbhalera@redhat.com> - 0.2.2-2
|
|
|
|
- Spec cleanup
|
|
|
|
|
|
|
|
* Thu Oct 04 2007 Rahul Bhalerao <rbhalera@redhat.com> - 0.2.2-1
|
|
|
|
- Split package from fonts-sinhala to reflect upstream project name
|