From f3157066006d3d94c2fa4ef2a6fba89c257ff592adf6dde82fb9b773c032b794 Mon Sep 17 00:00:00 2001 From: Takashi Iwai Date: Mon, 30 Aug 2021 15:30:09 +0000 Subject: [PATCH] Accepting request 914654 from home:kskarthik new fonts package for telugu OBS-URL: https://build.opensuse.org/request/show/914654 OBS-URL: https://build.opensuse.org/package/show/M17N:fonts/teluguvijayam-fonts?expand=0&rev=1 --- .gitattributes | 23 +++++++++++ .gitignore | 1 + create-archive.sh | 33 ++++++++++++++++ teluguvijayam-0.1.tar.xz | 3 ++ teluguvijayam-fonts.changes | 4 ++ teluguvijayam-fonts.spec | 78 +++++++++++++++++++++++++++++++++++++ 6 files changed, 142 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 create-archive.sh create mode 100644 teluguvijayam-0.1.tar.xz create mode 100644 teluguvijayam-fonts.changes create mode 100644 teluguvijayam-fonts.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/create-archive.sh b/create-archive.sh new file mode 100644 index 0000000..ae1e72c --- /dev/null +++ b/create-archive.sh @@ -0,0 +1,33 @@ +#!/usr/bin/bash + +set -eu + +VERSION=0.1 +TARBALL_NAME=teluguvijayam-$VERSION +FONTS=(SyamalaRamana.ttf PottiSreeramulu.ttf ramabhadra.ttf dhurjati.ttf mallanna.ttf Ramaraja-Regular.ttf suranna.ttf TenaliRamakrishna-Regular.ttf TimmanaRegular.ttf Peddana-Regular.ttf Sree%20Krushnadevaraya.ttf Ponnala.ttf LakkiReddy.ttf RaviPrakash.ttf Gidugu.ttf Gurajada.ttf Suravaram.ttf NTR.ttf Mandali-Regular.ttf NATS.ttf) +CURDIR=$(pwd) +mkdir "$CURDIR"/"$TARBALL_NAME" + +download_tarball(){ + download_url=$1 + download_filename=$2 + + echo "Downloading $2..." + wget -q "$download_url"/"$download_filename" -O \ + "$CURDIR/$TARBALL_NAME/$download_filename" +} + +for file in ${FONTS[*]}; do + download_tarball "https://siliconandhra.org/fonts/" "$file" +done + +# Remove Special characters for some font names +cd $CURDIR/$TARBALL_NAME/ +mv Sree%20Krushnadevaraya.ttf SreeKrushnadevaraya.ttf + +echo "Creating the Tarball..." +tar --owner root --group root --mode a+rX -cvf - -C "$CURDIR"\ + "$TARBALL_NAME" | xz > "$CURDIR"/"$TARBALL_NAME".tar.xz + +echo "Cleaning up..." +rm -rf "$CURDIR"/"$TARBALL_NAME" diff --git a/teluguvijayam-0.1.tar.xz b/teluguvijayam-0.1.tar.xz new file mode 100644 index 0000000..55c004e --- /dev/null +++ b/teluguvijayam-0.1.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:09969aa43fabd1b70b2da5ed112d44469c0e4fcbc9221e6f1db26ec8f5dbee31 +size 1980504 diff --git a/teluguvijayam-fonts.changes b/teluguvijayam-fonts.changes new file mode 100644 index 0000000..a1cc5f9 --- /dev/null +++ b/teluguvijayam-fonts.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Fri Aug 27 16:23:39 UTC 2021 - Sai Karthik Karra + +- Initial release diff --git a/teluguvijayam-fonts.spec b/teluguvijayam-fonts.spec new file mode 100644 index 0000000..d8161bc --- /dev/null +++ b/teluguvijayam-fonts.spec @@ -0,0 +1,78 @@ +# +# spec file for package foo-fonts +# +# Copyright (c) 2020 SUSE LINUX Products GmbH, Nuernberg, Germany. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owner, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. +# +# Please submit bugfixes or comments via http://bugs.opensuse.org/ + +# Definitions +%define fontname teluguvijayam + +Name: teluguvijayam-fonts +Summary: TrueType fonts for Telugu script (te) +License: OFL-1.1 +Group: System/X11/Fonts +BuildArch: noarch +Version: 0.1 +Release: 0 +Source: %{fontname}-%{version}.tar.xz +BuildRequires: fontpackages-devel +BuildRequires: tar +URL: https://www.siliconandhra.org/fonts/ + +%description +This package provides following 20 fonts for Telugu script +which is used in Indian states of Andhra Pradesh & Telangana + + * Ponnala + * RaviPrakash + * LakkiReddy + * Potti Sriramulu + * Syamala Ramana + * Gidugu + * Gurajada + * Suravaram + * NTR + * Mandali + * NATS + * SrikrushnaDevaraya + * Peddana + * Timmana + * Tenali Ramakrishna + * Suranna + * Ramaraja + * Mallana + * Dhurjati + * Ramabhadra + + These fonts are released by Departement of Information + technology, Government of Andhra Pradesh. + +Designer: Silicon Andhra + +%prep +%setup -n %{fontname}-%{version} + +%build + +%install +mkdir -p %{buildroot}%{_ttfontsdir} +install -m 644 *.ttf %{buildroot}%{_ttfontsdir} + +# call fonts-config after installation or deinstallation of this package +%reconfigure_fonts_scriptlets + +%files +%dir %{_ttfontsdir} +%{_ttfontsdir}/*.ttf + +%changelog