Author: jstanley
Update of /cvs/pkgs/rpms/brettfont-fonts/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv4193
Modified Files:
brettfont-fonts.spec
Log Message:
update to new packaging guidelines
Index: brettfont-fonts.spec
===================================================================
RCS file: /cvs/pkgs/rpms/brettfont-fonts/devel/brettfont-fonts.spec,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- brettfont-fonts.spec 24 Feb 2009 05:49:03 -0000 1.4
+++ brettfont-fonts.spec 9 Mar 2009 04:40:20 -0000 1.5
@@ -1,6 +1,4 @@
-%define fontname brettfont
-%define fontdir %{_datadir}/fonts/%{fontname}
-%define fontconfdir %{_sysconfdir}/fonts/conf.d
+%define fontname brettfont
Name: %{fontname}-fonts
Version: 20080506
@@ -13,47 +11,42 @@
Source0: BrettFont1.1.ttf
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
BuildArch: noarch
+BuildRequires: fontpackages-devel
+Requires: fontpackages-filesystem
%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}/brettfont.ttf
+rm -fr %{buildroot}
+install -m 0755 -d %{buildroot}%{_fontdir}
+install -m 0644 -p %{SOURCE0} %{buildroot}%{_fontdir}/brettfont.ttf
%clean
-rm -rf $RPM_BUILD_ROOT
-
+rm -fr %{buildroot}
-%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
+%_font_pkg *.ttf
-
-%files
-%defattr(644,root,root,755)
%doc
-%dir %{fontdir}/
-%{fontdir}/*.ttf
+
+%dir %{_fontdir}
%changelog
+* Sun Mar 8 2009 Jon Stanley <[email protected]> - 20080506-5
+- Update to new packaging guidelines
+
* Mon Feb 23 2009 Fedora Release Engineering <[email protected]>
- 20080506-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
@@ -71,3 +64,4 @@
* Mon May 05 2008 Jon Stanley <[email protected]> - 1.0-1
- Initial package
+
_______________________________________________
Fedora-fonts-bugs-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/fedora-fonts-bugs-list