From a9ac51815ff52325f4f7302840f58e2fc0d7ff0b Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Tue, 7 May 2019 08:09:43 -0400 Subject: [PATCH] import madan-fonts-2.000-20.el8 --- .gitignore | 1 + .madan-fonts.metadata | 1 + ...adan-fonts-2.000-bug842965-u0970-ff2.patch | 45 +++++ SOURCES/madan-fonts-fontconfig.conf | 48 ++++++ SOURCES/madan.metainfo.xml | 16 ++ SOURCES/sfd2ttf.pe | 8 + SOURCES/ttf2sfd.pe | 8 + SPECS/madan-fonts.spec | 163 ++++++++++++++++++ 8 files changed, 290 insertions(+) create mode 100644 .gitignore create mode 100644 .madan-fonts.metadata create mode 100644 SOURCES/madan-fonts-2.000-bug842965-u0970-ff2.patch create mode 100644 SOURCES/madan-fonts-fontconfig.conf create mode 100644 SOURCES/madan.metainfo.xml create mode 100644 SOURCES/sfd2ttf.pe create mode 100644 SOURCES/ttf2sfd.pe create mode 100644 SPECS/madan-fonts.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..81053cd --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/madan.zip diff --git a/.madan-fonts.metadata b/.madan-fonts.metadata new file mode 100644 index 0000000..9e9e454 --- /dev/null +++ b/.madan-fonts.metadata @@ -0,0 +1 @@ +b710212f74a309c2e227aea5744e00e159597d15 SOURCES/madan.zip diff --git a/SOURCES/madan-fonts-2.000-bug842965-u0970-ff2.patch b/SOURCES/madan-fonts-2.000-bug842965-u0970-ff2.patch new file mode 100644 index 0000000..a56040e --- /dev/null +++ b/SOURCES/madan-fonts-2.000-bug842965-u0970-ff2.patch @@ -0,0 +1,45 @@ +--- madan/madan.sfd.old 2017-03-13 13:58:43.222651696 +0530 ++++ madan/madan.sfd 2017-03-13 14:04:19.735250509 +0530 +@@ -524,7 +524,7 @@ + AntiAlias: 1 + FitToEm: 0 + AnchorClass2: "Anchor-0" "'abvm' Above Base Mark in Devanagari lookup 0 subtable" "Anchor-1" "'abvm' Above Base Mark in Devanagari lookup 1 subtable" "Anchor-2" "'abvm' Above Base Mark in Devanagari lookup 2 subtable" "Anchor-3" "'abvm' Above Base Mark in Devanagari lookup 4 subtable" "Anchor-4" "'abvm' Above Base Mark in Devanagari lookup 5 subtable" "Anchor-5" "'blwm' Below Base Mark in Devanagari lookup 6 subtable" "Anchor-6" "'blwm' Below Base Mark in Devanagari lookup 7 subtable" +-BeginChars: 65889 464 ++BeginChars: 65890 465 + + StartChar: .notdef + Encoding: 65536 -1 0 +@@ -106551,5 +106551,33 @@ + Flags: W + LayerCount: 2 + EndChar ++ ++StartChar: uni0970 ++Encoding: 65889 2416 464 ++Width: 992 ++Flags: W ++LayerCount: 2 ++Fore ++SplineSet ++498 860 m 0,0,1 ++ 590 860 590 860 655 927 c 128,-1,2 ++ 720 994 720 994 720 1090 c 128,-1,3 ++ 720 1186 720 1186 655 1252 c 128,-1,4 ++ 590 1318 590 1318 498 1318 c 0,5,6 ++ 408 1318 408 1318 343 1252 c 128,-1,7 ++ 278 1186 278 1186 278 1090 c 128,-1,8 ++ 278 994 278 994 343 927 c 128,-1,9 ++ 408 860 408 860 498 860 c 0,0,1 ++496 748 m 128,-1,11 ++ 352 748 352 748 251 848 c 128,-1,12 ++ 150 948 150 948 150 1090 c 0,13,14 ++ 150 1230 150 1230 251 1330 c 128,-1,15 ++ 352 1430 352 1430 496 1430 c 128,-1,16 ++ 640 1430 640 1430 741 1330 c 128,-1,17 ++ 842 1230 842 1230 842 1090 c 0,18,19 ++ 842 948 842 948 741 848 c 128,-1,10 ++ 640 748 640 748 496 748 c 128,-1,11 ++EndSplineSet ++EndChar + EndChars + EndSplineFont diff --git a/SOURCES/madan-fonts-fontconfig.conf b/SOURCES/madan-fonts-fontconfig.conf new file mode 100644 index 0000000..6a7e863 --- /dev/null +++ b/SOURCES/madan-fonts-fontconfig.conf @@ -0,0 +1,48 @@ + + + + + + + + Madan2 + + + Madan + + + Madan + + + + Madan2 + + Madan + + + + + + + + ne-np + + + sans-serif + + + Madan + + + + + + Madan + + + true + + + + + diff --git a/SOURCES/madan.metainfo.xml b/SOURCES/madan.metainfo.xml new file mode 100644 index 0000000..d30c9dc --- /dev/null +++ b/SOURCES/madan.metainfo.xml @@ -0,0 +1,16 @@ + + + + madan + CC-BY-3.0 + Madan + Font for Nepali language + +

