diff --git a/.cvsignore b/.cvsignore index e69de29..b96f6df 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1,2 @@ +YanoneKaffeesatz.pdf +YanoneKaffeesatz.zip diff --git a/sources b/sources index e69de29..7970066 100644 --- a/sources +++ b/sources @@ -0,0 +1,2 @@ +de481a4a60844f8af57346844faac70b YanoneKaffeesatz.pdf +9361791c13be2e38d289977166a634ed YanoneKaffeesatz.zip diff --git a/yanone-kaffeesatz-fonts-fontconfig.conf b/yanone-kaffeesatz-fonts-fontconfig.conf new file mode 100644 index 0000000..c5fa251 --- /dev/null +++ b/yanone-kaffeesatz-fonts-fontconfig.conf @@ -0,0 +1,17 @@ + + + + + + Yanone Kaffeesatz + + sans-serif + + + diff --git a/yanone-kaffeesatz-fonts.spec b/yanone-kaffeesatz-fonts.spec new file mode 100644 index 0000000..7656685 --- /dev/null +++ b/yanone-kaffeesatz-fonts.spec @@ -0,0 +1,77 @@ +%define fontname yanone-kaffeesatz +%define fontdir %{_datadir}/fonts/%{fontname} +%define fontconfdir %{_sysconfdir}/fonts/conf.d + +%define archivename YanoneKaffeesatz + +Name: %{fontname}-fonts +Version: 20061120 +Release: 3%{?dist} +Summary: Yanone Kaffeesatz decorative fonts + +Group: User Interface/X +License: CC-BY +URL: http://www.yanone.de/typedesign/kaffeesatz/ +Source0: %{url}%{archivename}.zip +Source1: %{name}-fontconfig.conf +Source2: %{url}%{archivename}.pdf + +BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) +BuildArch: noarch + +%description +Sans-serif decorative latin OTF font by Jan Gerner, suitable for titles and +short runs of text. + + +%prep +%setup -q -c +install -m 0644 -p %{SOURCE2} . + + +%build +# Nothing there + + +%install +rm -fr %{buildroot} + +install -m 0755 -d %{buildroot}%{fontdir} +install -m 0644 -p *.otf %{buildroot}%{fontdir} + +install -m 0755 -d %{buildroot}%{fontconfdir} +install -m 0644 -p %{SOURCE1} %{buildroot}%{fontconfdir}/61-%{fontname}.conf + + +%clean +rm -fr %{buildroot} + + +%post +if [ -x %{_bindir}/fc-cache ]; then + %{_bindir}/fc-cache %{fontdir} || : +fi + + +%postun +if [ "$1" = "0" ]; then + if [ -x %{_bindir}/fc-cache ]; then + %{_bindir}/fc-cache %{fontdir} || : + fi +fi + + +%files +%defattr(0644,root,root,0755) +%doc *.pdf + +%config(noreplace) %{fontconfdir}/61-%{fontname}.conf + +%dir %{fontdir} +%{fontdir}/*.otf + + +%changelog +* Sun Nov 25 2007 Nicolas Mailhot +☺ 20061120-3 +✓ initial packaging