madan-fonts/madan-fonts.spec

77 lines
1.8 KiB
RPMSpec

%define fontdir %{_datadir}/fonts/madan
%define fontname madan
Name: %{fontname}-fonts
Version: 1.0
Release: 8%{?dist}
Summary: Font for Nepali language
Group: User Interface/X
# No version specified.
License: GPL+
URL: http://madanpuraskar.org/
Source: http://madanpuraskar.org/detail_guide/fonts/Madan.ttf
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
%description
This package provides the Madan font for Nepali made by the
Madan Puraskar Pustakalaya project.
%prep
%setup -c -T
cp -p %{SOURCE0} .
%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 /usr/share/fonts
fi
%postun
if [ "$1" = "0" ]; then
if [ -x %{_bindir}/fc-cache ]; then
%{_bindir}/fc-cache /usr/share/fonts
fi
fi
%files
%defattr(-,root,root,-)
%dir %{fontdir}
%{fontdir}/*.ttf
%changelog
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
* Thu Aug 7 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.0-7
- fix license tag
* Mon Oct 15 2007 Rahul Bhalerao <rbhalera@redhat.com> - 1.0-6.fc8
- Spec update as per review
* Thu Oct 11 2007 Rahul Bhalerao <rbhalera@redhat.com> - 1.0-5.fc8
- Spec update as per reveiw
* Wed Sep 26 2007 Rahul Bhalerao <rbhalera@redhat.com> - 1.0-4.fc8
- Spec update as per review
* Fri Sep 21 2007 Rahul Bhalerao <rbahlera@redhat.com> - 1.0-3.fc8
- Added LICENSE as Source1
* Thu Sep 20 2007 Rahul Bhalerao <rbhalera@redhat.com> - 1.0-2.fc8
- Removed use of tarball and ghost files
* Thu Sep 13 2007 Rahul Bhalerao <rbhalera@redhat.com> - 1.0-1.fc8
- Initial packaging