rpms/lohit-fonts/devel lohit-fonts.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Parag Nemade (pnemade) fedora-extras-commits at redhat.com
Mon Sep 24 10:01:25 UTC 2007


Author: pnemade

Update of /cvs/pkgs/rpms/lohit-fonts/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv26045/devel

Modified Files:
	.cvsignore sources 
Added Files:
	lohit-fonts.spec 
Log Message:
Initial import



--- NEW FILE lohit-fonts.spec ---
%define xfontdir        %{_datadir}/fonts
%define langlist        "bengali hindi gujarati tamil punjabi kannada malayalam oriya telugu"

Name:        lohit-fonts
Version:     2.1.5
Release:     3%{?dist}
Summary:     Free Indian truetype/opentype fonts

Group:       User Interface/X
License:     GPLv2
URL:         http://fedoraproject.org/wiki/Lohit
# Full URL of source http://fedoraproject.org/wiki/Lohit?action=AttachFile&do=get&target=fonts-indic-%{version}.tar.gz
Source:      fonts-indic-%{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 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

%prep
%setup -q -n fonts-indic-%{version}

%build
echo "Nothing to do in Build."

%install
rm -rf $RPM_BUILD_ROOT

for i in "%{langlist}"
do
  install -d $RPM_BUILD_ROOT/%{xfontdir}/lohit-$i
  install -m 0644 $i/* $RPM_BUILD_ROOT/%{xfontdir}/lohit-$i
done

%clean
rm -rf $RPM_BUILD_ROOT

%changelog
* Mon Sep 24 2007 Parag Nemade <pnemade at redhat.com> - 2.1.5-3.fc8
- SPEC cleanups as suggested in review. 

* Mon Sep 17 2007 Rahul Bhalerao <rbhalera at redhat.com>
- Spec file update as part of review

* Tue Sep 11 2007 Rahul Bhalerao <rbhalera at redhat.com> - 2.1.5-1.fc8
- This package is derived from the fonts-indic package to reflect the upstream
  project name [RH #253158]


Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/lohit-fonts/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	24 Sep 2007 09:08:35 -0000	1.1
+++ .cvsignore	24 Sep 2007 10:00:53 -0000	1.2
@@ -0,0 +1 @@
+fonts-indic-2.1.5.tar.gz


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/lohit-fonts/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	24 Sep 2007 09:08:35 -0000	1.1
+++ sources	24 Sep 2007 10:00:53 -0000	1.2
@@ -0,0 +1 @@
+bb9497ee772062b97ff00a1a68b17c98  fonts-indic-2.1.5.tar.gz




More information about the fedora-extras-commits mailing list