Convert to new fonts packaging guidelines
Migrate to SPDX license expression
This commit is contained in:
parent
24a1f305ef
commit
bb6e624f09
@ -1,5 +1,5 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<!DOCTYPE fontconfig SYSTEM "../fonts.dtd">
|
<!DOCTYPE fontconfig SYSTEM "urn:fontconfig:fonts.dtd">
|
||||||
<fontconfig>
|
<fontconfig>
|
||||||
<alias>
|
<alias>
|
||||||
<family>Padauk Book</family>
|
<family>Padauk Book</family>
|
@ -1,5 +1,5 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<!DOCTYPE fontconfig SYSTEM "../fonts.dtd">
|
<!DOCTYPE fontconfig SYSTEM "urn:fontconfig:fonts.dtd">
|
||||||
<fontconfig>
|
<fontconfig>
|
||||||
<alias>
|
<alias>
|
||||||
<family>Padauk</family>
|
<family>Padauk</family>
|
@ -1,7 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!-- Copyright 2014 Richard Hughes <richard@hughsie.com> -->
|
|
||||||
<component type="font">
|
|
||||||
<id>sil-padauk-book</id>
|
|
||||||
<metadata_license>CC0-1.0</metadata_license>
|
|
||||||
<extends>sil-padauk</extends>
|
|
||||||
</component>
|
|
@ -1,80 +1,64 @@
|
|||||||
%global fontname sil-padauk
|
Version: 3.003
|
||||||
%global fontconf 65-%{fontname}
|
Release: 12%{?dist}
|
||||||
|
URL: https://software.sil.org/padauk/
|
||||||
|
|
||||||
%global common_desc \
|
%global foundry SIL
|
||||||
|
%global fontlicense OFL-1.1
|
||||||
|
%global fontlicenses LICENSE.md
|
||||||
|
%global fontdocs *.txt documentation
|
||||||
|
%global fontdocsex %{fontlicenses}
|
||||||
|
|
||||||
|
%global common_description %{expand:
|
||||||
Padauk is a pan Burma font designed to support all Myanmar script based \
|
Padauk is a pan Burma font designed to support all Myanmar script based \
|
||||||
languages. It covers all of the Unicode Myanmar script blocks and works \
|
languages. It covers all of the Unicode Myanmar script blocks and works \
|
||||||
on all OpenType and Graphite based systems.
|
on all OpenType and Graphite based systems.}
|
||||||
|
|
||||||
Name: %{fontname}-fonts
|
%global fontfamily0 Padauk
|
||||||
Version: 3.003
|
%global fontsummary0 A font for Burmese and the Myanmar script
|
||||||
Release: 11%{?dist}
|
%global fonts0 Padauk-*.ttf
|
||||||
Summary: A font for Burmese and the Myanmar script
|
%global fontconfs0 %{SOURCE10}
|
||||||
|
%global fontdescription0 %{expand:
|
||||||
|
%{common_description}
|
||||||
|
|
||||||
License: OFL
|
This package provide the base fonts.}
|
||||||
URL: https://software.sil.org/padauk/
|
|
||||||
Source0: https://github.com/silnrsi/font-padauk/releases/download/v%{version}/padauk-%{version}.zip
|
|
||||||
Source1: %{name}-fontconfig.conf
|
|
||||||
Source2: %{name}-book-fontconfig.conf
|
|
||||||
Source3: %{fontname}.metainfo.xml
|
|
||||||
Source4: %{fontname}-book.metainfo.xml
|
|
||||||
|
|
||||||
BuildArch: noarch
|
|
||||||
BuildRequires: fontpackages-devel
|
|
||||||
BuildRequires: fonttools
|
|
||||||
Requires: fontpackages-filesystem
|
|
||||||
|
|
||||||
%description
|
%global fontfamily2 Padauk Book
|
||||||
%common_desc
|
%global fontsummary2 Padauk Book fonts
|
||||||
|
%global fonts2 PadaukBook*.ttf
|
||||||
|
%global fontconfs2 %{SOURCE11}
|
||||||
|
%global fontdescription2 %{expand:
|
||||||
|
%global fontpkgname2 sil-padauk-book-fonts
|
||||||
|
%{common_description}
|
||||||
|
|
||||||
%_font_pkg -f %{fontconf}.conf Padauk-Regular.ttf Padauk-Bold.ttf
|
This package provide Padauk Book family font.}
|
||||||
%doc *.txt documentation
|
|
||||||
%{_datadir}/appdata/%{fontname}.metainfo.xml
|
|
||||||
|
|
||||||
%package -n %{fontname}-book-fonts
|
Source0: https://github.com/silnrsi/font-padauk/releases/download/v%{version}/padauk-%{version}.zip
|
||||||
Summary: A font for Burmese and the Myanmar script
|
Source10: 65-%{fontpkgname0}.conf
|
||||||
|
Source11: 65-%{fontpkgname2}.conf
|
||||||
|
|
||||||
%description -n %{fontname}-book-fonts
|
%fontpkg -a
|
||||||
Padauk Book family font.
|
|
||||||
|
|
||||||
%common_desc
|
|
||||||
|
|
||||||
%_font_pkg -n book -f %{fontconf}-book.conf PadaukBook*.ttf
|
|
||||||
%{_datadir}/appdata/%{fontname}-book.metainfo.xml
|
|
||||||
%doc *.txt documentation
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n padauk-%{version}
|
%autosetup -n padauk-3.003
|
||||||
sed -i 's/\r//' *.txt documentation/DOCUMENTATION.txt
|
%linuxtext *.txt documentation/*.txt
|
||||||
|
|
||||||
%build
|
%build
|
||||||
# nothing to do here
|
%fontbuild -a
|
||||||
|
|
||||||
%install
|
%install
|
||||||
install -m 0755 -d %{buildroot}%{_fontdir}
|
%fontinstall -a
|
||||||
install -m 0644 -p *.ttf %{buildroot}%{_fontdir}
|
|
||||||
|
|
||||||
install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} \
|
%check
|
||||||
%{buildroot}%{_fontconfig_confdir}
|
%fontcheck -a
|
||||||
|
|
||||||
install -m 0644 -p %{SOURCE1} \
|
%fontfiles -a
|
||||||
%{buildroot}%{_fontconfig_templatedir}/%{fontconf}.conf
|
|
||||||
install -m 0644 -p %{SOURCE2} \
|
|
||||||
%{buildroot}%{_fontconfig_templatedir}/%{fontconf}-book.conf
|
|
||||||
|
|
||||||
ln -s %{_fontconfig_templatedir}/%{fontconf}.conf \
|
|
||||||
%{buildroot}%{_fontconfig_confdir}/%{fontconf}.conf
|
|
||||||
|
|
||||||
ln -s %{_fontconfig_templatedir}/%{fontconf}-book.conf \
|
|
||||||
%{buildroot}%{_fontconfig_confdir}/%{fontconf}-book.conf
|
|
||||||
|
|
||||||
# Add AppStream metadata
|
|
||||||
install -Dm 0644 -p %{SOURCE3} \
|
|
||||||
%{buildroot}%{_datadir}/appdata/%{fontname}.metainfo.xml
|
|
||||||
install -Dm 0644 -p %{SOURCE4} \
|
|
||||||
%{buildroot}%{_datadir}/appdata/%{fontname}-book.metainfo.xml
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Jun 23 2023 Parag Nemade <pnemade AT fedoraproject DOT org> - 3.003-12
|
||||||
|
- Convert to new fonts packaging guidelines
|
||||||
|
- Migrate to SPDX license expression
|
||||||
|
|
||||||
* Sat Jan 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 3.003-11
|
* Sat Jan 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 3.003-11
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
||||||
|
|
||||||
|
@ -1,8 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!-- Copyright 2014 Richard Hughes <richard@hughsie.com> -->
|
|
||||||
<component type="font">
|
|
||||||
<id>sil-padauk</id>
|
|
||||||
<metadata_license>CC0-1.0</metadata_license>
|
|
||||||
<name>Padauk</name>
|
|
||||||
<summary>A font for Burmese and the Myanmar script</summary>
|
|
||||||
</component>
|
|
@ -6,7 +6,7 @@
|
|||||||
required_packages:
|
required_packages:
|
||||||
- sil-padauk-fonts
|
- sil-padauk-fonts
|
||||||
- sil-padauk-book-fonts
|
- sil-padauk-book-fonts
|
||||||
path_prefix: /usr/share/fonts/sil-padauk
|
path_prefix: /usr/share/fonts/sil-padauk-fonts
|
||||||
coverage:
|
coverage:
|
||||||
- my
|
- my
|
||||||
families:
|
families:
|
||||||
|
Loading…
Reference in New Issue
Block a user