summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/fonts/gnu-freefont/tools/utility/freefont-ttf.spec
blob: 0c81d1ba008710d05d2543bdc3972003616d6408 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
# This is an RPM 'spec' file, for use with the Redhat Package Manager
# to make packages for that distribution.

%define fontdir         %{_datadir}/fonts/freefont

Name:      freefont-ttf
Version:   20051206
Release:   1.pingo.1
Summary:   FreeFonts
Group:     User Interface/X
License:   GPL
URL:       http://www.nongnu.org/freefont/
Source:    freefont-ttf-%{version}.tar
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
BuildArch: noarch
Requires:  fontconfig

%description
Freefonts aim to provide a set of free high-quality outline (OpenType,
Truetype, Type 0) UCS fonts, under GNU GPL license.

All the fonts conform to MES-1 (Minimum European Subset) of
Unicode/ISO 10646.

%prep
%setup

%build

%install
/bin/rm -rf $RPM_BUILD_ROOT

#fonts
install -d -m 0755 $RPM_BUILD_ROOT%{fontdir}
install -m 0644 *.ttf  $RPM_BUILD_ROOT%{fontdir}
cd ..

# "touch" all files we've got flagged as %ghost  but which are not 
# present in the RPM_BUILD_ROOT when RPM looks for files
/bin/touch $RPM_BUILD_ROOT%{fontdir}/fonts.cache-1


%clean
/bin/rm -rf $RPM_BUILD_ROOT


%post
if [ -x %{_bindir}/fc-cache ] ; then 
  %{_bindir}/fc-cache %{_datadir}/fonts ; 
fi

%postun
if [ "$1" = "0" ]; then
   if [ -x %{_bindir}/fc-cache ] ; then 
     %{_bindir}/fc-cache %{_datadir}/fonts ; 
   fi
fi


%files
%defattr(0644,root,root,0755)
%doc README
%doc AUTHORS
%doc CREDITS
%doc COPYING
%doc ChangeLog
%dir %{fontdir}
%{fontdir}/*.ttf
%ghost %{fontdir}/fonts.cache-1

%changelog
* Fri Dec  9 2005 Primoz Peterlin <primoz.peterlin@biofiz.mf.uni-lj.si> 20051206-1.pingo.1
- renamed to freefont-ttf

* Tue Dec 06 2005 Rok Papez <rok.papez@lugos.si> 20051206-1.pingo.1
- Updated fonts to version 2005-12-06

* Fri Sep 09 2005 Rok Papez <rok.papez@lugos.si> 20050407-1.pingo.1
- Updated fonts to version 2005-04-07
- Rebuild for Fedora Core 4 / Pingo 4.0

* Sun Oct 06 2003 Rok Papez <rok.papez@lugos.si> 1.0-1
- Created the first release