Author: pravins Update of /cvs/pkgs/rpms/samyak-fonts/devel In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv7015
Modified Files: samyak-fonts.spec Log Message: * Mon Jan 12 2009 Pravin Satpute <psatp...@redhat.com> 1.2.1-2 - bugzilla 477451 - updated spec Index: samyak-fonts.spec =================================================================== RCS file: /cvs/pkgs/rpms/samyak-fonts/devel/samyak-fonts.spec,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- samyak-fonts.spec 18 Sep 2008 09:35:10 -0000 1.5 +++ samyak-fonts.spec 12 Jan 2009 10:45:29 -0000 1.6 @@ -1,56 +1,90 @@ -%define xfontdir %{_datadir}/fonts -%define langlist "devanagari gujarati tamil malayalam oriya" +%define fontname samyak +%define langlist "devanagari gujarati tamil malayalam oriya" -Name: samyak-fonts -Version: 1.2.1 -Release: 1%{?dist} -Summary: Free Indian truetype/opentype fonts -Group: User Interface/X -License: GPLv3+ with exceptions -URL: https://sarovar.org/projects/samyak/ -Source: samyak-fonts-%{version}.tar.gz -BuildArch: noarch -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +# Common description +%define common_desc \ +The Samyak package contains fonts for the display of \ +Scripts Devanagari, Gujarati, Malayalam, Oriya and Tamil + +Name: %{fontname}-fonts +Version: 1.2.1 +Release: 2%{?dist} +Summary: Free Indian truetype/opentype fonts +Group: User Interface/X +License: GPLv3+ with exceptions +URL: https://sarovar.org/projects/samyak/ +Source: samyak-fonts-%{version}.tar.gz +BuildArch: noarch +BuildRequires: fontpackages-devel +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) %description -The Samyak package contains fonts for the display of -Scripts Devanagari, Gujarati, Malayalam, Oriya and Tamil +%common_desc + +%package common +Summary: Common files for smc-fonts +Group: User Interface/X +Requires: fontpackages-filesystem + +%description common +%common_desc + +%package devanagari +Summary: Open Type Fonts for Devanagari script +Group: User Interface/X +Requires: %{name}-common = %{version}-%{release} +License: GPLv3+ with exceptions +%description devanagari +This package contains truetype/opentype font for the display of \ +Scripts Devanagari. + +%package tamil +Summary: Open Type Fonts for Tamil script +Group: User Interface/X +Requires: %{name}-common = %{version}-%{release} +License: GPLv3+ with exceptions +%description tamil +This package contains truetype/opentype font for the display of \ +Scripts Tamil. + + +%package malayalam +Summary: Open Type Fonts for Malayalam script +Group: User Interface/X +Requires: %{name}-common = %{version}-%{release} +License: GPLv3+ with exceptions +%description malayalam +This package contains truetype/opentype font for the display of \ +Scripts Malayalam. + +%package gujarati +Summary: Open Type Fonts for Gujarai script +Group: User Interface/X +Requires: %{name}-common = %{version}-%{release} +License: GPLv3+ with exceptions +%description gujarati +This package contains truetype/opentype font for the display of \ +Scripts Gujarati. + +%package oriya +Summary: Open Type Fonts for Oriya script +Group: User Interface/X +Requires: %{name}-common = %{version}-%{release} +License: GPLv3+ with exceptions +%description oriya +This package contains truetype/opentype font for the display of \ +Scripts Oriya. + +%_font_pkg -n devanagari %{fontname}-devanagari/Samyak-*.ttf + +%_font_pkg -n tamil %{fontname}-tamil/*.ttf + +%_font_pkg -n malayalam %{fontname}-malayalam/*.ttf + +%_font_pkg -n oriya %{fontname}-oriya/*.ttf + +%_font_pkg -n gujarati %{fontname}-gujarati/*.ttf -# mk_pkg <name> <lang-code> -%define mk_pkg() \ -%package -n samyak-fonts-%1\ -Summary: Free %(echo %1 | sed -e "s/\\(.*\\)/\\u\\1/") font\ -Group: User Interface/X \ -Provides: ttfonts-%2 = 1.8-2\ -Obsoletes : ttfonts-%2 <= 1.8-1\ -\ -\ -%description -n samyak-fonts-%1\ -This package provides a free %(echo %1 | sed -e "s/\\(.*\\)/\\u\\1/") truetype/opentype font.\ -\ -%files -n samyak-fonts-%1\ -%defattr(-, root, root, -)\ -%doc COPYING README AUTHORS\ -%dir %{xfontdir}/samyak-%1\ -%{xfontdir}/samyak-%1/*.ttf\ -\ -%post -n samyak-fonts-%1 \ -if [ -x %{_bindir}/fc-cache ]; then \ - %{_bindir}/fc-cache %{xfontdir}/samyak-%1 \ -fi \ -\ -%postun -n samyak-fonts-%1 \ -if [ "$1" = "0" ]; then \ - if [ -x %{_bindir}/fc-cache ]; then \ - %{_bindir}/fc-cache %{xfontdir}/samyak-%1 \ - fi \ -fi - -%mk_pkg gujarati gu -%mk_pkg devanagari hi -%mk_pkg malayalam ml -%mk_pkg oriya or -%mk_pkg tamil ta %prep %setup -q -n samyak-fonts-%{version} @@ -59,18 +93,28 @@ echo "Nothing to do in Build." %install -rm -rf $RPM_BUILD_ROOT +rm -rf %{buildroot} for i in "%{langlist}" do - install -d $RPM_BUILD_ROOT/%{xfontdir}/samyak-$i - install -m 0644 $i/* $RPM_BUILD_ROOT/%{xfontdir}/samyak-$i +install -m 0755 -d %{buildroot}%{_fontdir}/samyak-$i +install -m 0644 -p $i/* %{buildroot}%{_fontdir}/samyak-$i done %clean -rm -rf $RPM_BUILD_ROOT +rm -fr %{buildroot} + + +%files common +%defattr(-,root,root,-) +%doc COPYING README AUTHORS +%dir %{_fontdir} %changelog +* Mon Jan 12 2009 Pravin Satpute <psatp...@redhat.com> 1.2.1-2 +- bugzilla 477451 +- updated spec + * Thu Sep 18 2008 Pravin Satpute <psatp...@redhat.com> 1.2.1-1 - upstream release 1.2.1 - Added Unicode 5.1 support in Samyak-Devanagari _______________________________________________ Fedora-fonts-bugs-list mailing list Fedora-fonts-bugs-list@redhat.com https://www.redhat.com/mailman/listinfo/fedora-fonts-bugs-list