diff --git a/65-0-smc-meera.conf b/65-0-smc-meera.conf new file mode 100644 index 0000000..e91e866 --- /dev/null +++ b/65-0-smc-meera.conf @@ -0,0 +1,21 @@ + + + + + + ml + + + sans-serif + + + Meera + + + + Meera + + sans-serif + + + diff --git a/65-0-smc-rachana.conf b/65-0-smc-rachana.conf new file mode 100644 index 0000000..9cd98fa --- /dev/null +++ b/65-0-smc-rachana.conf @@ -0,0 +1,21 @@ + + + + + + ml + + + serif + + + Rachana + + + + Rachana + + serif + + + diff --git a/67-smc-anjalioldlipi.conf b/67-smc-anjalioldlipi.conf new file mode 100644 index 0000000..9cec6fe --- /dev/null +++ b/67-smc-anjalioldlipi.conf @@ -0,0 +1,21 @@ + + + + + + ml-in + + + sans-serif + + + AnjaliOldLipi + + + + AnjaliOldLipi + + sans-serif + + + diff --git a/67-smc-dyuthi.conf b/67-smc-dyuthi.conf new file mode 100644 index 0000000..8f7a5eb --- /dev/null +++ b/67-smc-dyuthi.conf @@ -0,0 +1,21 @@ + + + + + + ml-in + + + sans-serif + + + Dyuthi + + + + Dyuthi + + sans-serif + + + diff --git a/67-smc-kalyani.conf b/67-smc-kalyani.conf new file mode 100644 index 0000000..75b2f00 --- /dev/null +++ b/67-smc-kalyani.conf @@ -0,0 +1,21 @@ + + + + + + ml-in + + + sans-serif + + + Kalyani + + + + Kalyani + + sans-serif + + + diff --git a/67-smc-raghumalayalam.conf b/67-smc-raghumalayalam.conf new file mode 100644 index 0000000..3092f2e --- /dev/null +++ b/67-smc-raghumalayalam.conf @@ -0,0 +1,21 @@ + + + + + + ml-in + + + sans-serif + + + RaghuMalayalam + + + + RaghuMalayalam + + sans-serif + + + diff --git a/67-smc-suruma.conf b/67-smc-suruma.conf new file mode 100644 index 0000000..ec75240 --- /dev/null +++ b/67-smc-suruma.conf @@ -0,0 +1,21 @@ + + + + + + ml-in + + + sans-serif + + + suruma + + + + suruma + + sans-serif + + + diff --git a/malayalam-fonts-6.1.tar.xz b/malayalam-fonts-6.1.tar.xz new file mode 100644 index 0000000..f486f37 Binary files /dev/null and b/malayalam-fonts-6.1.tar.xz differ diff --git a/smc-fonts.spec b/smc-fonts.spec new file mode 100644 index 0000000..c35731d --- /dev/null +++ b/smc-fonts.spec @@ -0,0 +1,126 @@ +#Basic Information +Name: smc-fonts +Version: 6.1 +Release: 12 +Summary: Open Type Fonts for Malayalam script +License: GPLv3+ with exceptions and GPLv2+ with exceptions and GPLv2+ and GPLv2 and GPL+ and OFL +URL: http://savannah.nongnu.org/projects/smc +Source0: http://download-mirror.savannah.gnu.org/releases/smc/fonts/malayalam-fonts-%{version}.tar.xz +Source1: 65-0-smc-meera.conf +Source2: 67-smc-anjalioldlipi.conf +Source3: 67-smc-dyuthi.conf +Source4: 67-smc-kalyani.conf +Source5: 65-0-smc-rachana.conf +Source6: 67-smc-raghumalayalam.conf +Source7: 67-smc-suruma.conf + +#Dependency +BuildRequires: fontpackages-devel > 1.13 fontforge >= 20080429 dos2unix + +BuildArch: noarch + +Provides: smc-fonts-common = %{version}-%{release} +Provides: smc-anjalioldlipi-fonts = %{version}-%{release} +Provides: smc-dyuthi-fonts = %{version}-%{release} +Provides: smc-kalyani-fonts = %{version}-%{release} +Provides: smc-meera-fonts = %{version}-%{release} +Provides: smc-rachana-fonts = %{version}-%{release} +Provides: smc-raghumalayalam-fonts = %{version}-%{release} +Provides: smc-suruma-fonts = %{version}-%{release} +Obsoletes: smc-fonts-common < %{version}-%{release} +Obsoletes: smc-anjalioldlipi-fonts < %{version}-%{release} +Obsoletes: smc-dyuthi-fonts < %{version}-%{release} +Obsoletes: smc-kalyani-fonts < %{version}-%{release} +Obsoletes: smc-meera-fonts < %{version}-%{release} +Obsoletes: smc-rachana-fonts < %{version}-%{release} +Obsoletes: smc-raghumalayalam-fonts < %{version}-%{release} +Obsoletes: smc-suruma-fonts < %{version}-%{release} + +%description +The SMC Fonts package contains malayalam unicode font family for Malayalam +script, including fonts such as anjalioldlipi, dyuthi, kalyani, meera, rachana, +raghumalayalam and suruma. + +Swathanthra Malayalam Computing (SMC) is a free software collective engaged in +development, localization, standardization and popularization of various Free +and Open Source Softwares in Malayalam language. + +#Build sections +%prep +%setup -q -n fonts + +%build +dos2unix */COPYING +dos2unix Rachana/LICENSE +chmod +x generate.pe +make + +%install +install -m 0755 -d %{buildroot}%{_fontdir} +install -m 0644 -p AnjaliOldLipi/*.ttf %{buildroot}%{_fontdir} +install -m 0644 -p Dyuthi/*.ttf %{buildroot}%{_fontdir} +install -m 0644 -p Kalyani/*.ttf %{buildroot}%{_fontdir} +install -m 0644 -p Meera/*.ttf %{buildroot}%{_fontdir} +install -m 0644 -p Rachana/*.ttf %{buildroot}%{_fontdir} +install -m 0644 -p RaghuMalayalamSans/*.ttf %{buildroot}%{_fontdir} +install -m 0644 -p Suruma/*.ttf %{buildroot}%{_fontdir} + +install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} %{buildroot}%{_fontconfig_confdir} +install -m 0644 -p %{SOURCE1} %{buildroot}%{_fontconfig_templatedir}/65-0-smc-meera.conf +install -m 0644 -p %{SOURCE2} %{buildroot}%{_fontconfig_templatedir}/67-smc-anjalioldlipi.conf +install -m 0644 -p %{SOURCE3} %{buildroot}%{_fontconfig_templatedir}/67-smc-dyuthi.conf +install -m 0644 -p %{SOURCE4} %{buildroot}%{_fontconfig_templatedir}/67-smc-kalyani.conf +install -m 0644 -p %{SOURCE5} %{buildroot}%{_fontconfig_templatedir}/65-0-smc-rachana.conf +install -m 0644 -p %{SOURCE6} %{buildroot}%{_fontconfig_templatedir}/67-smc-raghumalayalam.conf +install -m 0644 -p %{SOURCE7} %{buildroot}%{_fontconfig_templatedir}/67-smc-suruma.conf +for fconf in 65-0-smc-meera.conf \ + 67-smc-anjalioldlipi.conf \ + 67-smc-dyuthi.conf \ + 67-smc-kalyani.conf \ + 65-0-smc-rachana.conf \ + 67-smc-raghumalayalam.conf \ + 67-smc-suruma.conf ; do + ln -s %{_fontconfig_templatedir}/$fconf %{buildroot}%{_fontconfig_confdir}/$fconf +done + +# Add AppStream data +install -Dm 0644 -p smc.metainfo.xml \ + %{buildroot}%{_datadir}/appdata/smc.metainfo.xml +install -Dm 0644 -p AnjaliOldLipi/smc-anjalioldlipi.metainfo.xml \ + %{buildroot}%{_datadir}/appdata/smc-anjalioldlipi.metainfo.xml +install -Dm 0644 -p Dyuthi/smc-dyuthi.metainfo.xml \ + %{buildroot}%{_datadir}/appdata/smc-dyuthi.metainfo.xml +install -Dm 0644 -p Kalyani/smc-kalyani.metainfo.xml \ + %{buildroot}%{_datadir}/appdata/smc-kalyani.metainfo.xml +install -Dm 0644 -p Meera/smc-meera.metainfo.xml \ + %{buildroot}%{_datadir}/appdata/smc-meera.metainfo.xml +install -Dm 0644 -p Rachana/smc-rachana.metainfo.xml \ + %{buildroot}%{_datadir}/appdata/smc-rachana.metainfo.xml +install -Dm 0644 -p RaghuMalayalamSans/smc-raghumalayalam.metainfo.xml \ + %{buildroot}%{_datadir}/appdata/smc-raghumalayalam.metainfo.xml +install -Dm 0644 -p Suruma/smc-suruma.metainfo.xml \ + %{buildroot}%{_datadir}/appdata/smc-suruma.metainfo.xml + +#Files list +mkdir -p tmp_docs +for f in */README;do + cp -a $f tmp_docs/${f//\//.} +done +mkdir -p tmp_copyrights +for f in */COPYING;do + cp -a $f tmp_copyrights/${f//\//.} +done +cp -a Rachana/LICENSE tmp_copyrights/Rachana.LICENSE + +#Files list +%files +%doc ChangeLog tmp_docs/*README +%license tmp_copyrights/*COPYING tmp_copyrights/*LICENSE +%{_fontconfig_templatedir}/*smc*.conf +%{_fontconfig_confdir}/*smc*.conf +%{_datadir}/appdata/smc*.xml +%{_fontdir}/*.ttf + +%changelog +* Fri Nov 15 2019 openEuler Buildteam - 6.1-12 +- Package init