+ This package provides the Madan font for Nepali made by the + Madan Puraskar Pustakalaya project. +

+
+ pnemade_at_redhat_dot_com + http://madanpuraskar.org/ +
diff --git a/SOURCES/sfd2ttf.pe b/SOURCES/sfd2ttf.pe new file mode 100644 index 0000000..34a4f04 --- /dev/null +++ b/SOURCES/sfd2ttf.pe @@ -0,0 +1,8 @@ +#!/usr/bin/env fontforge + +Print( " ") +Print( "Generating ttf from sfd sources...") +Print( "----------------------------------") +Open($1) +Generate($1:r + ".ttf", "", 0x800) +Print( " ") diff --git a/SOURCES/ttf2sfd.pe b/SOURCES/ttf2sfd.pe new file mode 100644 index 0000000..bc7178b --- /dev/null +++ b/SOURCES/ttf2sfd.pe @@ -0,0 +1,8 @@ +#!/usr/bin/env fontforge + +Print( " ") +Print( "Generating sfd from ttf sources...") +Print( "----------------------------------") +Open($1) +Save($1:r + ".sfd") +Print( " ") diff --git a/SPECS/madan-fonts.spec b/SPECS/madan-fonts.spec new file mode 100644 index 0000000..df3dc8b --- /dev/null +++ b/SPECS/madan-fonts.spec @@ -0,0 +1,163 @@ +%global fontname madan +%global fontconf 65-0-%{fontname}.conf + +Name: %{fontname}-fonts +Version: 2.000 +Release: 20%{?dist} +Summary: Font for Nepali language +License: GPL+ +URL: http://madanpuraskar.org/ +# Found new following working Source URL. Use wget to download this archive +Source0: http://download.com.np/uploads/nepali_unicode/madan.zip +Source1: %{name}-fontconfig.conf +Source2: ttf2sfd.pe +Source3: sfd2ttf.pe +Source4: %{fontname}.metainfo.xml +BuildArch: noarch +BuildRequires: fontforge +BuildRequires: fontpackages-devel +Requires: fontpackages-filesystem +# This patch will make sure "fc-scan madan.ttf |grep lang:" will show ne +# This is now newly created against fontforge2 build +Patch0: madan-fonts-2.000-bug842965-u0970-ff2.patch + +%description +This package provides the Madan font for Nepali made by the +Madan Puraskar Pustakalaya project. + +%prep +%setup -c -q +for file in madan/license.txt; do + sed "s|\r||g" $file > $file.new && \ + touch -r $file $file.new && \ + mv $file.new $file +done + +cp -p %{SOURCE2} %{SOURCE3} . + +chmod 755 ttf2sfd.pe sfd2ttf.pe +./ttf2sfd.pe madan/*.ttf +rm -rf madan/*ttf +%patch0 -p0 -b .added-u0970-character +./sfd2ttf.pe madan/*.sfd + + +%build +echo "Nothing to do in Build." + +%install +install -m 0755 -d %{buildroot}%{_fontdir} +install -m 0644 -p %{fontname}/*.ttf %{buildroot}%{_fontdir} + +install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} \ + %{buildroot}%{_fontconfig_confdir} + +install -m 0644 -p %{SOURCE1} \ + %{buildroot}%{_fontconfig_templatedir}/%{fontconf} +ln -s %{_fontconfig_templatedir}/%{fontconf} \ + %{buildroot}%{_fontconfig_confdir}/%{fontconf} + +# Add AppStream metadata +install -Dm 0644 -p %{SOURCE4} \ + %{buildroot}%{_datadir}/appdata/%{fontname}.metainfo.xml + +%_font_pkg -f %{fontconf} *.ttf +%doc %{fontname}/license.txt +%{_datadir}/appdata/%{fontname}.metainfo.xml + +%changelog +* Thu Feb 08 2018 Fedora Release Engineering - 2.000-20 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Wed Jul 26 2017 Fedora Release Engineering - 2.000-19 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Fri Feb 10 2017 Fedora Release Engineering - 2.000-18 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Thu Feb 04 2016 Fedora Release Engineering - 2.000-17 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Fri Jul 03 2015 Parag Nemade - 2.000-16 +- Rebase patch0 against fontforge2 build (Thanks PravinS) + +* Wed Jun 17 2015 Fedora Release Engineering - 2.000-15 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Wed Oct 22 2014 Parag Nemade - 2.000-14 +- Rebase patch0 against fontforge2 build + +* Thu Oct 16 2014 Parag Nemade - 2.000-13 +- Add metainfo file to show this font in gnome-software + +* Sat Jun 07 2014 Fedora Release Engineering - 2.000-12 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Sat Aug 03 2013 Fedora Release Engineering - 2.000-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Thu Feb 14 2013 Fedora Release Engineering - 2.000-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Mon Nov 26 2012 Parag - 2.000-9 +- Resolves:rh#880037 - Update Source URL in spec file + +* Fri Aug 03 2012 Parag - 2.000-8 +- Resolves: rh#842965, added character u0970 +- Enabled autohint in fontconf file + +* Thu Jul 19 2012 Fedora Release Engineering - 2.000-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Fri Jan 13 2012 Fedora Release Engineering - 2.000-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Mon Nov 28 2011 Parag - 2.000-5 +- Rebuild for rh#757105 - no font(:lang=blahblah) generated for Provides + +* Tue Feb 08 2011 Fedora Release Engineering - 2.000-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Tue May 18 2010 Parag - 2.000-3 +- Resolves: rh#586765 - Rename 65-madan.conf to 65-0-madan.conf + +* Tue Apr 20 2010 Parag - 2.000-2 +- Resolves: rh#578041-lang-specific overrides rule doesn't work as expected + +* Tue Feb 23 2010 Parag - 2.000-1 +- Update to next upstream release +- Resolves: rh#335851-[ne_NP] Add license text file to madan-fonts package +- Resolves: rh#520047-[ne_NP] Need fontconfig rules for Madan font + +* Tue Aug 11 2009 Parag - 1.0-11 +- Fix source audit 2009-08-10 + +* Sat Jul 25 2009 Fedora Release Engineering - 1.0-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Wed Jul 08 2009 Pravin Satpute - 1.0-9 +- updated spec as per new packaging guideline + +* Wed Feb 25 2009 Fedora Release Engineering - 1.0-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Thu Aug 7 2008 Tom "spot" Callaway - 1.0-7 +- fix license tag + +* Mon Oct 15 2007 Rahul Bhalerao - 1.0-6.fc8 +- Spec update as per review + +* Thu Oct 11 2007 Rahul Bhalerao - 1.0-5.fc8 +- Spec update as per reveiw + +* Wed Sep 26 2007 Rahul Bhalerao - 1.0-4.fc8 +- Spec update as per review + +* Fri Sep 21 2007 Rahul Bhalerao - 1.0-3.fc8 +- Added LICENSE as Source1 + +* Thu Sep 20 2007 Rahul Bhalerao - 1.0-2.fc8 +- Removed use of tarball and ghost files + +* Thu Sep 13 2007 Rahul Bhalerao - 1.0-1.fc8 +- Initial packaging