diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..8f73327 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/lohit-bengali-2.91.5.tar.gz diff --git a/.lohit-bengali-fonts.metadata b/.lohit-bengali-fonts.metadata new file mode 100644 index 0000000..ccc5f3f --- /dev/null +++ b/.lohit-bengali-fonts.metadata @@ -0,0 +1 @@ +f71891875b5294df9d02420fa50908259f261ebd SOURCES/lohit-bengali-2.91.5.tar.gz diff --git a/SOURCES/bug-959994.patch b/SOURCES/bug-959994.patch new file mode 100644 index 0000000..5dce5dd --- /dev/null +++ b/SOURCES/bug-959994.patch @@ -0,0 +1,25 @@ +diff -rup lohit-bengali-2.5.3/65-0-lohit-bengali.conf lohit-bengali-2.5.3_mod/65-0-lohit-bengali.conf +--- lohit-bengali-2.5.3/65-0-lohit-bengali.conf 2013-01-30 17:31:46.000000000 +0530 ++++ lohit-bengali-2.5.3_mod/65-0-lohit-bengali.conf 2013-05-29 14:28:53.239651293 +0530 +@@ -22,6 +22,21 @@ + + + ++ ++ ++ Lohit Bengali ++ ++ ++ ++ lang ++ ++ as ++ ++ ++ ++ ++ ++ + + Lohit Bengali + diff --git a/SPECS/lohit-bengali-fonts.spec b/SPECS/lohit-bengali-fonts.spec new file mode 100644 index 0000000..7227b45 --- /dev/null +++ b/SPECS/lohit-bengali-fonts.spec @@ -0,0 +1,163 @@ +%global fontname lohit-bengali +%global fontconf 65-0-%{fontname}.conf +%global metainfo io.pagure.lohit.bengali.font.metainfo + +Name: %{fontname}-fonts +Version: 2.91.5 +Release: 3%{?dist} +Summary: Free Bengali script font +Group: User Interface/X +License: OFL +URL: https://pagure.io/lohit +Source0: https://releases.pagure.org/lohit/%{fontname}-%{version}.tar.gz +BuildArch: noarch +BuildRequires: fontforge >= 20080429 +BuildRequires: fontpackages-devel +BuildRequires: python3-devel +Requires: fontpackages-filesystem +Patch1: bug-959994.patch + + +%description +This package provides a free Bengali TrueType/OpenType font. + + +%prep +%setup -q -n %{fontname}-%{version} +mv 66-%{fontname}.conf 65-0-lohit-bengali.conf +%patch1 -p1 -b .1-removing-as-from-fc-cache + + +%build +make ttf %{?_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 %{fontconf} \ + %{buildroot}%{_fontconfig_templatedir}/%{fontconf} +ln -s %{_fontconfig_templatedir}/%{fontconf} \ + %{buildroot}%{_fontconfig_confdir}/%{fontconf} + +# Add AppStream metadata +install -Dm 0644 -p %{metainfo}.xml \ + %{buildroot}%{_datadir}/metainfo/%{metainfo}.xml + +%_font_pkg -f %{fontconf} *.ttf + +%doc ChangeLog COPYRIGHT OFL.txt AUTHORS README test-bengali.txt +%{_datadir}/metainfo/%{metainfo}.xml + + +%changelog +* Thu Feb 08 2018 Fedora Release Engineering - 2.91.5-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Wed Jul 26 2017 Fedora Release Engineering - 2.91.5-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Tue May 30 2017 Pravin Satpute - 2.91.5-1 +- Upstream new release 2.91.5 +- Update metainfo file with latest specifications +- Changed location of metainfo to /usr/share/metainfo + +* Tue Mar 14 2017 Pravin Satpute - 2.91.4-1 +- Added BuildRequires: python3-devel. +- Resolves: #1423901 - FTBFS in rawhide. +- Migrated upstream from fedorahosted to pagure. + +* Fri Feb 10 2017 Fedora Release Engineering - 2.91.3-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Thu Feb 04 2016 Fedora Release Engineering - 2.91.3-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Tue Sep 29 2015 Pravin Satpute - 2.91.3-1 +- Upstream release 2.91.3 +- Added Unicode 8.0 characters. +- Removed Obsolete lohit-fonts-common. + +* Wed Jun 17 2015 Fedora Release Engineering - 2.91.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Mon Mar 30 2015 Pravin Satpute - 2.91.2-1 +- Upstream release 2.91.2 +- Resolved issue of positioning #58 + +* Wed Dec 03 2014 Pravin Satpute - 2.91.1-1 +- Upstream new release with critical bugfixes. +- Resolves #1170135 Conjuncts rendering issue for some glyphs + +* Mon Oct 20 2014 Pravin Satpute - 2.91.0-2 +- Added metainfo for gnome-software + +* Mon Oct 13 2014 Pravin Satpute - 2.91.0-1 +- Upstream release 2.91.0 under lohit2 project +- Rewritten all GSUB rules. +- Open type feature available in .fea file for easy reusability. +- Developer friendly glyphname with following AGL guidelines. +- Font Information updated in sfd. +- Support bng2 and beng open type tags. +- "copy reference" feature implemented +- Automated testing support. +- Added test and README file. +- Done with lookup writings. +- Removed 38 unwanted glyphs. + +* Sat Jun 07 2014 Fedora Release Engineering - 2.5.3-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Sat Aug 03 2013 Fedora Release Engineering - 2.5.3-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Wed May 29 2013 Pravin Satpute - 2.5.3-3 +- Resolved #959994 - Removed 'as' from fc-cache + +* Fri Apr 12 2013 Pravin Satpute - 2.5.3-2 +- Resolved #950523 + +* Thu Jan 31 2013 Pravin Satpute - 2.5.3-1 +- Upstream release 2.5.3 + +* Thu Nov 22 2012 Pravin Satpute - 2.5.2-2 +- Upstream release 2.5.2 + +* Thu Jul 19 2012 Fedora Release Engineering - 2.5.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Mon Apr 23 2012 Pravin Satpute - 2.5.1-1 +- Upstream new release + +* Fri Jan 13 2012 Fedora Release Engineering - 2.5.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Fri Oct 07 2011 Pravin Satpute - 2.5.0-1 +- Upstream new release with relicensing to OFL + +* Mon Jun 06 2011 Pravin Satpute - 2.4.3-8 +- fixed bug 705348 + +* Wed Apr 13 2011 Pravin Satpute - 2.4.3-7 +- fixed bug 692360 + +* Fri Feb 04 2011 Pravin Satpute - 2.4.3-6 +- fixed bug 673412, rupee sign + +* Fri Apr 16 2010 Pravin Satpute - 2.4.3-5 +- fixed bug 578030, conf file + +* Sun Dec 13 2009 Pravin Satpute - 2.4.3-4 +- fixed bug 548686, license field + +* Fri Sep 25 2009 Pravin Satpute - 2.4.3-3 +- updated specs + +* Wed Sep 09 2009 Pravin Satpute - 2.4.3-1 +- first release after lohit-fonts split in new tarball + +