File cantarell-fonts.spec of Package cantarell-fonts

#
# spec file for package cantarell-fonts
#
# Copyright (c) 2016 SUSE LINUX 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.24
Release:        0
Summary:        Contemporary Humanist Sans Serif Font
License:        OFL-1.1
Group:          System/X11/Fonts
Url:            http://live.gnome.org/CantarellFonts
Source:         http://download.gnome.org/sources/cantarell-fonts/0.0/%{name}-%{version}.tar.xz
BuildRequires:  dos2unix
BuildRequires:  fontpackages-devel
# needed for directory ownership
BuildRequires:  fontconfig
BuildRequires:  pkg-config
BuildRequires:  xz
%reconfigure_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 --with-fontdir=%{_ttfontsdir} --with-configdir=%{_fontsconfavaildir}
dos2unix COPYING

%install
%make_install
%link_avail_to_system_fontsconf 31-cantarell.conf

%reconfigure_fonts_scriptlets

%files
%defattr(-,root,root)
%doc README COPYING
%files_fontsconf_availdir
%files_fontsconf_file -l 31-cantarell.conf
%dir %{_ttfontsdir}
%{_ttfontsdir}/Cantarell-Bold.otf
%{_ttfontsdir}/Cantarell-Regular.otf
%{_ttfontsdir}/Cantarell-BoldOblique.otf
%{_ttfontsdir}/Cantarell-Oblique.otf

%changelog
openSUSE Build Service is sponsored by