]> git.pld-linux.org Git - packages/fonts-TTF-freefont.git/blob - fonts-TTF-freefont.spec
- rel 3; install fontconfig files (from fc)
[packages/fonts-TTF-freefont.git] / fonts-TTF-freefont.spec
1 Summary:        Free UCS scalable fonts in TrueType format
2 Summary(pl.UTF-8):      Wolnodostępne skalowalne fonty UCS w formacie TrueType
3 Name:           fonts-TTF-freefont
4 Version:        20120503
5 Release:        3
6 License:        GPL v2
7 Group:          Fonts
8 Source0:        http://ftp.gnu.org/gnu/freefont/freefont-ttf-%{version}.zip
9 # Source0-md5:  879b76d2e3c8003d567b555743f39154
10 Source1:        %{name}-mono.conf
11 Source2:        %{name}-sans.conf
12 Source3:        %{name}-serif.conf
13 URL:            http://www.gnu.org/software/freefont/
14 BuildRequires:  unzip
15 Requires(post,postun):  fontpostinst
16 BuildArch:      noarch
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19 %define         ttffontsdir     %{_fontsdir}/TTF
20
21 %description
22 This project aims to provide a set of free scalable fonts covering the
23 ISO 10646/Unicode UCS (Universal Character Set).
24
25 %description -l pl.UTF-8
26 Celem tego projektu jest udostępnienie zestawu wolnodostępnych fontów
27 skalowalnych pokrywających zakres uniwersalnego zestawu znaków ISO
28 10646/Unicode.
29
30 %prep
31 %setup -q -n freefont-%{version}
32
33 %install
34 rm -rf $RPM_BUILD_ROOT
35 install -d $RPM_BUILD_ROOT{%{ttffontsdir},%{_sysconfdir}/fonts/conf.d,%{_datadir}/fontconfig/conf.avail}
36
37 cp -p *.ttf $RPM_BUILD_ROOT%{ttffontsdir}
38
39 cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/fontconfig/conf.avail/69-freefont-ttf-mono.conf
40 cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_datadir}/fontconfig/conf.avail/69-freefont-ttf-sans.conf
41 cp -p %{SOURCE3} $RPM_BUILD_ROOT%{_datadir}/fontconfig/conf.avail/69-freefont-ttf-serif.conf
42
43 ln -s %{_datadir}/fontconfig/conf.avail/69-freefont-ttf-mono.conf $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.d
44 ln -s %{_datadir}/fontconfig/conf.avail/69-freefont-ttf-sans.conf $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.d
45 ln -s %{_datadir}/fontconfig/conf.avail/69-freefont-ttf-serif.conf $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.d
46
47
48 %clean
49 rm -rf $RPM_BUILD_ROOT
50
51 %post
52 fontpostinst TTF
53
54 %postun
55 fontpostinst TTF
56
57 %files
58 %defattr(644,root,root,755)
59 %doc AUTHORS CREDITS ChangeLog README
60 %{ttffontsdir}/FreeMono*.ttf
61 %{ttffontsdir}/FreeSans*.ttf
62 %{ttffontsdir}/FreeSerif*.ttf
63 %{_datadir}/fontconfig/conf.avail/69-freefont-ttf-*.conf
64 %{_sysconfdir}/fonts/conf.d/69-freefont-ttf-*.conf
This page took 0.07283 seconds and 3 git commands to generate.