]> git.pld-linux.org Git - packages/fonts-TTF-RedHat-liberation1.git/blob - fonts-TTF-RedHat-liberation1.spec
- new URLs, updated to 1.07.5; LiberationSansNarrow moved to separate package (fonts...
[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.5
5 Release:        1
6 License:        GPL v2 + exceptions
7 Group:          Fonts
8 #Source0Download: https://github.com/liberationfonts/liberation-1.7-fonts/releases
9 Source0:        https://github.com/liberationfonts/liberation-1.7-fonts/files/2175696/liberation-fonts-%{version}.tar.gz
10 # Source0-md5:  341038c2ebfbf0ce54954556e7696d3b
11 Source1:        liberation-fonts-mono.conf
12 Source2:        liberation-fonts-sans.conf
13 Source3:        liberation-fonts-serif.conf
14 URL:            https://github.com/liberationfonts/liberation-1.7-fonts
15 BuildRequires:  fontforge >= 20090923
16 Requires(post,postun):  fontpostinst
17 Requires:       %{_fontsdir}/TTF
18 Suggests:       fonts-TTF-RedHat-liberation-narrow
19 Obsoletes:      liberation-fonts-ttf
20 Obsoletes:      fonts-TTF-RedHat-liberation < 2
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
52 %{__mv} liberation-fonts-ttf-%{version}/* .
53
54 %install
55 rm -rf $RPM_BUILD_ROOT
56 install -d $RPM_BUILD_ROOT{%{_ttffontsdir},%{_sysconfdir}/fonts/conf.d,%{_datadir}/fontconfig/conf.avail}
57
58 cp -p *.ttf $RPM_BUILD_ROOT%{_ttffontsdir}
59
60 cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/fontconfig/conf.avail/59-liberation-mono.conf
61 cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_datadir}/fontconfig/conf.avail/59-liberation-sans.conf
62 cp -p %{SOURCE3} $RPM_BUILD_ROOT%{_datadir}/fontconfig/conf.avail/59-liberation-serif.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
68 %clean
69 rm -rf $RPM_BUILD_ROOT
70
71 %post
72 fontpostinst TTF
73
74 %postun
75 fontpostinst TTF
76
77 %files
78 %defattr(644,root,root,755)
79 %doc AUTHORS ChangeLog License.txt README.rst TODO
80 %{_ttffontsdir}/LiberationMono-*.ttf
81 %{_ttffontsdir}/LiberationSans-*.ttf
82 %{_ttffontsdir}/LiberationSerif-*.ttf
83 %{_datadir}/fontconfig/conf.avail/59-liberation-mono.conf
84 %{_datadir}/fontconfig/conf.avail/59-liberation-sans.conf
85 %{_datadir}/fontconfig/conf.avail/59-liberation-serif.conf
86 %{_sysconfdir}/fonts/conf.d/59-liberation-mono.conf
87 %{_sysconfdir}/fonts/conf.d/59-liberation-sans.conf
88 %{_sysconfdir}/fonts/conf.d/59-liberation-serif.conf
This page took 0.066044 seconds and 4 git commands to generate.