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