| 1 |
# This is an RPM 'spec' file, for use with the Redhat Package Manager |
| 2 |
# to make packages for that distribution. |
| 3 |
|
| 4 |
%define fontdir %{_datadir}/fonts/freefont |
| 5 |
|
| 6 |
Name: freefont-ttf |
| 7 |
Version: 20051206 |
| 8 |
Release: 1.pingo.1 |
| 9 |
Summary: FreeFonts |
| 10 |
Group: User Interface/X |
| 11 |
License: GPL |
| 12 |
URL: http://www.nongnu.org/freefont/ |
| 13 |
Source: freefont-ttf-%{version}.tar |
| 14 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot |
| 15 |
BuildArch: noarch |
| 16 |
Requires: fontconfig |
| 17 |
|
| 18 |
%description |
| 19 |
Freefonts aim to provide a set of free high-quality outline (OpenType, |
| 20 |
Truetype, Type 0) UCS fonts, under GNU GPL license. |
| 21 |
|
| 22 |
All the fonts conform to MES-1 (Minimum European Subset) of |
| 23 |
Unicode/ISO 10646. |
| 24 |
|
| 25 |
%prep |
| 26 |
%setup |
| 27 |
|
| 28 |
%build |
| 29 |
|
| 30 |
%install |
| 31 |
/bin/rm -rf $RPM_BUILD_ROOT |
| 32 |
|
| 33 |
#fonts |
| 34 |
install -d -m 0755 $RPM_BUILD_ROOT%{fontdir} |
| 35 |
install -m 0644 *.ttf $RPM_BUILD_ROOT%{fontdir} |
| 36 |
cd .. |
| 37 |
|
| 38 |
# "touch" all files we've got flagged as %ghost but which are not |
| 39 |
# present in the RPM_BUILD_ROOT when RPM looks for files |
| 40 |
/bin/touch $RPM_BUILD_ROOT%{fontdir}/fonts.cache-1 |
| 41 |
|
| 42 |
|
| 43 |
%clean |
| 44 |
/bin/rm -rf $RPM_BUILD_ROOT |
| 45 |
|
| 46 |
|
| 47 |
%post |
| 48 |
if [ -x %{_bindir}/fc-cache ] ; then |
| 49 |
%{_bindir}/fc-cache %{_datadir}/fonts ; |
| 50 |
fi |
| 51 |
|
| 52 |
%postun |
| 53 |
if [ "$1" = "0" ]; then |
| 54 |
if [ -x %{_bindir}/fc-cache ] ; then |
| 55 |
%{_bindir}/fc-cache %{_datadir}/fonts ; |
| 56 |
fi |
| 57 |
fi |
| 58 |
|
| 59 |
|
| 60 |
%files |
| 61 |
%defattr(0644,root,root,0755) |
| 62 |
%doc README |
| 63 |
%doc AUTHORS |
| 64 |
%doc CREDITS |
| 65 |
%doc COPYING |
| 66 |
%doc ChangeLog |
| 67 |
%dir %{fontdir} |
| 68 |
%{fontdir}/*.ttf |
| 69 |
%ghost %{fontdir}/fonts.cache-1 |
| 70 |
|
| 71 |
%changelog |
| 72 |
* Fri Dec 9 2005 Primoz Peterlin <[email protected]> 20051206-1.pingo.1 |
| 73 |
- renamed to freefont-ttf |
| 74 |
|
| 75 |
* Tue Dec 06 2005 Rok Papez <[email protected]> 20051206-1.pingo.1 |
| 76 |
- Updated fonts to version 2005-12-06 |
| 77 |
|
| 78 |
* Fri Sep 09 2005 Rok Papez <[email protected]> 20050407-1.pingo.1 |
| 79 |
- Updated fonts to version 2005-04-07 |
| 80 |
- Rebuild for Fedora Core 4 / Pingo 4.0 |
| 81 |
|
| 82 |
* Sun Oct 06 2003 Rok Papez <[email protected]> 1.0-1 |
| 83 |
- Created the first release |