diff --git a/.gitignore b/.gitignore index f9c7d02..01ba2b7 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ /SourceCodePro_FontsOnly-1.017.zip /SourceCodePro-2.010R-ro-1.030R-it.tar.gz /SourceCodePro-2.030R-ro-1.050R-it.tar.gz +/source-code-pro-2.042R-u-1.062R-i-1.026R-vf.tar.gz diff --git a/61-adobe-source-code-pro-fonts-fontconfig.conf b/61-adobe-source-code-pro-fonts-fontconfig.conf new file mode 100644 index 0000000..b8758dc --- /dev/null +++ b/61-adobe-source-code-pro-fonts-fontconfig.conf @@ -0,0 +1,106 @@ + + + + + + + monospace + + Source Code Pro + + + + + + Source Code Pro + + monospace + + + + + + Source Code Pro + + Source Code Pro Regular + + + + Source Code Pro + + Source Code Pro Italic + + + + Source Code Pro + + Source Code Pro Bold + + + + Source Code Pro + + Source Code Pro Bold Italic + + + + Source Code Pro + + Source Code Pro Light + + + + Source Code Pro + + Source Code Pro Light Italic + + + + Source Code Pro + + Source Code Pro Medium + + + + Source Code Pro + + Source Code Pro Medium Italic + + + + Source Code Pro + + Source Code Pro Semibold + + + + Source Code Pro + + Source Code Pro Semibold Italic + + + + Source Code Pro + + Source Code Pro ExtraLight + + + + Source Code Pro + + Source Code Pro ExtraLight Italic + + + + Source Code Pro + + Source Code Pro Black + + + + Source Code Pro + + Source Code Pro Black Italic + + + diff --git a/61-adobe-source-code-vf-fonts-fontconfig.conf b/61-adobe-source-code-vf-fonts-fontconfig.conf new file mode 100644 index 0000000..ad7de20 --- /dev/null +++ b/61-adobe-source-code-vf-fonts-fontconfig.conf @@ -0,0 +1,33 @@ + + + + + + monospace + + Source Code VF + + + + + + Source Code VF + + monospace + + + + + + Source Code VF + + Source Code VF Upright + + + + Source Code VF + + Source Code VF Italic + + + diff --git a/adobe-source-code-pro-fonts-fontconfig.conf b/adobe-source-code-pro-fonts-fontconfig.conf deleted file mode 100644 index f3a55c1..0000000 --- a/adobe-source-code-pro-fonts-fontconfig.conf +++ /dev/null @@ -1,16 +0,0 @@ - - - - - monospace - - Source Code Pro - - - - Source Code Pro - - monospace - - - diff --git a/adobe-source-code-pro-fonts.spec b/adobe-source-code-pro-fonts.spec index 2995a8b..c4ad7b2 100644 --- a/adobe-source-code-pro-fonts.spec +++ b/adobe-source-code-pro-fonts.spec @@ -1,59 +1,60 @@ -%global fontname adobe-source-code-pro -%global fontconf 61-%{fontname}.conf +%global foundry adobe +%global fontlicense OFL-1.1 +%global fontlicenses LICENSE.md +%global fontdocs README.md +%global fontdocsex %{fontlicenses} -%global version_roman 2.030 -%global version_italic 1.050 -Name: %{fontname}-fonts -Version: %{version_roman}.%{version_italic} -Release: %autorelease -Summary: A set of mono-spaced OpenType fonts designed for coding environments - -License: OFL-1.1 -URL: https://github.com/adobe-fonts/source-code-pro -Source0: https://github.com/adobe-fonts/source-code-pro/archive/%{version_roman}R-ro%2f%{version_italic}R-it.tar.gz#/SourceCodePro-%{version_roman}R-ro-%{version_italic}R-it.tar.gz -Source1: %{name}-fontconfig.conf -Source2: %{fontname}.metainfo.xml - -BuildArch: noarch -BuildRequires: fontpackages-devel -Requires: fontpackages-filesystem - -%description +%global fontfamily Source Code Pro +%global fontsummary A set of mono-spaced OpenType fonts designed for coding environments +%global fontpkgheader %{expand: +Suggests: font(sourcecodevf)} +%global fonts OTF/*.otf +%global fontconfs %{SOURCE10} +%global fontdescription %{expand: This font was designed by Paul D. Hunt as a companion to Source Sans. It has the same weight range as the corresponding Source Sans design. It supports a wide range of languages using the Latin script, and includes all the -characters in the Adobe Latin 4 glyph set. +characters in the Adobe Latin 4 glyph set.} +%global fontfamily2 Source Code VF +%global fontsummary2 OpenType fonts designed for coding environments, variable versions +%global fontpkgheader1 %{expand: +Suggests: font(sourcecodepro)} +%global fonts2 VF/*.otf +%global fontconfs2 %{SOURCE11} +%global fontdescription2 %{expand: +%{fontdescription} + +This is the variable versions of the font Source Code Pro.}} + +%global version_roman 2.042 +%global version_italic 1.062 +%global version_vf 1.026 + +Version: %{version_roman}.%{version_italic}.%{version_vf} +Release: %autorelease +URL: https://github.com/adobe-fonts/source-code-pro + +Source: https://github.com/adobe-fonts/source-code-pro/archive/%{version_roman}R-u/%{version_italic}R-i/%{version_vf}R-vf.tar.gz#/source-code-pro-%{version_roman}R-u-%{version_italic}R-i-%{version_vf}R-vf.tar.gz +Source10: 61-%{name}-fontconfig.conf +Source11: 61-%{fontpkgname2}-fontconfig.conf + +%fontpkg -a %prep -%setup -qn source-code-pro-%{version_roman}R-ro-%{version_italic}R-it -sed -i 's/\r//' LICENSE.txt -chmod 644 LICENSE.txt +%autosetup -n source-code-pro-%{version_roman}R-u-%{version_italic}R-i-%{version_vf}R-vf %build +%fontbuild -a %install -install -m 0755 -d %{buildroot}%{_fontdir} -install -m 0644 -p OTF/*.otf %{buildroot}%{_fontdir} +%fontinstall -a -install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} \ - %{buildroot}%{_fontconfig_confdir} +%check +%fontcheck -a -install -m 0644 -p %{SOURCE1} \ - %{buildroot}%{_fontconfig_templatedir}/%{fontconf} -ln -s %{_fontconfig_templatedir}/%{fontconf} \ - %{buildroot}%{_fontconfig_confdir}/%{fontconf} - -# Add AppStream metadata -install -Dm 0644 -p %{SOURCE2} \ - %{buildroot}%{_datadir}/appdata/%{fontname}.metainfo.xml - -%_font_pkg -f %{fontconf} *.otf -%{_datadir}/appdata/%{fontname}.metainfo.xml - -%doc README.md -%license LICENSE.txt +%fontfiles -a %changelog %autochangelog diff --git a/adobe-source-code-pro.metainfo.xml b/adobe-source-code-pro.metainfo.xml deleted file mode 100644 index 7fef7c8..0000000 --- a/adobe-source-code-pro.metainfo.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - adobe-source-code-pro - CC0-1.0 - Source Code - A set of mono-spaced fonts designed for coding environments - diff --git a/sources b/sources index e1fd16d..3765bf8 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -8120607f75da3b25cb8e34b64f02af9c SourceCodePro-2.030R-ro-1.050R-it.tar.gz +SHA512 (source-code-pro-2.042R-u-1.062R-i-1.026R-vf.tar.gz) = 2cc2373c8f5ec817ee44e2c754735a4d21d989fd581bf1cdb764ba98a26b186574d7f583ebe0da905c4db029d12fd4df54ace43a191e274f76995940a618a91c