diff --git a/.gitignore b/.gitignore index e69de29..a3cca0a 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/amiri-0.106.tar.bz2 diff --git a/amiri-fontconfig.conf b/amiri-fontconfig.conf new file mode 100644 index 0000000..e7eaca6 --- /dev/null +++ b/amiri-fontconfig.conf @@ -0,0 +1,16 @@ + + + + + serif + + Amiri + + + + Amiri + + serif + + + diff --git a/amiri-fonts.spec b/amiri-fonts.spec new file mode 100644 index 0000000..a505b18 --- /dev/null +++ b/amiri-fonts.spec @@ -0,0 +1,163 @@ +%global fontname amiri + +%global common_desc \ +Amiri is a classical Arabic typeface in Naskh style for typesetting books \ +and other running text. \ + \ +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. + +%global common_desc_ar \ +الخط الأميري خط نسخي موجه لطباعة الكتب والنصوص الطويلة. \ +الخط الأميري هو إحياء ومحاكاة للخط الطباعي الجميل الذي \ +تميزت به مطبعة بولاق منذ أوائل القرن العشرين، والتي عرفت \ +أيضًا بالمطبعة الأميرية، ومن هنا أخذ الخط اسمه. + +Name: %{fontname}-fonts +Version: 0.106 +Release: 9%{?dist} +License: OFL + +Source0: http://downloads.sourceforge.net/project/amiri/%{fontname}-%{version}.tar.bz2 +Source1: %{fontname}-quran-fontconfig.conf +Source2: %{fontname}-fontconfig.conf + +BuildArch: noarch +BuildRequires: fontpackages-devel +Requires: %{name}-common = %{version}-%{release} + +# Enable the disabled-lines when rebuilding of Amiri fonts possible. +#BuildRequires: general-purpose-preprocessor +#BuildRequires: python +#BuildRequires: sortsmill +#BuildRequires: latexmk +#BuildRequires: fntsample +#BuildRequires: sfnttool (or sfntly - need to edit Makefile) + +Group: User Interface/X +Summary: A classical Arabic font in Naskh style +Summary(ar): الخطوط الأميرية ذات المظهر الأنيق و التّراث العريق +URL: http://www.amirifont.org + +%description +%common_desc + +%description -l ar +%common_desc_ar + +%package common + +Summary: Common files for %{name} +Summary(ar): الملفات العامّة للخطوط الأميرية +Requires: fontpackages-filesystem + +%description common +%common_desc + +This package consists of files used by other %{name} packages. + +%description common -l 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 +%common_desc + +This package contains Quran type of Amiri fonts. +%description -n %{fontname}-quran-fonts -l ar +%common_desc_ar + +تحتوي هذه الحُزمة على النّمط القرآني من الخط الأميري. + +%prep +%setup -q -n %{fontname}-%{version} + +%build +# Enable the disabled-lines when rebuilding of Amiri fonts possible. +#make %{?_smp_mflags} clean +make %{?_smp_mflags} + +%install +install -m 0755 -d %{buildroot}%{_fontdir} + +install -m 0644 -p *.ttf %{buildroot}%{_fontdir} + +install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} \ + %{buildroot}%{_fontconfig_confdir} + +install -m 0644 -p %{SOURCE1} \ + %{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 + +%_font_pkg -f 67-%{fontname}.conf amiri-regular.ttf amiri-slanted.ttf amiri-bold.ttf amiri-boldslanted.ttf + +%files common +%doc documentation/* OFL.txt OFL-FAQ.txt + +%changelog +* Wed Nov 13 2013 Mosaab Alzoubi - 0.106-9 +- Change variable font priority to 67 in font_pkg line. +- Reform Summary. + +* Mon Nov 11 2013 Mosaab Alzoubi - 0.106-8 +- Re-split into main and Quran fonts. +- Improve Amiri Quran font config. +- Add license files to -common, dropped from others. +- Drop fontpackages-filesystem requires from main package. + +* Mon Nov 11 2013 Mosaab Alzoubi - 0.106-7 +- Fix Sourceforg link in Source0. +- Decrease instructions to rebuild Amiri from the source. +- Replace -docs by -common. +- Change font priority to 67. +- Improve font config. +- The fonts in one family so it united into 1 main package instead of 2. +- -common to be main package require. + +* Mon Oct 28 2013 Mosaab Alzoubi - 0.106-6 +- Replaces define by global. + +* Mon Oct 28 2013 Mosaab Alzoubi - 0.106-5 +- Drop .woff fonts. +- Update description by official one. +- Make this package ready for building if it possible later. + +* Sun Oct 20 2013 Mosaab Alzoubi - 0.106-4 +- Drop web and meta packages. +- Many Fixes. + +* Sat Oct 19 2013 Mosaab Alzoubi - 0.106-3 +- Rewritten almost from zero. + +* Thu Oct 10 2013 Mosaab Alzoubi - 0.106-2 +- Some fixes to be compatible with Fedora rules. + +* Fri Oct 4 2013 Mosaab Alzoubi - 0.106-1 +- Update version to 0.106 +- Update description by adding Amiri summary in Arabic +- Font released in two licenses (GPL2,OFL1.1) +- Make universal source + +* Mon Dec 19 2011 Muayyad Salah Alsadi - 0.100-2 +- no need for web version +- make it -fonts not -font (see http://fedoraproject.org/wiki/Packaging:FontsPolicy) + +* Mon Dec 19 2011 Ehab El-Gedawy - 0.100-1 +- Initial Packaging + diff --git a/amiri-quran-fontconfig.conf b/amiri-quran-fontconfig.conf new file mode 100644 index 0000000..3fc0817 --- /dev/null +++ b/amiri-quran-fontconfig.conf @@ -0,0 +1,16 @@ + + + + + serif + + Amiri Quran + + + + Amiri Quran + + serif + + + diff --git a/sources b/sources index e69de29..c32d620 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +cf436a9efbd63fdda81da011608eacee amiri-0.106.tar.bz2