Convert spec to new fonts packaging guidelines

Update to new upstream release 0.117

Signed-off-by: Parag Nemade <pnemade@fedoraproject.org>
f41
Parag Nemade 3 years ago
parent 3b60735cb0
commit e6609604a2
No known key found for this signature in database
GPG Key ID: 71932951EB71E972

1
.gitignore vendored

@ -5,3 +5,4 @@
/Amiri-0.111.zip /Amiri-0.111.zip
/Amiri-0.112.zip /Amiri-0.112.zip
/Amiri-0.113.zip /Amiri-0.113.zip
/Amiri-0.117.zip

@ -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>serif</family> <family>serif</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>serif</family> <family>serif</family>

@ -1,111 +1,95 @@
%global fontname amiri Version: 0.117
Release: 1%{?dist}
%global common_desc \ URL: http://www.amirifont.org
Amiri is a classical Arabic typeface in Naskh style for typesetting books \
and other running text. \ %global fontlicense OFL-1.1
\ %global fontlicenses OFL.txt
Amiri is a revival of the beautiful typeface pioneered in early 20th \ %global fontdocs README.md README-Arabic.md Documentation-Arabic.html
century by Bulaq Press in Cairo, also known as Amiria Press, after which \ %global fontdocsex %{fontlicenses}
%global common_description %{expand:
Amiri is a revival of the beautiful typeface pioneered in early 20th
century by Bulaq Press in Cairo, also known as Amiria Press, after which
the font is named. the font is named.
}
%global common_desc_ar \ %global common_description_ar %{expand:
الخط الأميري خط نسخي موجه لطباعة الكتب والنصوص الطويلة. \ تميزت به مطبعة بولاق منذ أوائل القرن العشرين، والتي عرفت
الخط الأميري هو إحياء ومحاكاة للخط الطباعي الجميل الذي \
تميزت به مطبعة بولاق منذ أوائل القرن العشرين، والتي عرفت \
أيضًا بالمطبعة الأميرية، ومن هنا أخذ الخط اسمه. أيضًا بالمطبعة الأميرية، ومن هنا أخذ الخط اسمه.
}
Name: %{fontname}-fonts %global fontfamily0 Amiri
Version: 0.113 %global fontsummary0 A classical Arabic font in Naskh style
Release: 4%{?dist} %global fontpkgheader0 %{expand:
License: OFL Obsoletes: amiri-fonts-common < %{version}-%{release}
}
%global fonts0 Amiri-Regular.ttf Amiri-Slanted.ttf Amiri-BoldSlanted.ttf Amiri-Bold.ttf
%global fontconfs0 %{SOURCE10}
%global fontdescription0 %{expand:%{common_description}
Source0: https://github.com/alif-type/amiri/releases/download/%{version}/Amiri-%{version}.zip Amiri is a classical Arabic typeface in Naskh style for typesetting books
Source1: %{fontname}-quran-fontconfig.conf and other running text.
Source2: %{fontname}-fontconfig.conf %{common_description_ar}
BuildArch: noarch الخط الأميري خط نسخي موجه لطباعة الكتب والنصوص الطويلة.
BuildRequires: fontpackages-devel الخط الأميري هو إحياء ومحاكاة للخط الطباعي الجميل الذي
Requires: %{name}-common = %{version}-%{release}
Summary: A classical Arabic font in Naskh style }
Summary(ar): الخطوط الأميرية ذات المظهر الأنيق و التّراث العريق
URL: http://www.amirifont.org
%description %global fontfamily1 Amiri Quran
%common_desc %global fontsummary1 Quran type of Amiri fonts
%global fonts1 AmiriQuran.ttf
%global fontconfs1 %{SOURCE11}
%global fontdescription1 %{expand:%{common_description}
%description -l ar This package contains Quran type of Amiri fonts.
%common_desc_ar
%package common
Summary: Common files for %{name} %{common_description_ar}
Summary(ar): الملفات العامّة للخطوط الأميرية
Requires: fontpackages-filesystem
%description common تحتوي هذه الحُزمة على النّمط القرآني من الخط الأميري.
%common_desc }
This package consists of files used by other %{name} packages. %global fontfamily2 Amiri Quran Colored
%global fontsummary2 None
%global fonts2 AmiriQuranColored.ttf
%global fontconfs2 %{SOURCE12}
%global fontdescription2 %{expand:%{common_description}
This package contains Quran Colored type of Amiri fonts.
%description common -l ar %{common_description_ar}
%common_desc_ar
تتألف هذه الحزمة من ملفات الخط الأميري العامة. تحتوي هذه الحزمة على نوع القرآن الملون من الخطوط الأميرية.
}
%package -n %{fontname}-quran-fonts
Summary: Quran type of Amiri fonts
Summary(ar): النّمط القُرآني من الخط الأميري
Requires: %{name}-common = %{version}-%{release}
%description -n %{fontname}-quran-fonts Source0: https://github.com/alif-type/amiri/releases/download/%{version}/Amiri-%{version}.zip
%common_desc Source10: 67-%{fontpkgname0}.conf
Source11: 67-%{fontpkgname1}.conf
Source12: 67-%{fontpkgname2}.conf
This package contains Quran type of Amiri fonts. %fontpkg -a
%description -n %{fontname}-quran-fonts -l ar
%common_desc_ar
تحتوي هذه الحُزمة على النّمط القرآني من الخط الأميري. %fontmetapkg
%prep %prep
%setup -q -n Amiri-%{version} %setup -q -n Amiri-%{version}
%build %build
#Nothing to build %fontbuild -a
%install %install
install -m 0755 -d %{buildroot}%{_fontdir} %fontinstall -a
install -m 0644 -p Amiri-Bold.ttf %{buildroot}%{_fontdir}/%{fontname}-bold.ttf
install -m 0644 -p Amiri-BoldSlanted.ttf %{buildroot}%{_fontdir}/%{fontname}-boldslanted.ttf
install -m 0644 -p Amiri-Regular.ttf %{buildroot}%{_fontdir}/%{fontname}-regular.ttf
install -m 0644 -p Amiri-Slanted.ttf %{buildroot}%{_fontdir}/%{fontname}-slanted.ttf
install -m 0644 -p AmiriQuran.ttf %{buildroot}%{_fontdir}/%{fontname}-quran.ttf
install -m 0644 -p AmiriQuranColored.ttf %{buildroot}%{_fontdir}/%{fontname}-quran-colored.ttf
install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} \ %check
%{buildroot}%{_fontconfig_confdir} %fontcheck -a
install -m 0644 -p %{SOURCE1} \ %fontfiles -a
%{buildroot}%{_fontconfig_templatedir}/67-%{fontname}-quran.conf
install -m 0644 -p %{SOURCE2} \
%{buildroot}%{_fontconfig_templatedir}/67-%{fontname}.conf
for fontconf in 67-%{fontname}-quran.conf \
67-%{fontname}.conf ; do
ln -s %{_fontconfig_templatedir}/$fontconf \
%{buildroot}%{_fontconfig_confdir}/$fontconf
done
%_font_pkg -n quran -f 67-%{fontname}-quran.conf amiri-quran.ttf amiri-quran-colored.ttf
%_font_pkg -f 67-%{fontname}.conf amiri-regular.ttf amiri-slanted.ttf amiri-bold.ttf amiri-boldslanted.ttf
%files common
%license OFL.txt
%doc NEWS README README-Arabic NEWS-Arabic Documentation-Arabic.pdf
%changelog %changelog
* Sat Sep 03 2022 Parag Nemade <pnemade AT redhat DOT com> - 0.117-1
- Convert spec to new fonts packaging guidelines
- Update to new upstream release 0.117
* Wed Jul 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.113-4 * Wed Jul 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.113-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
@ -223,4 +207,3 @@ done
* Mon Dec 19 2011 Ehab El-Gedawy <ehabsas@gmail.com> - 0.100-1 * Mon Dec 19 2011 Ehab El-Gedawy <ehabsas@gmail.com> - 0.100-1
- Initial Packaging - Initial Packaging

@ -1 +1 @@
SHA512 (Amiri-0.113.zip) = c3b65249b42d272ecdc9206687d6213ef376afcb65d43a259d587b34d8d5c39ac3295291a5f9a0d6d614ad890bf238ecd706bf723734253367e765b526ace2b4 SHA512 (Amiri-0.117.zip) = 7ab081f32726d67dab2b1a4036f180687ce9ab37dc62974c426a21235385085e0bdc0837eb2c74d4aab12c1c0cbbac856558a39c59d9d7e16def187139361daf

Loading…
Cancel
Save