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