]> git.pld-linux.org Git - packages/fonts-TTF-RedHat-liberation.git/blob - fonts-TTF-RedHat-liberation.spec
0132fe46999154af67ac8635ecc8a7c318cf361a
[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:        2.00.0
5 Release:        3
6 Epoch:          1
7 License:        OFL
8 Group:          Fonts
9 Source0:        https://fedorahosted.org/releases/l/i/liberation-fonts/liberation-fonts-%{version}.tar.gz
10 # Source0-md5:  5b5055ed755025891f908b7726fea482
11 Source1:        generate.pe
12 Source2:        59-liberation-mono.conf
13 Source3:        59-liberation-sans.conf
14 Source4:        59-liberation-serif.conf
15 URL:            https://fedorahosted.org/liberation-fonts/
16 BuildRequires:  fontforge >= 20090923
17 Requires(post,postun):  fontpostinst
18 Requires:       %{_fontsdir}/TTF
19 Requires:       fontconfig >= 1:2.10.1
20 Obsoletes:      liberation-fonts-ttf
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 install -p %{SOURCE1} .
49
50 %build
51 rm -f *.ttf
52 ./generate.pe src/*.sfd
53
54 mv LiberationMono.ttf LiberationMono-Regular.ttf
55 mv LiberationSerif.ttf LiberationSerif-Regular.ttf
56 mv LiberationSans.ttf LiberationSans-Regular.ttf
57
58 %install
59 rm -rf $RPM_BUILD_ROOT
60 install -d $RPM_BUILD_ROOT{%{_ttffontsdir},%{_sysconfdir}/fonts/conf.d,%{_datadir}/fontconfig/conf.avail}
61
62 cp -p *.ttf $RPM_BUILD_ROOT%{_ttffontsdir}
63
64 cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_datadir}/fontconfig/conf.avail/59-liberation-mono.conf
65 cp -p %{SOURCE3} $RPM_BUILD_ROOT%{_datadir}/fontconfig/conf.avail/59-liberation-sans.conf
66 cp -p %{SOURCE4} $RPM_BUILD_ROOT%{_datadir}/fontconfig/conf.avail/59-liberation-serif.conf
67
68 ln -s %{_datadir}/fontconfig/conf.avail/59-liberation-mono.conf $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.d
69 ln -s %{_datadir}/fontconfig/conf.avail/59-liberation-sans.conf $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.d
70 ln -s %{_datadir}/fontconfig/conf.avail/59-liberation-serif.conf $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.d
71
72 %clean
73 rm -rf $RPM_BUILD_ROOT
74
75 %post
76 fontpostinst TTF
77
78 %postun
79 fontpostinst TTF
80
81 %files
82 %defattr(644,root,root,755)
83 %doc AUTHORS ChangeLog README TODO
84 %{_ttffontsdir}/LiberationMono*.ttf
85 %{_ttffontsdir}/LiberationSans*.ttf
86 %{_ttffontsdir}/LiberationSerif*.ttf
87 %{_datadir}/fontconfig/conf.avail/59-liberation-*.conf
88 %{_sysconfdir}/fonts/conf.d/59-liberation-*.conf
This page took 0.044306 seconds and 2 git commands to generate.