File cantarell-fonts.spec of Package cantarell-fonts

#
# spec file for package cantarell-fonts
#
# Copyright (c) 2020 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#


Name:           cantarell-fonts
Version:        0.301
Release:        0
Summary:        Contemporary Humanist Sans Serif Font
License:        OFL-1.1
Group:          System/X11/Fonts
URL:            https://wiki.gnome.org/Projects/CantarellFonts
Source0:        https://download.gnome.org/sources/cantarell-fonts/%{version}/%{name}-%{version}.tar.xz

# needed for directory ownership
BuildRequires:  fontconfig
BuildRequires:  fontpackages-devel
BuildRequires:  meson
BuildRequires:  pkgconfig
BuildRequires:  xz
BuildRequires:  pkgconfig(appstream-glib)
BuildArch:      noarch
%reconfigure_fonts_prereq

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

%prep
%autosetup

%build
%meson \
	-Dfontsdir=%{_ttfontsdir} \
	-Duseprebuilt=true \
	%{nil}
%meson_build

%install
%meson_install

%reconfigure_fonts_scriptlets

%files
%license COPYING
%doc NEWS README.md
%dir %{_ttfontsdir}
%{_ttfontsdir}/Cantarell-Bold.otf
%{_ttfontsdir}/Cantarell-ExtraBold.otf
%{_ttfontsdir}/Cantarell-Light.otf
%{_ttfontsdir}/Cantarell-Regular.otf
%{_ttfontsdir}/Cantarell-Thin.otf
%{_ttfontsdir}/Cantarell-VF.otf
%{_datadir}/metainfo/org.gnome.cantarell.metainfo.xml

%changelog
openSUSE Build Service is sponsored by