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