## START: Set by rpmautospec
## (rpmautospec version 0.8.1)
## RPMAUTOSPEC: autorelease, autochangelog
%define autorelease(e:s:pb:n) %{?-p:0.}%{lua:
release_number = 1;
base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}"));
print(release_number + base_release_number - 1);
}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}}
## END: Set by rpmautospec
%global giturl https://github.com/MuseScoreFonts/Leland
Version: 0.80
Release: %autorelease
URL: https://musescore.org/
VCS: git:%{giturl}.git
%global fontorg org.musescore
%global fontlicense OFL-1.1-RFN
%global fontlicenses LICENSE.txt OFL-FAQ.txt
%global fontdocs FONTLOG.txt README.md
%global _desc %{expand:
The Leland music fonts (Leland & Leland Text) were initially developed
for the MuseScore (https://www.musescore.org) music composition
software.
Leland is compliant with Standard Music Font Layout (SMuFL), which
provides a standard way of mapping the thousands of musical symbols
required by conventional music notation into the Private Use Area in
Unicode's Basic Multilingual Plane for a single (format-independent)
font.
The font is named after Leland Smith, creator of the SCORE music
notation software.}
%global fontfamily0 Leland
%global fontsummary0 SMuFL-compliant OpenType music font
%global fontpkgheader1 %{expand:
# This can be removed when F42 reaches EOL
Obsoletes: mscore-leland-fonts < 4.0
Provides: mscore-leland-fonts = 1:%{version}-%{release}
}
%global fonts0 Leland.otf
%global fontconfs0 %{SOURCE1}
%global fontdescription0 %{expand:%_desc
This package contains the music font.}
%global fontfamily1 Leland Text
%global fontsummary1 Text font to complement Leland
%global fonts1 LelandText.otf
%global fontconfs1 %{SOURCE2}
%global fontdescription1 %{expand:%_desc
This package contains the text font.}
Source0: %{giturl}/archive/v%{version}/Leland-%{version}.tar.gz
Source1: 65-%{fontpkgname0}.conf
Source2: 65-%{fontpkgname1}.conf
BuildRequires: fonts-rpm-macros
%fontpkg -a
%fontmetapkg
%prep
%autosetup -n Leland-%{version}
%build
%fontbuild -a
%install
%fontinstall -a
# Install SMuFL metadata
mkdir -p %{buildroot}%{_datadir}/SMuFL/Fonts/Leland
install -p -m 0644 leland_metadata.json \
%{buildroot}%{_datadir}/SMuFL/Fonts/Leland/metadata.json
ln -s metadata.json %{buildroot}%{_datadir}/SMuFL/Fonts/Leland/Leland.json
# Fix invalid metadata; see bz 1943727
for name in leland leland-text; do
sed -e 's,updatecontact,update_contact,g' \
-e 's,,\1,g' \
-e 's,\(MuseScore\) (\(https://www.musescore.org\)),\1,' \
-e 's,&,&,' \
-i %{buildroot}%{_metainfodir}/%{fontorg}.${name}-fonts.metainfo.xml
done
%check
%fontcheck -a
%fontfiles -z 0
%dir %{_datadir}/SMuFL/
%dir %{_datadir}/SMuFL/Fonts/
%{_datadir}/SMuFL/Fonts/Leland/
%fontfiles -z 1
%changelog
## START: Generated by rpmautospec
* Wed Sep 17 2025 Jerry James - 0.80-1
- Version 0.80
* Sat Aug 23 2025 Jerry James - 0.79-1
- Version 0.79
* Thu Jul 24 2025 Fedora Release Engineering - 0.78-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
* Fri May 09 2025 Jerry James - 0.78-1
- Version 0.78
* Fri Jan 17 2025 Fedora Release Engineering - 0.77-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
* Thu Jul 18 2024 Fedora Release Engineering - 0.77-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
* Wed Jul 17 2024 Jerry James - 0.77-6
- Add VCS field
* Thu Jan 25 2024 Fedora Release Engineering - 0.77-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Sun Jan 21 2024 Fedora Release Engineering - 0.77-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Tue Jan 16 2024 Jerry James - 0.77-3
- Stop building for 32-bit x86
* Tue Oct 17 2023 Jerry James - 0.77-2
- Link metadata to metadata.json for MuseScore
* Wed Aug 30 2023 Jerry James - 0.77-1
- Initial RPM
## END: Generated by rpmautospec