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