File catharsisfonts-cormorant-fonts.spec of Package catharsisfonts-cormorant-fonts

#
# spec file for package catharsisfonts-cormorant-fonts
#
# Copyright (c) 2025 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/
#


%global desc Cormorant is a free display type family developed by Christian Thalmann\
(Catharsis Fonts). It comprises a total of 45 font files spanning 9 different\
styles (Roman, Italic, Infant, Infant Italic, Garamond, Garamond Italic,\
Upright Cursive, Small Caps, Unicase) and 5 weights (Light, Regular, Medium,\
Semibold, Bold). For an illustrated presentation and description of the family,\
please visit its Bēhance page.\
\
Cormorant is open source, and all its working files (in Glyphs format) are\
available from this repository. If you wish to work with Cormorant in a\
different font editor (which I wouldn’t recommend), I can provide you with UFO\
versions of those files instead.
Name:           catharsisfonts-cormorant-fonts
Version:        4.002
Release:        0
Summary:        Cormorant open-source display font family
License:        OFL-1.1
Group:          System/X11/Fonts
URL:            https://github.com/CatharsisFonts/Cormorant
Source0:        %{url}/archive/refs/tags/v%{version}.tar.gz#/Cormorant-%{version}.tar.gz
BuildRequires:  dos2unix
BuildRequires:  fontpackages-devel
BuildArch:      noarch
%reconfigure_fonts_prereq

%description
%{desc}

%package -n catharsisfonts-cormorant-variable-fonts
Summary:        Cormorant open-source display font family (variable version)

%description -n catharsisfonts-cormorant-variable-fonts
%{desc}

This package contains the variable version of fonts.

%prep
%autosetup -n Cormorant-%{version}
dos2unix OFL-FAQ.txt

%build

%install
install -d %{buildroot}%{_ttfontsdir} %{buildroot}%{_defaultdocdir}/%{name}
install -m0644 fonts/otf/*.otf %{buildroot}%{_ttfontsdir}
install -m0644 fonts/variable/*.ttf %{buildroot}%{_ttfontsdir}
%reconfigure_fonts_scriptlets

%files
%license OFL.txt
%doc README.md FONTLOG.txt OFL-FAQ.txt
%dir %{_ttfontsdir}
%{_ttfontsdir}/*.otf

%files -n catharsisfonts-cormorant-variable-fonts
%license OFL.txt
%doc README.md FONTLOG.txt OFL-FAQ.txt
%dir %{_ttfontsdir}
%{_ttfontsdir}/*.ttf

%changelog
openSUSE Build Service is sponsored by