2024-01-05 17:50:53 +01:00
|
|
|
%define fontdir %{_datadir}/sil-gentium-basic
|
2024-01-05 17:50:53 +01:00
|
|
|
%define pkgver %(echo %version | tr -d .)
|
2024-01-05 17:50:53 +01:00
|
|
|
Name: sil-gentium-basic-fonts
|
2024-01-05 17:50:53 +01:00
|
|
|
Version: 1.102
|
|
|
|
Release: 1mamba
|
2024-01-05 17:50:53 +01:00
|
|
|
Summary: Gentium Basic Font Family from SIL
|
|
|
|
Group: System/Fonts
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
2024-01-05 17:50:53 +01:00
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
|
|
URL: https://software.sil.org/gentium/
|
|
|
|
Source0: https://software.sil.org/downloads/r/gentium/GentiumBasic_%{pkgver}.zip
|
2024-01-05 17:50:53 +01:00
|
|
|
Source1: 59-sil-gentium-basic.conf
|
|
|
|
Source2: 59-sil-gentium-basic-book.conf
|
|
|
|
License: SIL Open Font License
|
2024-01-05 17:50:53 +01:00
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
## AUTOBUILDREQ-END
|
2024-01-05 17:50:53 +01:00
|
|
|
BuildRequires: mkfontdir
|
|
|
|
BuildRequires: ttmkfdir
|
|
|
|
|
|
|
|
%description
|
2024-01-05 17:50:53 +01:00
|
|
|
Gentium Basic and Gentium Book Basic are font families based on the original Gentium design, but with additional weights. Both families come with a complete regular, bold, italic and bold italic set of fonts.
|
|
|
|
These "Basic" fonts support only the Basic Latin and Latin-1 Supplement Unicode ranges, plus a selection of the more commonly used extended Latin characters, with miscellaneous diacritical marks, symbols and punctuation.
|
2024-01-05 17:50:53 +01:00
|
|
|
|
|
|
|
%prep
|
2024-01-05 17:50:53 +01:00
|
|
|
%setup -q -n GentiumBasic_%{pkgver}
|
2024-01-05 17:50:53 +01:00
|
|
|
|
|
|
|
# build require FontLab tools http://www.fontlab.com/about/
|
|
|
|
rm -rf Sources
|
|
|
|
|
|
|
|
for txt in *.txt ; do
|
|
|
|
fold -s $txt > $txt.new
|
|
|
|
sed -i 's/\r//' $txt.new
|
|
|
|
touch -r $txt $txt.new
|
|
|
|
mv $txt.new $txt
|
|
|
|
done
|
|
|
|
|
|
|
|
iconv -f iso-8859-1 -t utf-8 GENTIUM-FAQ.txt -o GENTIUM-FAQ.txt_
|
|
|
|
touch -r GENTIUM-FAQ.txt GENTIUM-FAQ.txt_
|
|
|
|
mv GENTIUM-FAQ.txt_ GENTIUM-FAQ.txt
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
|
|
|
%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/59-sil-gentium-basic.conf
|
|
|
|
install -m0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/fonts/conf.avail/59-sil-gentium-basic-book.conf
|
|
|
|
|
|
|
|
pushd %{buildroot}%{_sysconfdir}/fonts/conf.avail
|
|
|
|
for f in *.conf; do
|
|
|
|
ln -s ../conf.avail/$f ../conf.d/$f
|
|
|
|
done
|
|
|
|
popd
|
|
|
|
|
|
|
|
ttmkfdir -d %{buildroot}%{fontdir} -o %{buildroot}%{fontdir}/fonts.scale
|
|
|
|
mkfontdir %{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/*gentium-basic*.conf
|
|
|
|
%{_sysconfdir}/fonts/conf.d/*gentium-basic*.conf
|
|
|
|
%dir %{fontdir}
|
|
|
|
%{fontdir}/GenB*.ttf
|
|
|
|
%{fontdir}/fonts.dir
|
|
|
|
%{fontdir}/fonts.scale
|
|
|
|
%doc FONTLOG.txt GENTIUM-FAQ.txt OFL-FAQ.txt OFL.txt
|
|
|
|
|
|
|
|
%changelog
|
2024-01-05 17:50:53 +01:00
|
|
|
* Fri May 21 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 1.102-1mamba
|
|
|
|
- update to 1.102
|
|
|
|
|
2024-01-05 17:50:53 +01:00
|
|
|
* Sun Apr 10 2011 Ercole 'ercolinux' Carpanetto <ercole69@gmail.com> 1.1-2mamba
|
|
|
|
- rebuilt
|
|
|
|
* Wed Jan 26 2011 gil <puntogil@libero.it> 1.1-1mamba
|
|
|
|
- package created by autospec
|