rpms/lohit-fonts/devel lohit-fonts.spec,1.9,1.10
Rahul Bhalerao
rbhalera at fedoraproject.org
Fri Feb 13 12:08:28 UTC 2009
Author: rbhalera
Update of /cvs/pkgs/rpms/lohit-fonts/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv11092
Modified Files:
lohit-fonts.spec
Log Message:
Updated according to new font packaging guidelines
Index: lohit-fonts.spec
===================================================================
RCS file: /cvs/pkgs/rpms/lohit-fonts/devel/lohit-fonts.spec,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- lohit-fonts.spec 9 Sep 2008 12:08:11 -0000 1.9
+++ lohit-fonts.spec 13 Feb 2009 12:07:58 -0000 1.10
@@ -1,97 +1,271 @@
-%define xfontdir %{_datadir}/fonts
-%define langlist "bengali hindi gujarati tamil punjabi kannada malayalam oriya telugu marathi maithili kashmiri konkani nepali sindhi"
+%define fontname lohit
-Name: lohit-fonts
-Version: 2.3.1
-Release: 1%{?dist}
-Summary: Free Indian truetype/opentype fonts
-
-Group: User Interface/X
-License: GPLv2
-URL: http://fedoraproject.org/wiki/Lohit
-Source: http://rbhalera.fedorapeople.org/released/lohit/lohit-fonts-%{version}.tar.gz
-BuildArch: noarch
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-
-%description
-This package provides Hindi, Bengali, Gujarati, Punjabi, Tamil,
-Kannada, Malayalam, Oriya, Telugu, Marathi, Maithili, Kashmiri,
-Konkani, Nepali and Sindhi TrueType/Opentype fonts.
-
-# mk_pkg <name> <lang-code>
-%define mk_pkg() \
-%package -n lohit-fonts-%1\
-Summary: Free %(echo %1 | sed -e "s/\\(.*\\)/\\u\\1/") font\
-Group: User Interface/X \
-# strictly we only need to provide bn, gu, hi, pa, ta \
-Provides: ttfonts-%2 = 1.8-2\
-Obsoletes : ttfonts-%2 <= 1.8-1\
-\
-\
-%description -n lohit-fonts-%1\
-This package provides a free %(echo %1 | sed -e "s/\\(.*\\)/\\u\\1/") truetype/opentype font.\
-\
-%files -n lohit-fonts-%1\
-%defattr(-, root, root, -)\
-%doc COPYING README AUTHORS\
-%dir %{xfontdir}/lohit-%1\
-%{xfontdir}/lohit-%1/*.ttf\
-\
-%post -n lohit-fonts-%1 \
-if [ -x %{_bindir}/fc-cache ]; then \
- %{_bindir}/fc-cache %{xfontdir} \
-fi \
-\
-%postun -n lohit-fonts-%1 \
-if [ "$1" = "0" ]; then \
- if [ -x %{_bindir}/fc-cache ]; then \
- %{_bindir}/fc-cache %{xfontdir} \
- fi \
-fi
-
-%mk_pkg bengali bn
-%mk_pkg gujarati gu
-%mk_pkg hindi hi
-%mk_pkg kannada kn
-%mk_pkg malayalam ml
-%mk_pkg oriya or
-%mk_pkg punjabi pa
-%mk_pkg tamil ta
-%mk_pkg telugu te
-%mk_pkg marathi mr
-%mk_pkg maithili mai
-%mk_pkg kashmiri ks
-%mk_pkg konkani kok
-%mk_pkg nepali ne
-%mk_pkg sindhi sd
+%define common_desc \
+The fonts named 'Lohit' which means 'Red' in Sanskrit were initially released \
+by Red Hat. The complete collection currently supports scripts for 15 Indian \
+Languages.
+
+
+Name: %{fontname}-fonts
+Version: 2.3.1
+Release: 2%{?dist}
+Summary: Free Indian truetype/opentype fonts
+
+Group: User Interface/X
+License: GPLv2
+URL: https://fedorahosted.org/lohit/
+Source: http://rbhalera.fedorapeople.org/released/lohit/lohit-fonts-%{version}.tar.gz
+BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
+BuildArch: noarch
+BuildRequires: fontpackages-devel
+
+%description
+%common_desc
+
+
+%package common
+Summary: Common files of Lohit fonts
+Group: User Interface/X
+Requires: fontpackages-filesystem
+
+%description common
+%common_desc
+
+This package consists of files used by other %{name} packages.
+
+%package -n %{fontname}-bengali-fonts
+Summary: Free Bengali font
+Group: User Interface/X
+Requires: %{name}-common = %{version}-%{release}
+Provides: lohit-fonts-bengali = %{version}-%{release}
+Obsoletes: lohit-fonts-bengali < 2.3.1-2
+
+%description -n %{fontname}-bengali-fonts
+%common_desc
+This package provides a free Bengali truetype/opentype font.
+
+%_font_pkg -n bengali lohit_bn.ttf
+
+%package -n %{fontname}-gujarati-fonts
+Summary: Free Gujarati font
+Group: User Interface/X
+Requires: %{name}-common = %{version}-%{release}
+Provides: lohit-fonts-gujarati = %{version}-%{release}
+Obsoletes: lohit-fonts-gujarati < 2.3.1-2
+
+%description -n %{fontname}-gujarati-fonts
+%common_desc
+This package provides a free Gujarati truetype/opentype font.
+
+%_font_pkg -n gujarati lohit_gu.ttf
+
+%package -n %{fontname}-hindi-fonts
+Summary: Free Gujarati font
+Group: User Interface/X
+Requires: %{name}-common = %{version}-%{release}
+Provides: lohit-fonts-hindi = %{version}-%{release}
+Obsoletes: lohit-fonts-hindi < 2.3.1-2
+
+%description -n %{fontname}-hindi-fonts
+%common_desc
+This package provides a free Hindi truetype/opentype font.
+
+%_font_pkg -n hindi lohit_hi.ttf
+
+%package -n %{fontname}-kannada-fonts
+Summary: Free Kannada font
+Group: User Interface/X
+Requires: %{name}-common = %{version}-%{release}
+Provides: lohit-fonts-kannada = %{version}-%{release}
+Obsoletes: lohit-fonts-kannada < 2.3.1-2
+
+%description -n %{fontname}-kannada-fonts
+%common_desc
+This package provides a free Kannada truetype/opentype font.
+
+%_font_pkg -n kannada lohit_kn.ttf
+
+%package -n %{fontname}-kashmiri-fonts
+Summary: Free Kashmiri font
+Group: User Interface/X
+Requires: %{name}-common = %{version}-%{release}
+Provides: lohit-fonts-kashmiri = %{version}-%{release}
+Obsoletes: lohit-fonts-kashmiri < 2.3.1-2
+
+%description -n %{fontname}-kashmiri-fonts
+%common_desc
+This package provides a free Kashmiri truetype/opentype font.
+
+%_font_pkg -n kashmiri lohit_ks.ttf
+
+%package -n %{fontname}-konkani-fonts
+Summary: Free Konkani font
+Group: User Interface/X
+Requires: %{name}-common = %{version}-%{release}
+Provides: lohit-fonts-konkani = %{version}-%{release}
+Obsoletes: lohit-fonts-konkani < 2.3.1-2
+
+%description -n %{fontname}-konkani-fonts
+%common_desc
+This package provides a free Konkani truetype/opentype font.
+
+%_font_pkg -n konkani lohit_kok.ttf
+
+%package -n %{fontname}-maithili-fonts
+Summary: Free Maithili font
+Group: User Interface/X
+Requires: %{name}-common = %{version}-%{release}
+Provides: lohit-fonts-maithili = %{version}-%{release}
+Obsoletes: lohit-fonts-maithili < 2.3.1-2
+
+%description -n %{fontname}-maithili-fonts
+%common_desc
+This package provides a free Maithili truetype/opentype font.
+
+%_font_pkg -n maithili lohit_mai.ttf
+
+%package -n %{fontname}-malayalam-fonts
+Summary: Free Malayalam font
+Group: User Interface/X
+Requires: %{name}-common = %{version}-%{release}
+Provides: lohit-fonts-malayalam = %{version}-%{release}
+Obsoletes: lohit-fonts-malayalam < 2.3.1-2
+
+%description -n %{fontname}-malayalam-fonts
+%common_desc
+This package provides a free Malayalam truetype/opentype font.
+
+%_font_pkg -n malayalam lohit_ml.ttf
+
+%package -n %{fontname}-marathi-fonts
+Summary: Free Marathi font
+Group: User Interface/X
+Requires: %{name}-common = %{version}-%{release}
+Provides: lohit-fonts-marathi = %{version}-%{release}
+Obsoletes: lohit-fonts-marathi < 2.3.1-2
+
+%description -n %{fontname}-marathi-fonts
+%common_desc
+This package provides a free Marathi truetype/opentype font.
+
+%_font_pkg -n marathi lohit_mr.ttf
+
+%package -n %{fontname}-nepali-fonts
+Summary: Free Nepali font
+Group: User Interface/X
+Requires: %{name}-common = %{version}-%{release}
+Provides: lohit-fonts-nepali = %{version}-%{release}
+Obsoletes: lohit-fonts-nepali < 2.3.1-2
+
+%description -n %{fontname}-nepali-fonts
+%common_desc
+This package provides a free Nepali truetype/opentype font.
+
+%_font_pkg -n nepali lohit_ne.ttf
+
+%package -n %{fontname}-oriya-fonts
+Summary: Free Oriya font
+Group: User Interface/X
+Requires: %{name}-common = %{version}-%{release}
+Provides: lohit-fonts-oriya = %{version}-%{release}
+Obsoletes: lohit-fonts-oriya < 2.3.1-2
+
+%description -n %{fontname}-oriya-fonts
+%common_desc
+This package provides a free Oriya truetype/opentype font.
+
+%_font_pkg -n oriya lohit_or.ttf
+
+%package -n %{fontname}-punjabi-fonts
+Summary: Free Punjabi font
+Group: User Interface/X
+Requires: %{name}-common = %{version}-%{release}
+Provides: lohit-fonts-punjabi = %{version}-%{release}
+Obsoletes: lohit-fonts-punjabi < 2.3.1-2
+
+%description -n %{fontname}-punjabi-fonts
+%common_desc
+This package provides a free Punjabi truetype/opentype font.
+
+%_font_pkg -n punjabi lohit_pa.ttf
+
+%package -n %{fontname}-sindhi-fonts
+Summary: Free Sindhi font
+Group: User Interface/X
+Requires: %{name}-common = %{version}-%{release}
+Provides: lohit-fonts-sindhi = %{version}-%{release}
+Obsoletes: lohit-fonts-sindhi < 2.3.1-2
+
+%description -n %{fontname}-sindhi-fonts
+%common_desc
+This package provides a free Sindhi truetype/opentype font.
+
+%_font_pkg -n sindhi lohit_sd.ttf
+
+%package -n %{fontname}-tamil-fonts
+Summary: Free Tamil font
+Group: User Interface/X
+Requires: %{name}-common = %{version}-%{release}
+Provides: lohit-fonts-tamil = %{version}-%{release}
+Obsoletes: lohit-fonts-tamil < 2.3.1-2
+
+%description -n %{fontname}-tamil-fonts
+%common_desc
+This package provides a free Tamil truetype/opentype font.
+
+%_font_pkg -n tamil lohit_ta.ttf
+
+%package -n %{fontname}-telugu-fonts
+Summary: Free Telugu font
+Group: User Interface/X
+Requires: %{name}-common = %{version}-%{release}
+Provides: lohit-fonts-telugu = %{version}-%{release}
+Obsoletes: lohit-fonts-telugu < 2.3.1-2
+
+%description -n %{fontname}-telugu-fonts
+%common_desc
+This package provides a free Telugu truetype/opentype font.
+%_font_pkg -n telugu lohit_te.ttf
%prep
-%setup -q -n lohit-fonts-%{version}
+%setup -q
+
%build
-echo "Nothing to do in Build."
+
%install
-rm -rf $RPM_BUILD_ROOT
+rm -fr %{buildroot}
-for i in "%{langlist}"
-do
- install -d $RPM_BUILD_ROOT/%{xfontdir}/lohit-$i
- install -m 0644 $i/* $RPM_BUILD_ROOT/%{xfontdir}/lohit-$i
-done
+install -m 0755 -d %{buildroot}%{_fontdir}
+install -m 0644 -p */*.ttf %{buildroot}%{_fontdir}
+
+#install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} \
+# %{buildroot}%{_fontconfig_confdir}
%clean
-rm -rf $RPM_BUILD_ROOT
+rm -fr %{buildroot}
+
+
+%files common
+%defattr(0644,root,root,0755)
+%doc COPYING README AUTHORS ChangeLog
+
+%dir %{_fontdir}
+
%changelog
+* Fri Feb 13 2009 Rahul Bhalerao <rbhalera at redhat.com> - 2.3.1-2.fc11
+- Updated according to new font packaging guidelines.
* Tue Sep 09 2008 Rahul Bhalerao <rbhalera at redhat.com> - 2.3.1-1
- Bug 216400: [te_IN] anaconda GUI - Release Notes button overlaps with other text
* Wed Aug 20 2008 Rahul Bhalerao <rbhalera at redhat.com> - 2.3.0-1
- Forked Lohit Hindi into Marathi, Maithili, Kashmiri, Konkani, Sindhi and Nepali.
-- Bug 215902: [hi_IN, mr_IN]Incorrect extent of 0x093f when attached to a composite character which has width greater than a single character (hi_IN & maybe others)
+- Bug 215902: [hi_IN, mr_IN]Incorrect extent of 0x093f when attached to a composite character which has
+ width greater than a single character (hi_IN & maybe others)
- Bug 445176: [ml_IN] Conjuncts combining with 0D30 do not form the pre based glyph
- Improved Anchoring(blwm Anchor-0) for Hindi font.
- Corrected positioning of U+0953 for Hindi font.
More information about the fonts-bugs
mailing list