]> git.pld-linux.org Git - packages/fonts-TTF-RedHat-liberation.git/blob - fonts-TTF-RedHat-liberation.spec
- rel 1; fix monospace bug (patch from fc); build fonts from sources instead of using...
[packages/fonts-TTF-RedHat-liberation.git] / fonts-TTF-RedHat-liberation.spec
1 Summary:        Fonts to replace commonly used Microsoft Windows Fonts
2 Summary(pl.UTF-8):      Fonty zastępujące popularne fonty z Microsoft Windows
3 Name:           fonts-TTF-RedHat-liberation
4 Version:        1.06.0.20100721
5 Release:        1
6 Epoch:          1
7 License:        GPL v2 + exceptions
8 Group:          Fonts
9 Source0:        https://fedorahosted.org/releases/l/i/liberation-fonts/liberation-fonts-%{version}.tar.gz
10 # Source0-md5:  2f45bd873ab48cf0c3a00fbd350c0e80
11 Source1:        %{name}.fontconfig
12 Patch0:         rh-bug-620273.patch
13 URL:            https://fedorahosted.org/liberation-fonts/
14 BuildRequires:  fontforge >= 20090923
15 BuildRequires:  unzip
16 Requires(post,postun):  fontpostinst
17 Requires:       %{_fontsdir}/TTF
18 Obsoletes:      liberation-fonts-ttf
19 BuildArch:      noarch
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22 %define         _ttffontsdir    %{_fontsdir}/TTF
23
24 %description
25 The Liberation Fonts are intended to be replacements for the three
26 most commonly used fonts on Microsoft systems.
27
28 There are three sets: Sans (a substitute for Arial, Albany, Helvetica,
29 Nimbus Sans L, and Bitstream Vera Sans), Serif (a substitute for Times
30 New Roman, Thorndale, Nimbus Roman, and Bitstream Vera Serif) and Mono
31 (a substitute for Courier New, Cumberland, Courier, Nimbus Mono L, and
32 Bitstream Vera Sans Mono).
33
34 %description -l pl.UTF-8
35 Fonty Liberation mają być zamiennikami trzech najczęściej używanych
36 fontów z systemów Microsoftu.
37
38 Pakiet zawiera trzy zestawy: Sans (zamiennik dla Arial, Albany,
39 Helvetica, Nimbus Sans L i Bitstream Vera Sans), Serif (zamiennik dla
40 Times New Roman, Thorndale, Nimbus Roman i Bitstream Vera Serif) i
41 Mono (zamiennik dla Courier New, Cumberland, Courier, Nimbus Mono L i
42 Bitstream Vera Sans Mono).
43
44 %prep
45 %setup -q -n liberation-fonts-%{version}
46 %patch0 -p0
47
48 %build
49 %{__make}
50
51 %install
52 rm -rf $RPM_BUILD_ROOT
53 install -d $RPM_BUILD_ROOT%{_ttffontsdir}
54 install -d $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.avail
55 install -d $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.d
56
57 cp -a liberation-*/*.ttf $RPM_BUILD_ROOT%{_ttffontsdir}
58 install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.avail/60-liberation.conf
59 ln -s ../conf.avail/60-liberation.conf $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.d
60
61 %clean
62 rm -rf $RPM_BUILD_ROOT
63
64 %post
65 fontpostinst TTF
66
67 %postun
68 fontpostinst TTF
69
70 %files
71 %defattr(644,root,root,755)
72 %doc AUTHORS ChangeLog License.txt README
73 %{_ttffontsdir}/LiberationMono-*.ttf
74 %{_ttffontsdir}/LiberationSans-*.ttf
75 %{_ttffontsdir}/LiberationSansNarrow-*.ttf
76 %{_ttffontsdir}/LiberationSerif-*.ttf
77 %{_sysconfdir}/fonts/conf.avail/60-liberation.conf
78 %{_sysconfdir}/fonts/conf.d/60-liberation.conf
This page took 0.275068 seconds and 4 git commands to generate.