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