File cantarell-fonts.spec of Package cantarell-fonts

#
# spec file for package cantarell-fonts
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#



Name:           cantarell-fonts
Version:        0.0.7
Release:        1
License:        SIL Open Font License 1.1
Summary:        Contemporary Humanist Sans Serif Font
Url:            http://live.gnome.org/CantarellFonts
Group:          System/X11/Fonts
Source:         http://download.gnome.org/sources/cantarell-fonts/0.0/%{name}-%{version}.tar.bz2
# needed for directory ownership
BuildRequires:  fontconfig
BuildRequires:  pkg-config
PreReq:         %suseconfig_fonts_prereq
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

%description
The Cantarell font family is a contemporary Humanist sans serif designed
for on-screen reading.

%prep
%setup -q

%build
%configure

%install
%make_install configdir=%{_sysconfdir}/fonts/conf.avail
mkdir -p %{buildroot}/%{_sysconfdir}/fonts/conf.d
ln -s ../conf.avail/31-cantarell.conf %{buildroot}/%{_sysconfdir}/fonts/conf.d/

%post
%run_suseconfig_fonts

%postun
%run_suseconfig_fonts

%files
%defattr(-,root,root)
%doc README COPYING
%{_sysconfdir}/fonts/conf.avail/31-cantarell.conf
%config(noreplace) %{_sysconfdir}/fonts/conf.d/31-cantarell.conf
%dir %{_datadir}/fonts/cantarell
%{_datadir}/fonts/cantarell/Cantarell-Bold.otf
%{_datadir}/fonts/cantarell/Cantarell-Regular.otf

%changelog
openSUSE Build Service is sponsored by