From: Marcin Banasiak Date: Tue, 22 Feb 2011 12:52:51 +0000 (+0000) Subject: - new X-Git-Tag: auto/th/fonts-OTF-Cantarell-0_0_4-1~1 X-Git-Url: http://git.pld-linux.org/?p=packages%2Ffonts-OTF-Cantarell.git;a=commitdiff_plain;h=74651ac183eb378daa1db30675e1dd08bfa6ec27 - new Changed files: fonts-OTF-Cantarell.spec -> 1.1 --- 74651ac183eb378daa1db30675e1dd08bfa6ec27 diff --git a/fonts-OTF-Cantarell.spec b/fonts-OTF-Cantarell.spec new file mode 100644 index 0000000..ad140e1 --- /dev/null +++ b/fonts-OTF-Cantarell.spec @@ -0,0 +1,51 @@ +Summary: Cantarell fonts +Name: fonts-OTF-Cantarell +Version: 0.0.3 +Release: 1 +License: OFL +Group: Fonts +Source0: http://ftp.gnome.org/pub/GNOME/sources/cantarell-fonts/0.0/cantarell-fonts-%{version}.tar.bz2 +# Source0-md5: c8fa9efd26ada192ec337f9f7b7465b5 +URL: http://abattis.org/cantarell/ +Requires(post,postun): fontpostinst +BuildArch: noarch +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%define _otffontsdir %{_fontsdir}/OTF + +%description +Cantarell is a set of fonts designed by Dave Crossland. It is a +sans-serif Humanist typeface family. + +%prep +%setup -q -n cantarell-fonts-%{version} + +%build +%configure +%{__make} + +%install +rm -rf $RPM_BUILD_ROOT +install -d $RPM_BUILD_ROOT%{_otffontsdir} +install -d $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.avail +install -d $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.d + +cp -a otf/*.otf $RPM_BUILD_ROOT%{_otffontsdir} +cp fontconfig/31-cantarell.conf $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.avail +ln -s ../conf.avail/31-cantarell.conf $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.d + +%clean +rm -rf $RPM_BUILD_ROOT + +%post +fontpostinst OTF + +%postun +fontpostinst OTF + +%files +%defattr(644,root,root,755) +%doc NEWS README +%{_sysconfdir}/fonts/conf.avail/31-cantarell.conf +%{_sysconfdir}/fonts/conf.d/31-cantarell.conf +%{_otffontsdir}/*.otf