]> git.pld-linux.org Git - packages/fonts-TTF-RedHat-liberation.git/blob - fonts-TTF-RedHat-liberation.spec
- updated to 2.1.5
[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.1.5
5 Release:        1
6 Epoch:          1
7 License:        OFL
8 Group:          Fonts
9 #Source0Download: https://github.com/liberationfonts/liberation-fonts/releases
10 Source0:        https://github.com/liberationfonts/liberation-fonts/files/7261483/liberation-fonts-%{version}.tar.gz
11 # Source0-md5:  5c019e62dd91939981e65fc75cfcf119
12 Source1:        30-0-liberation-mono.conf
13 Source2:        30-0-liberation-sans.conf
14 Source3:        30-0-liberation-serif.conf
15 URL:            https://github.com/liberationfonts/liberation-fonts
16 BuildRequires:  fontforge >= 20090923
17 BuildRequires:  python3-fonttools
18 Suggests:       fontpostinst
19 Obsoletes:      liberation-fonts-ttf
20 Conflicts:      fonts-TTF-RedHat-liberation1
21 Conflicts:      fontconfig < 1:2.10.1
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
50 %build
51 %{__make}
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/30-0-liberation-mono.conf
61 cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_datadir}/fontconfig/conf.avail/30-0-liberation-sans.conf
62 cp -p %{SOURCE3} $RPM_BUILD_ROOT%{_datadir}/fontconfig/conf.avail/30-0-liberation-serif.conf
63
64 ln -s %{_datadir}/fontconfig/conf.avail/30-0-liberation-mono.conf $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.d
65 ln -s %{_datadir}/fontconfig/conf.avail/30-0-liberation-sans.conf $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.d
66 ln -s %{_datadir}/fontconfig/conf.avail/30-0-liberation-serif.conf $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.d
67
68 %clean
69 rm -rf $RPM_BUILD_ROOT
70
71 %triggerin -- fontpostinst
72 if [ "$1" = "1" ] && [ "$2" = "1" ]; then
73         fontpostinst TTF
74 fi
75
76 %triggerun -- fontpostinst
77 if [ "$1" = "0" ] || [ "$2" = "0" ]; then
78         fontpostinst TTF
79 fi
80
81 %files
82 %defattr(644,root,root,755)
83 %doc AUTHORS ChangeLog README.md TODO
84 %{_ttffontsdir}/LiberationMono*.ttf
85 %{_ttffontsdir}/LiberationSans*.ttf
86 %{_ttffontsdir}/LiberationSerif*.ttf
87 %{_datadir}/fontconfig/conf.avail/30-0-liberation-*.conf
88 %{_sysconfdir}/fonts/conf.d/30-0-liberation-*.conf
This page took 0.07839 seconds and 4 git commands to generate.