]> git.pld-linux.org Git - packages/fonts-TTF-RedHat-liberation1.git/blob - fonts-TTF-RedHat-liberation1.spec
- up to 1.07.4
[packages/fonts-TTF-RedHat-liberation1.git] / fonts-TTF-RedHat-liberation1.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-liberation1
4 Version:        1.07.4
5 Release:        1
6 License:        GPL v2 + exceptions
7 Group:          Fonts
8 Source0:        https://fedorahosted.org/releases/l/i/liberation-fonts/liberation-fonts-%{version}.tar.gz
9 # Source0-md5:  29e1482c6e568503138f7420597e635d
10 Source1:        liberation-fonts-mono.conf
11 Source2:        liberation-fonts-sans.conf
12 Source3:        liberation-fonts-serif.conf
13 Source4:        liberation-fonts-narrow.conf
14 URL:            https://fedorahosted.org/liberation-fonts/
15 BuildRequires:  fontforge >= 20090923
16 BuildRequires:  fonttools
17 Requires(post,postun):  fontpostinst
18 Requires:       %{_fontsdir}/TTF
19 Obsoletes:      liberation-fonts-ttf
20 Obsoletes:      fonts-TTF-RedHat-liberation
21 BuildArch:      noarch
22 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24 %define         _ttffontsdir    %{_fontsdir}/TTF
25
26 %description
27 The Liberation Fonts are intended to be replacements for the three
28 most commonly used fonts on Microsoft systems.
29
30 There are three sets: Sans (a substitute for Arial, Albany, Helvetica,
31 Nimbus Sans L, and Bitstream Vera Sans), Serif (a substitute for Times
32 New Roman, Thorndale, Nimbus Roman, and Bitstream Vera Serif) and Mono
33 (a substitute for Courier New, Cumberland, Courier, Nimbus Mono L, and
34 Bitstream Vera Sans Mono).
35
36 %description -l pl.UTF-8
37 Fonty Liberation mają być zamiennikami trzech najczęściej używanych
38 fontów z systemów Microsoftu.
39
40 Pakiet zawiera trzy zestawy: Sans (zamiennik dla Arial, Albany,
41 Helvetica, Nimbus Sans L i Bitstream Vera Sans), Serif (zamiennik dla
42 Times New Roman, Thorndale, Nimbus Roman i Bitstream Vera Serif) i
43 Mono (zamiennik dla Courier New, Cumberland, Courier, Nimbus Mono L i
44 Bitstream Vera Sans Mono).
45
46 %prep
47 %setup -q -n liberation-fonts-%{version}
48
49 %build
50 %{__make}
51 mv liberation-fonts-ttf-%{version}/* .
52
53 %install
54 rm -rf $RPM_BUILD_ROOT
55 install -d $RPM_BUILD_ROOT{%{_ttffontsdir},%{_sysconfdir}/fonts/conf.d,%{_datadir}/fontconfig/conf.avail}
56
57 cp -p *.ttf $RPM_BUILD_ROOT%{_ttffontsdir}
58
59 cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/fontconfig/conf.avail/59-liberation-mono.conf
60 cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_datadir}/fontconfig/conf.avail/59-liberation-sans.conf
61 cp -p %{SOURCE3} $RPM_BUILD_ROOT%{_datadir}/fontconfig/conf.avail/59-liberation-serif.conf
62 cp -p %{SOURCE4} $RPM_BUILD_ROOT%{_datadir}/fontconfig/conf.avail/59-liberation-narrow.conf
63
64 ln -s %{_datadir}/fontconfig/conf.avail/59-liberation-mono.conf $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.d
65 ln -s %{_datadir}/fontconfig/conf.avail/59-liberation-sans.conf $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.d
66 ln -s %{_datadir}/fontconfig/conf.avail/59-liberation-serif.conf $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.d
67 ln -s %{_datadir}/fontconfig/conf.avail/59-liberation-narrow.conf $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.d
68
69 %clean
70 rm -rf $RPM_BUILD_ROOT
71
72 %post
73 fontpostinst TTF
74
75 %postun
76 fontpostinst TTF
77
78 %files
79 %defattr(644,root,root,755)
80 %doc AUTHORS ChangeLog License.txt README TODO
81 %{_ttffontsdir}/LiberationMono-*.ttf
82 %{_ttffontsdir}/LiberationSans-*.ttf
83 %{_ttffontsdir}/LiberationSerif-*.ttf
84 %{_ttffontsdir}/LiberationSansNarrow-*.ttf
85 %{_datadir}/fontconfig/conf.avail/59-liberation-*.conf
86 %{_sysconfdir}/fonts/conf.d/59-liberation-*.conf
This page took 0.081366 seconds and 3 git commands to generate.