## START: Set by rpmautospec ## (rpmautospec version 0.6.0) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 5; 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 Version: 0.77 Release: %autorelease URL: https://musescore.org/ %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: https://github.com/MuseScoreFonts/Leland/archive/v%{version}/Leland-%{version}.tar.gz Source1: 65-%{fontpkgname0}.conf Source2: 65-%{fontpkgname1}.conf # See https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval ExcludeArch: %{ix86} 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,\(https://www.musescore.org\),,' \ -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 * 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