]>
Commit | Line | Data |
---|---|---|
74651ac1 MB |
1 | Summary: Cantarell fonts |
2 | Name: fonts-OTF-Cantarell | |
31b835fa | 3 | Version: 0.0.7 |
74651ac1 MB |
4 | Release: 1 |
5 | License: OFL | |
6 | Group: Fonts | |
31b835fa MB |
7 | Source0: http://ftp.gnome.org/pub/GNOME/sources/cantarell-fonts/0.0/cantarell-fonts-%{version}.tar.xz |
8 | # Source0-md5: 5810bfe16ca46c26974d0058532f2b50 | |
74651ac1 | 9 | URL: http://abattis.org/cantarell/ |
31b835fa MB |
10 | BuildRequires: tar >= 1:1.22 |
11 | BuildRequires: xz | |
74651ac1 MB |
12 | Requires(post,postun): fontpostinst |
13 | BuildArch: noarch | |
14 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
15 | ||
16 | %define _otffontsdir %{_fontsdir}/OTF | |
17 | ||
18 | %description | |
19 | Cantarell is a set of fonts designed by Dave Crossland. It is a | |
20 | sans-serif Humanist typeface family. | |
21 | ||
22 | %prep | |
23 | %setup -q -n cantarell-fonts-%{version} | |
24 | ||
25 | %build | |
26 | %configure | |
27 | %{__make} | |
28 | ||
29 | %install | |
30 | rm -rf $RPM_BUILD_ROOT | |
31 | install -d $RPM_BUILD_ROOT%{_otffontsdir} | |
32 | install -d $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.avail | |
33 | install -d $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.d | |
34 | ||
35 | cp -a otf/*.otf $RPM_BUILD_ROOT%{_otffontsdir} | |
36 | cp fontconfig/31-cantarell.conf $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.avail | |
37 | ln -s ../conf.avail/31-cantarell.conf $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.d | |
38 | ||
39 | %clean | |
40 | rm -rf $RPM_BUILD_ROOT | |
41 | ||
42 | %post | |
43 | fontpostinst OTF | |
44 | ||
45 | %postun | |
46 | fontpostinst OTF | |
47 | ||
48 | %files | |
49 | %defattr(644,root,root,755) | |
50 | %doc NEWS README | |
51 | %{_sysconfdir}/fonts/conf.avail/31-cantarell.conf | |
52 | %{_sysconfdir}/fonts/conf.d/31-cantarell.conf | |
53 | %{_otffontsdir}/*.otf |