]> git.pld-linux.org Git - packages/fonts-TTF-RedHat-liberation.git/blame - fonts-TTF-RedHat-liberation.spec
- updated to 2.1.5
[packages/fonts-TTF-RedHat-liberation.git] / fonts-TTF-RedHat-liberation.spec
CommitLineData
7e548dc0 1Summary: Fonts to replace commonly used Microsoft Windows Fonts
cec7558f 2Summary(pl.UTF-8): Fonty zastępujące popularne fonty z Microsoft Windows
7e548dc0 3Name: fonts-TTF-RedHat-liberation
3cd7824f
JB
4Version: 2.1.5
5Release: 1
151ed272 6Epoch: 1
674eeed7 7License: OFL
7e548dc0 8Group: Fonts
173daf37 9#Source0Download: https://github.com/liberationfonts/liberation-fonts/releases
3cd7824f
JB
10Source0: https://github.com/liberationfonts/liberation-fonts/files/7261483/liberation-fonts-%{version}.tar.gz
11# Source0-md5: 5c019e62dd91939981e65fc75cfcf119
9357043b
AM
12Source1: 30-0-liberation-mono.conf
13Source2: 30-0-liberation-sans.conf
14Source3: 30-0-liberation-serif.conf
173daf37 15URL: https://github.com/liberationfonts/liberation-fonts
216fadfc 16BuildRequires: fontforge >= 20090923
173daf37 17BuildRequires: python3-fonttools
37a88d1b 18Suggests: fontpostinst
cee98cc6 19Obsoletes: liberation-fonts-ttf
bb16b371 20Conflicts: fonts-TTF-RedHat-liberation1
70329d16 21Conflicts: fontconfig < 1:2.10.1
7e548dc0
PZ
22BuildArch: noarch
23BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25%define _ttffontsdir %{_fontsdir}/TTF
26
27%description
28The Liberation Fonts are intended to be replacements for the three
0110d3a4
AM
29most commonly used fonts on Microsoft systems.
30
31There are three sets: Sans (a substitute for Arial, Albany, Helvetica,
32Nimbus Sans L, and Bitstream Vera Sans), Serif (a substitute for Times
33New Roman, Thorndale, Nimbus Roman, and Bitstream Vera Serif) and Mono
34(a substitute for Courier New, Cumberland, Courier, Nimbus Mono L, and
35Bitstream Vera Sans Mono).
7e548dc0 36
cec7558f
JB
37%description -l pl.UTF-8
38Fonty Liberation mają być zamiennikami trzech najczęściej używanych
0110d3a4
AM
39fontów z systemów Microsoftu.
40
41Pakiet zawiera trzy zestawy: Sans (zamiennik dla Arial, Albany,
42Helvetica, Nimbus Sans L i Bitstream Vera Sans), Serif (zamiennik dla
43Times New Roman, Thorndale, Nimbus Roman i Bitstream Vera Serif) i
44Mono (zamiennik dla Courier New, Cumberland, Courier, Nimbus Mono L i
45Bitstream Vera Sans Mono).
cec7558f 46
7e548dc0 47%prep
216fadfc 48%setup -q -n liberation-fonts-%{version}
216fadfc
AM
49
50%build
9357043b 51%{__make}
173daf37 52%{__mv} liberation-fonts-ttf-%{version}/* .
9c2fa979 53
2774d5a0
ER
54%install
55rm -rf $RPM_BUILD_ROOT
ad7bbe0c 56install -d $RPM_BUILD_ROOT{%{_ttffontsdir},%{_sysconfdir}/fonts/conf.d,%{_datadir}/fontconfig/conf.avail}
2774d5a0
ER
57
58cp -p *.ttf $RPM_BUILD_ROOT%{_ttffontsdir}
7bd035df 59
9357043b
AM
60cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/fontconfig/conf.avail/30-0-liberation-mono.conf
61cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_datadir}/fontconfig/conf.avail/30-0-liberation-sans.conf
62cp -p %{SOURCE3} $RPM_BUILD_ROOT%{_datadir}/fontconfig/conf.avail/30-0-liberation-serif.conf
7bd035df 63
b7cf6633
AM
64ln -s %{_datadir}/fontconfig/conf.avail/30-0-liberation-mono.conf $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.d
65ln -s %{_datadir}/fontconfig/conf.avail/30-0-liberation-sans.conf $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.d
66ln -s %{_datadir}/fontconfig/conf.avail/30-0-liberation-serif.conf $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.d
7e548dc0
PZ
67
68%clean
69rm -rf $RPM_BUILD_ROOT
70
37a88d1b
ER
71%triggerin -- fontpostinst
72if [ "$1" = "1" ] && [ "$2" = "1" ]; then
73 fontpostinst TTF
74fi
7e548dc0 75
37a88d1b
ER
76%triggerun -- fontpostinst
77if [ "$1" = "0" ] || [ "$2" = "0" ]; then
78 fontpostinst TTF
79fi
7e548dc0
PZ
80
81%files
82%defattr(644,root,root,755)
3cd7824f 83%doc AUTHORS ChangeLog README.md TODO
c2b8ec50
AM
84%{_ttffontsdir}/LiberationMono*.ttf
85%{_ttffontsdir}/LiberationSans*.ttf
86%{_ttffontsdir}/LiberationSerif*.ttf
b7cf6633
AM
87%{_datadir}/fontconfig/conf.avail/30-0-liberation-*.conf
88%{_sysconfdir}/fonts/conf.d/30-0-liberation-*.conf
This page took 0.125964 seconds and 4 git commands to generate.