Compare commits
1 commit
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
75af2bfaa0 |
6 changed files with 73 additions and 153 deletions
7
.gitignore
vendored
7
.gitignore
vendored
|
|
@ -3,10 +3,3 @@
|
|||
/SourceSansPro_FontsOnly-1.050.zip
|
||||
/adobe-source-sans-pro-fonts-2.020.tar.gz
|
||||
/adobe-source-sans-pro-fonts-2.045.tar.gz
|
||||
/adobe-source-sans-pro-fonts-3.006.tar.gz
|
||||
/source-sans-pro-3.006R.zip
|
||||
/source-sans-3v028R.zip
|
||||
/source-sans-3.042R.zip
|
||||
/OTF-source-sans-3.046R.zip
|
||||
/OTF-source-sans-3.052R.zip
|
||||
/adobe-source-sans-pro-fonts-3.052.tar.gz
|
||||
|
|
|
|||
|
|
@ -1,48 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE fontconfig SYSTEM "urn:fontconfig:fonts.dtd">
|
||||
<!-- SPDX-License-Identifier: MIT -->
|
||||
<fontconfig>
|
||||
<alias>
|
||||
<family>Source Sans 3</family>
|
||||
<default>
|
||||
<family>sans-serif</family>
|
||||
</default>
|
||||
</alias>
|
||||
<alias>
|
||||
<family>sans-serif</family>
|
||||
<prefer>
|
||||
<family>Source Sans 3</family>
|
||||
</prefer>
|
||||
</alias>
|
||||
<!-- Manage font family renaming (Source Sans Pro -> Source Sans 3) -->
|
||||
<alias binding="same">
|
||||
<family>Source Sans Pro</family>
|
||||
<accept>
|
||||
<family>Source Sans 3</family>
|
||||
</accept>
|
||||
</alias>
|
||||
<alias binding="same">
|
||||
<family>Source Sans Pro ExtraLight</family>
|
||||
<accept>
|
||||
<family>Source Sans 3 ExtraLight</family>
|
||||
</accept>
|
||||
</alias>
|
||||
<alias binding="same">
|
||||
<family>Source Sans Pro Light</family>
|
||||
<accept>
|
||||
<family>Source Sans 3 Light</family>
|
||||
</accept>
|
||||
</alias>
|
||||
<alias binding="same">
|
||||
<family>Source Sans Pro SemiBold</family>
|
||||
<accept>
|
||||
<family>Source Sans 3 SemiBold</family>
|
||||
</accept>
|
||||
</alias>
|
||||
<alias binding="same">
|
||||
<family>Source Sans Pro Black</family>
|
||||
<accept>
|
||||
<family>Source Sans 3 Black</family>
|
||||
</accept>
|
||||
</alias>
|
||||
</fontconfig>
|
||||
16
adobe-source-sans-pro-fonts-fontconfig.conf
Normal file
16
adobe-source-sans-pro-fonts-fontconfig.conf
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE fontconfig SYSTEM "../fonts.dtd">
|
||||
<fontconfig>
|
||||
<alias>
|
||||
<family>Source Sans Pro</family>
|
||||
<default>
|
||||
<family>sans-serif</family>
|
||||
</default>
|
||||
</alias>
|
||||
<alias>
|
||||
<family>sans-serif</family>
|
||||
<prefer>
|
||||
<family>Source Sans Pro</family>
|
||||
</prefer>
|
||||
</alias>
|
||||
</fontconfig>
|
||||
|
|
@ -1,120 +1,70 @@
|
|||
Version: 3.052
|
||||
Release: 8%{?dist}
|
||||
URL: https://github.com/adobe-fonts/source-sans
|
||||
%global fontname source-sans-pro
|
||||
%global fontconf 63-%{fontname}.conf
|
||||
|
||||
%global foundry adobe
|
||||
%global fontlicense OFL-1.1
|
||||
%global fontlicenses LICENSE.md
|
||||
%global fontdocs README.md
|
||||
%global fontdocsex %{fontlicenses}
|
||||
%global roman_version 2.045
|
||||
%global italic_version 1.095
|
||||
%global github_tag %{roman_version}R-ro/%{italic_version}R-it
|
||||
%global source_dir %{fontname}-%(tr "/" "-" <<<%{github_tag})
|
||||
|
||||
%global fontfamily Source Sans Pro
|
||||
%global fontsummary A set of OpenType fonts designed for user interfaces
|
||||
%global fonts OTF/*.otf
|
||||
%global fontconfs %{SOURCE10}
|
||||
%global fontdescription %{expand:Source Sans is a set of OpenType fonts that have been designed to work well in
|
||||
Name: adobe-source-sans-pro-fonts
|
||||
Version: %{roman_version}
|
||||
Release: 1%{?dist}
|
||||
Summary: A set of OpenType fonts designed for user interfaces
|
||||
|
||||
License: OFL
|
||||
URL: https://github.com/adobe-fonts/source-sans-pro/
|
||||
# Can't build fonts without nonfree softwares
|
||||
Source0: %{url}/archive/%{github_tag}/%{name}-%{version}.tar.gz
|
||||
Source1: %{name}-fontconfig.conf
|
||||
Source2: %{fontname}.metainfo.xml
|
||||
|
||||
BuildRequires: fontpackages-devel
|
||||
Requires: fontpackages-filesystem
|
||||
BuildArch: noarch
|
||||
|
||||
%description
|
||||
Source Sans is a set of OpenType fonts that have been designed to work well in
|
||||
user interface (UI) environments, as well as in text setting for screen and
|
||||
print.}
|
||||
|
||||
Source0: %{url}/archive/%{version}R/%{fontpkgname}-%{version}.tar.gz
|
||||
# Adjust as necessary. Keeping the filename in sync with the package name is a good idea.
|
||||
# See the fontconfig templates in fonts-rpm-templates for information on how to
|
||||
# write good fontconfig files and choose the correct priority [number].
|
||||
Source10: 63-%{fontpkgname}.conf
|
||||
|
||||
%fontpkg
|
||||
print.
|
||||
|
||||
|
||||
%prep
|
||||
%autosetup -n source-sans-%{version}R
|
||||
%autosetup -n %{source_dir}
|
||||
|
||||
# Fix permissions
|
||||
chmod 0644 LICENSE.txt README.md
|
||||
|
||||
# Fix wrong EOLs
|
||||
sed -i.orig "s/\r//" LICENSE.txt && \
|
||||
touch -r LICENSE.txt.orig LICENSE.txt && \
|
||||
rm LICENSE.txt.orig
|
||||
|
||||
|
||||
%build
|
||||
%fontbuild
|
||||
|
||||
|
||||
%install
|
||||
%fontinstall
|
||||
install -dm 0755 $RPM_BUILD_ROOT%{_fontdir}
|
||||
install -pm 0644 OTF/*.otf $RPM_BUILD_ROOT%{_fontdir}
|
||||
|
||||
install -dm 0755 $RPM_BUILD_ROOT%{_fontconfig_templatedir} $RPM_BUILD_ROOT%{_fontconfig_confdir}
|
||||
install -m 0644 -p %{SOURCE1} $RPM_BUILD_ROOT%{_fontconfig_templatedir}/%{fontconf}
|
||||
ln -s %{_fontconfig_templatedir}/%{fontconf} $RPM_BUILD_ROOT%{_fontconfig_confdir}/%{fontconf}
|
||||
|
||||
# Add AppStream metadata
|
||||
install -Dpm 0644 %{SOURCE2} $RPM_BUILD_ROOT%{_datadir}/appdata/%{fontname}.metainfo.xml
|
||||
|
||||
|
||||
%check
|
||||
%fontcheck
|
||||
|
||||
|
||||
%fontfiles
|
||||
%_font_pkg -f %{fontconf} *.otf
|
||||
%doc README.md
|
||||
%license LICENSE.txt
|
||||
%{_datadir}/appdata/%{fontname}.metainfo.xml
|
||||
|
||||
|
||||
%changelog
|
||||
* Fri Jan 16 2026 Fedora Release Engineering <releng@fedoraproject.org> - 3.052-8
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild
|
||||
|
||||
* Wed Jul 23 2025 Fedora Release Engineering <releng@fedoraproject.org> - 3.052-7
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
|
||||
|
||||
* Sat Jan 25 2025 Mohamed El Morabity <melmorabity@fedoraproject.org> - 3.052-6
|
||||
- Fix FTBFS thanks to @mavit (RHBZ #2339874)
|
||||
|
||||
* Thu Jan 16 2025 Fedora Release Engineering <releng@fedoraproject.org> - 3.052-5
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
|
||||
|
||||
* Wed Jul 17 2024 Fedora Release Engineering <releng@fedoraproject.org> - 3.052-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
|
||||
|
||||
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 3.052-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||
|
||||
* Fri Jan 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 3.052-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||
|
||||
* Sun Sep 24 2023 Mohamed El Morabity <melmorabity@fedoraproject.org> - 3.052-1
|
||||
- Update to 3.052
|
||||
|
||||
* Wed Jul 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 3.046-6
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
||||
|
||||
* Wed Jan 18 2023 Fedora Release Engineering <releng@fedoraproject.org> - 3.046-5
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
||||
|
||||
* Wed Jul 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.046-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
||||
|
||||
* Wed Jan 19 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.046-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
||||
|
||||
* Wed Jul 21 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.046-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
||||
|
||||
* Thu Jul 15 2021 Mohamed El Morabity <melmorabity@fedoraproject.org> - 3.046-1
|
||||
- Update to 3.046
|
||||
|
||||
* Thu Jul 01 2021 Mohamed El Morabity <melmorabity@fedoraproject.org> - 3.042-1
|
||||
- Update to 3.042
|
||||
|
||||
* Mon Jan 25 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.028-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
||||
|
||||
* Tue Sep 08 2020 Mohamed El Morabity <melmorabity@fedoraproject.org> - 3.028-1
|
||||
- Migrate to new font packaging scheme
|
||||
- Update to 3.028
|
||||
|
||||
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.006-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||
|
||||
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.006-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
||||
|
||||
* Wed Dec 18 2019 Mohamed El Morabity <melmorabity@fedoraproject.org> - 3.006-1
|
||||
- Update to 3.006
|
||||
|
||||
* Fri Aug 09 2019 Mohamed El Morabity <melmorabity@fedoraproject.org> - 2.045-1
|
||||
- Update to 2.0.45
|
||||
|
||||
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.020-5
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
||||
|
||||
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.020-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
||||
|
||||
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.020-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
||||
|
||||
|
|
@ -164,3 +114,4 @@ Source10: 63-%{fontpkgname}.conf
|
|||
|
||||
* Fri Aug 03 2012 Alexis Lameire <alexisis-pristontale@hotmail.com> - 1.033-1
|
||||
- initial release
|
||||
|
||||
|
|
|
|||
8
source-sans-pro.metainfo.xml
Normal file
8
source-sans-pro.metainfo.xml
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!-- Copyright 2014 Richard Hughes <richard@hughsie.com> -->
|
||||
<component type="font">
|
||||
<id>source-sans-pro</id>
|
||||
<metadata_license>CC0-1.0</metadata_license>
|
||||
<name>Source Sans</name>
|
||||
<summary>A set of fonts designed for user interfaces</summary>
|
||||
</component>
|
||||
2
sources
2
sources
|
|
@ -1 +1 @@
|
|||
SHA512 (adobe-source-sans-pro-fonts-3.052.tar.gz) = 8e5a67cfebf6b7cea6505dc2d8e7600909719ec88b4553d1926b644ee2494304e60c75fd6e4bdb0450846985f442a1f7b4c1c147d428edf960b37a3d216c0b62
|
||||
SHA512 (adobe-source-sans-pro-fonts-2.045.tar.gz) = 42956c74a8414d5427c9a552acaec929beceed602fcd1adcf077297c06d85b99afda057954772cbbfd9d959673afd511e28cd1a69825558603daed28f6401dbb
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue