package created by autospec [release 0.6-1mamba;Mon Feb 21 2011]

This commit is contained in:
gil 2024-01-06 06:25:08 +01:00
parent 8cb8dee4d9
commit cf76fccaf9
3 changed files with 109 additions and 0 deletions

22
65-lklug.conf Normal file
View File

@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<match>
<test name="lang">
<string>si-lk</string>
</test>
<test name="family">
<string>sans-serif</string>
</test>
<edit name="family" mode="prepend">
<string>LKLUG</string>
</edit>
</match>
<alias>
<family>LKLUG</family>
<default>
<family>sans-serif</family>
</default>
</alias>
</fontconfig>

View File

@ -1,2 +1,7 @@
# lklug-fonts
The lklug-fonts package contains fonts for the display of
Sinhala. The original font for TeX/LaTeX is developed by Yannis
Haralambous and are in GPL. OTF tables are added by Anuradha
Ratnaweera and Harshani Devadithya.

82
lklug-fonts.spec Normal file
View File

@ -0,0 +1,82 @@
%define fontdir %{_datadir}/fonts/lklug
%define cvs_date 20110221
Name: lklug-fonts
Version: 0.6
Release: 1mamba
Summary: Fonts for Sinhala language
Group: System/Fonts
Vendor: openmamba
Distribution: openmamba
Packager: gil <puntogil@libero.it>
URL: http://sinhala.sourceforge.net/
# cvs -z3 -d:pserver:anonymous@sinhala.cvs.sourceforge.net:/cvsroot/sinhala co -P sinhala/fonts
# cd sinhala/fonts/
# tar -czf lklug-%{cvs_date}-src-cvs.tar.gz convert.ff COPYING CREDITS lklug.sfd Makefile README.fonts
Source0: lklug-%{cvs_date}-src-cvs.tar.gz
Source1: 65-lklug.conf
License: GPL
BuildRequires: fontforge
BuildRequires: mkfontdir
BuildRequires: mkfontscale
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
The %{name} package contains fonts for the display of
Sinhala. The original font for TeX/LaTeX is developed by Yannis
Haralambous and are in GPL. OTF tables are added by Anuradha
Ratnaweera and Harshani Devadithya.
%prep
%setup -q -c %{name}-%{version}
%build
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
install -d %{buildroot}%{fontdir} %{buildroot}%{_sysconfdir}/fonts/{conf.d,conf.avail}
install -m0644 *.ttf %{buildroot}%{fontdir}
install -m0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/fonts/conf.avail/65-lklug.conf
pushd %{buildroot}%{_sysconfdir}/fonts/conf.avail
for f in *.conf; do
ln -s ../conf.avail/$f ../conf.d/$f
done
popd
mkfontdir %{buildroot}%{fontdir}
mkfontscale %{buildroot}%{fontdir}
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post
if [ -x %{_bindir}/fc-cache ]; then
%{_bindir}/fc-cache %{_datadir}/fonts
fi
:
%postun
if [ "$1" = "0" ]; then
if [ -x %{_bindir}/fc-cache ]; then
%{_bindir}/fc-cache %{_datadir}/fonts
fi
fi
:
%files
%defattr(-,root,root)
%{_sysconfdir}/fonts/conf.avail/*-lklug.conf
%{_sysconfdir}/fonts/conf.d/*-lklug.conf
%dir %{fontdir}
%{fontdir}/*.ttf
%verify(not md5 size mtime) %{fontdir}/fonts.dir
%verify(not md5 size mtime) %{fontdir}/fonts.scale
%doc COPYING CREDITS README.fonts
%changelog
* Mon Feb 21 2011 gil <puntogil@libero.it> 0.6-1mamba
- package created by autospec