Spec update

This commit is contained in:
Rahul Bhalerao 2009-03-10 16:48:42 +00:00
parent e3608cb9d5
commit 39b14fb8a2

View File

@ -1,61 +1,55 @@
%define fontname lklug
%define fontdir %{_datadir}/fonts/%{fontname}
Name: %{fontname}-fonts
Version: 0.2.2
Release: 7%{?dist}
License: GPLv2+
Source: lklug-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
# provides can be dropped for F11
Provides: fonts-sinhala = 0.2.2-3
Obsoletes: fonts-sinhala <= 0.2.2-2
Group: User Interface/X
Summary: Fonts for Sinhala language
URL: http://sinhala.sourceforge.net/
Name: %{fontname}-fonts
# Do not trust font metadata versionning unless you've checked upstream does
# update versions on file changes. When in doubt use the timestamp of the most
# recent file as version.
Version: 0.2.2
Release: 8%{?dist}
Summary: Fonts for Sinhala language
Group: User Interface/X
License: GPLv2+
URL: http://sinhala.sourceforge.net/
Source: lklug-%{version}.tar.gz
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
BuildArch: noarch
BuildRequires: fontpackages-devel
Requires: fontpackages-filesystem
%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}
rm -fr %{buildroot}
install -m 0755 -d %{buildroot}%{fontdir}
install -m 0644 -p *.ttf %{buildroot}%{fontdir}
install -m 0755 -d %{buildroot}%{_fontdir}
install -m 0644 -p *.ttf %{buildroot}%{_fontdir}
echo %{fontdir}
%clean
rm -rf %{buildroot}
rm -fr %{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,-)
%_font_pkg *.ttf
%doc license.txt COPYING
%dir %{fontdir}
%{fontdir}/*.ttf
%dir %{_fontdir}
%changelog
* Mon Mar 09 2009 Rahul Bhalerao <rbhalera@redhat.com> - 0.2.2-8
- Following new font packaging guidelines
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.2-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
@ -69,7 +63,7 @@ fi
- 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
- Using common template of font spec file
* Thu Oct 04 2007 Rahul Bhalerao <rbhalera@redhat.com> - 0.2.2-2
- Spec cleanup