]> git.pld-linux.org Git - packages/fonts-TTF-freefont.git/blame - fonts-TTF-freefont.spec
- rel 3; install fontconfig files (from fc)
[packages/fonts-TTF-freefont.git] / fonts-TTF-freefont.spec
CommitLineData
17b56772
JB
1Summary: Free UCS scalable fonts in TrueType format
2Summary(pl.UTF-8): Wolnodostępne skalowalne fonty UCS w formacie TrueType
1afd5640 3Name: fonts-TTF-freefont
23f65ab8 4Version: 20120503
79ca3f74 5Release: 3
1afd5640 6License: GPL v2
7Group: Fonts
23f65ab8
ŁK
8Source0: http://ftp.gnu.org/gnu/freefont/freefont-ttf-%{version}.zip
9# Source0-md5: 879b76d2e3c8003d567b555743f39154
79ca3f74
AM
10Source1: %{name}-mono.conf
11Source2: %{name}-sans.conf
12Source3: %{name}-serif.conf
17b56772 13URL: http://www.gnu.org/software/freefont/
23f65ab8 14BuildRequires: unzip
1afd5640 15Requires(post,postun): fontpostinst
16BuildArch: noarch
17BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19%define ttffontsdir %{_fontsdir}/TTF
20
21%description
17b56772
JB
22This project aims to provide a set of free scalable fonts covering the
23ISO 10646/Unicode UCS (Universal Character Set).
1afd5640 24
3949cded 25%description -l pl.UTF-8
17b56772
JB
26Celem tego projektu jest udostępnienie zestawu wolnodostępnych fontów
27skalowalnych pokrywających zakres uniwersalnego zestawu znaków ISO
2810646/Unicode.
1afd5640 29
30%prep
7fd41a98 31%setup -q -n freefont-%{version}
1afd5640 32
33%install
34rm -rf $RPM_BUILD_ROOT
79ca3f74
AM
35install -d $RPM_BUILD_ROOT{%{ttffontsdir},%{_sysconfdir}/fonts/conf.d,%{_datadir}/fontconfig/conf.avail}
36
37cp -p *.ttf $RPM_BUILD_ROOT%{ttffontsdir}
38
39cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/fontconfig/conf.avail/69-freefont-ttf-mono.conf
40cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_datadir}/fontconfig/conf.avail/69-freefont-ttf-sans.conf
41cp -p %{SOURCE3} $RPM_BUILD_ROOT%{_datadir}/fontconfig/conf.avail/69-freefont-ttf-serif.conf
42
43ln -s %{_datadir}/fontconfig/conf.avail/69-freefont-ttf-mono.conf $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.d
44ln -s %{_datadir}/fontconfig/conf.avail/69-freefont-ttf-sans.conf $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.d
45ln -s %{_datadir}/fontconfig/conf.avail/69-freefont-ttf-serif.conf $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.d
1afd5640 46
1afd5640 47
48%clean
49rm -rf $RPM_BUILD_ROOT
50
51%post
52fontpostinst TTF
53
54%postun
55fontpostinst TTF
56
57%files
58%defattr(644,root,root,755)
17b56772
JB
59%doc AUTHORS CREDITS ChangeLog README
60%{ttffontsdir}/FreeMono*.ttf
61%{ttffontsdir}/FreeSans*.ttf
62%{ttffontsdir}/FreeSerif*.ttf
79ca3f74
AM
63%{_datadir}/fontconfig/conf.avail/69-freefont-ttf-*.conf
64%{_sysconfdir}/fonts/conf.d/69-freefont-ttf-*.conf
This page took 0.067627 seconds and 4 git commands to generate.