diff --git a/brettfont-fonts.spec b/brettfont-fonts.spec new file mode 100644 index 0000000..e1f0698 --- /dev/null +++ b/brettfont-fonts.spec @@ -0,0 +1,64 @@ +%define fontname brettfont +%define fontdir %{_datadir}/fonts/%{fontname} +%define fontconfdir %{_sysconfdir}/fonts/conf.d + +Name: %{fontname}-fonts +Version: 20080506 +Release: 1%{?dist} +Summary: A handwriting font + +Group: User Interface/X +License: OFL +URL: http://openfontlibrary.org/media/files/brettalton/205 +Source0: http://openfontlibrary.org/people/brettalton/brettalton_-_Brett_Font.ttf +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildArch: noarch + +%description +A handwriting font made by Brett Alton. + +%prep + +%build + + +%install +rm -rf $RPM_BUILD_ROOT + +install -dm 755 $RPM_BUILD_ROOT%{fontdir} +install -pm 644 %{SOURCE0} $RPM_BUILD_ROOT%{fontdir} + + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%post +if [ -x %{_bindir}/fc-cache ] ; then + %{_bindir}/fc-cache -f %{fontdir} || : +fi + +%postun +if [ $1 -eq 0 -a -x %{_bindir}/fc-cache ] ; then + %{_bindir}/fc-cache -f %{fontdir} || : +fi + + +%files +%defattr(644,root,root,755) +%doc +%dir %{fontdir}/ +%{fontdir}/*.ttf + + +%changelog +* Tue May 06 2008 Jon Stanley - 20080506-1 +- Bump version, remove %%prep cp, change %%install + +* Mon May 05 2008 Jon Stanley - 1.0-2 +- Changed %%description + +* Mon May 05 2008 Jon Stanley - 1.0-1 +- Initial package diff --git a/sources b/sources index e69de29..5ce2fa8 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +32ef0129f062e1763f900e58f864d4c3 brettalton_-_Brett_Font.ttf