Group :: System/Fonts/True type
RPM: fonts-ttf-sil-gentium-plus-compact
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
Group: System/Fonts/True type
# BEGIN SourceDeps(oneline):
BuildRequires(pre): rpm-macros-fedora-compat rpm-macros-fonts
BuildRequires: rpm-build-fedora-compat-fonts unzip
# END SourceDeps(oneline)
%define oldname sil-gentium-plus-compact-fonts
# see https://bugzilla.altlinux.org/show_bug.cgi?id=10382
%define _localstatedir %{_var}
%define fontpkgname sil-gentium-plus-compact-fonts
# SPDX-License-Identifier: MIT
Version: 5.000
Release: alt1_5
%global foundry SIL
%global fontlicense OFL
%global fontlicenses OFL.txt
%global fontdocs *.txt documentation/*.txt documentation/*.odt
%global fontdocsex %{fontlicenses}
%global fontfamily Gentium Plus Compact
%global fontsummary Gentium Plus Compact, a Latin/Greek/Cyrillic font family
%global projectname gentium
%global archivename GentiumPlusCompact-%{version}
URL: https://software.sil.org/%{projectname}/
%global fontpkgheader \
#Suggests: font(gentium)\
%global fonts *.ttf
%global fontdescription \
Gentium is a font family designed to enable the diverse ethnic groups around\
the world who use the Latin, Cyrillic and Greek scripts to produce readable,\
high-quality publications.\
\
Gentium was a winner of the TDC2003 Type Design Competition and was exhibited\
as part of the bukva:raz! exhibit at the UN Headquarters Main Lobby, 17 Jan a..\
13 Feb, 2002.\
\
The Gentium Plus Compact font family was derived from Gentium Plus using SIL\
TypeTuner, by setting the a.'Line spacinga.' feature to a.'Tighta.', and it cannot be\
TypeTuned again. It may exhibit some diacritics clipping on screen (but should\
print fine).
Source0: https://software.sil.org/downloads/r/%{projectname}/%{archivename}.zip
Source10: 61-sil-gentium-plus-compact-fonts.xml
Name: fonts-ttf-sil-gentium-plus-compact
Summary: %{fontsummary}
License: %{fontlicense}
BuildArch: noarch
BuildRequires: rpm-build-fonts
%{?fontpkgheader}
Source44: import.info
%description
%{?fontdescription}
%prep
%global fontconfngs %{SOURCE10}
%setup -q -n %{archivename}
%linuxtext *.txt documentation/*.txt
%build
# fontbuild
fontnames=$(
for font in 'GentiumPlusCompact-I.ttf' 'GentiumPlusCompact-R.ttf'; do
fc-scan "${font}" -f " <font>%%{fullname[0]}</font>\n"
done | sort -u
)
if [[ -n "${fontnames}" ]] ; then
fontnames=$'\n'" <provides>"$'\n'"${fontnames}"$'\n'" </provides>"
fi
fontlangs=$(
for font in 'GentiumPlusCompact-I.ttf' 'GentiumPlusCompact-R.ttf'; do
fc-scan "${font}" -f "%%{[]lang{ <lang>%%{lang}</lang>\n}}"
done | sort -u
)
if [[ -n "${fontlangs}" ]] ; then
fontlangs=$'\n'" <languages>"$'\n'"${fontlangs}"$'\n'" </languages>"
fi
echo "Generating the sil-gentium-plus-compact-fonts appstream file"
cat > "org.altlinux.sil-gentium-plus-compact-fonts.metainfo.xml" << EOF_APPSTREAM
<?xml version="1.0" encoding="UTF-8"?>
<!-- SPDX-License-Identifier: MIT -->
<component type="font">
<id>org.altlinux.sil-gentium-plus-compact-fonts</id>
<metadata_license>MIT</metadata_license>
<project_license>OFL</project_license>
<name>SIL Gentium Plus Compact</name>
<summary><![CDATA[Gentium Plus Compact, a Latin/Greek/Cyrillic font family]]></summary>
<description>
<p><![CDATA[Gentium is a font family designed to enable the diverse ethnic groups around]]></p><p><![CDATA[the world who use the Latin, Cyrillic and Greek scripts to produce readable,]]></p><p><![CDATA[high-quality publications.]]></p> Gentium was a winner of the TDC2003 Type Design Competition and was exhibited as part of the bukva:raz! exhibit at the UN Headquarters Main Lobby, 17 Jan – 13 Feb, 2002. The Gentium Plus Compact font family was derived from Gentium Plus using SIL TypeTuner, by setting the “Line spacing” feature to “Tight”, and it cannot be TypeTuned again. It may exhibit some diacritics clipping on screen (but should print fine).
</description>
<updatecontact>devel at lists.altlinux.org</updatecontact>
<url type="homepage">https://software.sil.org/%{projectname}/</url>
<releases>
<release version="%{version}-%{release}" date="$(date -d at $SOURCE_DATE_EPOCH -u --rfc-3339=d)"/>
</releases>${fontnames}${fontlangs}
</component>
EOF_APPSTREAM
%install
echo Installing sil-gentium-plus-compact-fonts
echo "" > "sil-gentium-plus-compact-fonts.list"
install -m 0755 -vd %buildroot%_fontsdir/ttf/sil-gentium-plus-compact/
echo "%%dir %_fontsdir/ttf/sil-gentium-plus-compact" >> "sil-gentium-plus-compact-fonts.list"
install -m 0644 -vp "GentiumPlusCompact-I.ttf" %buildroot%_fontsdir/ttf/sil-gentium-plus-compact/
echo \"%_fontsdir/ttf/sil-gentium-plus-compact//$(basename "GentiumPlusCompact-I.ttf")\" >> 'sil-gentium-plus-compact-fonts.list'
install -m 0644 -vp "GentiumPlusCompact-R.ttf" %buildroot%_fontsdir/ttf/sil-gentium-plus-compact/
echo \"%_fontsdir/ttf/sil-gentium-plus-compact//$(basename "GentiumPlusCompact-R.ttf")\" >> 'sil-gentium-plus-compact-fonts.list'
(
IFS= lines=$(
for fontconfng in '%SOURCE10'; do
gen-fontconf -x "${fontconfng}" -w -f 'GentiumPlusCompact-I.ttf' 'GentiumPlusCompact-R.ttf'
done
)
while IFS= read -r line; do
[[ -n $line ]] && newfontconfs+=("$line")
done <<< ${lines}
install -m 0755 -vd "%{buildroot}%{_fontconfig_templatedir}" \
"%{buildroot}%{_fontconfig_confdir}"
for fontconf in "${newfontconfs[ at ]}"; do
if [[ -n $fontconf ]] ; then
install -m 0644 -vp "${fontconf}" "%{buildroot}%{_fontconfig_templatedir}"
echo \"%{_fontconfig_templatedir}/$(basename "${fontconf}")\" >> "sil-gentium-plus-compact-fonts.list"
ln -vsr "%{buildroot}%{_fontconfig_templatedir}/$(basename "${fontconf}")" "%{buildroot}%{_fontconfig_confdir}"
echo "%%config(noreplace)" \"%{_fontconfig_confdir}/$(basename "${fontconf}")\" >> "sil-gentium-plus-compact-fonts.list"
fi
done
)
install -m 0755 -vd "%{buildroot}%{_metainfodir}"
for fontappstream in 'org.altlinux.sil-gentium-plus-compact-fonts.metainfo.xml'; do
install -m 0644 -vp "${fontappstream}" "%{buildroot}%{_metainfodir}"
echo \"%{_metainfodir}/$(basename "${fontappstream}")\" >> "sil-gentium-plus-compact-fonts.list"
done
for fontdoc in 'FONTLOG.txt' 'GENTIUM-FAQ.txt' 'OFL-FAQ.txt' 'README.txt' 'documentation/DOCUMENTATION.txt' 'documentation/GentiumPlus-features.odt'; do
echo %%doc "'${fontdoc}'" >> "sil-gentium-plus-compact-fonts.list"
done
for fontlicense in 'OFL.txt'; do
echo %%doc "'${fontlicense}'" >> "sil-gentium-plus-compact-fonts.list"
done
%check
# fontcheck
grep -E '^"%{_fontconfig_templatedir}/.+\.conf"' 'sil-gentium-plus-compact-fonts.list' \
| xargs -I{} -- sh -c "xmllint --loaddtd --valid --nonet '%{buildroot}{}' >/dev/null && echo %{buildroot}{}: OK"
grep -E '^"%{_datadir}/metainfo/.+\.xml"' 'sil-gentium-plus-compact-fonts.list' \
| xargs -I{} -- appstream-util validate-relax --nonet '%{buildroot}{}'
%files -n fonts-ttf-sil-gentium-plus-compact -f sil-gentium-plus-compact-fonts.list
%changelog
…
Full changelog you can see here
# BEGIN SourceDeps(oneline):
BuildRequires(pre): rpm-macros-fedora-compat rpm-macros-fonts
BuildRequires: rpm-build-fedora-compat-fonts unzip
# END SourceDeps(oneline)
%define oldname sil-gentium-plus-compact-fonts
# see https://bugzilla.altlinux.org/show_bug.cgi?id=10382
%define _localstatedir %{_var}
%define fontpkgname sil-gentium-plus-compact-fonts
# SPDX-License-Identifier: MIT
Version: 5.000
Release: alt1_5
%global foundry SIL
%global fontlicense OFL
%global fontlicenses OFL.txt
%global fontdocs *.txt documentation/*.txt documentation/*.odt
%global fontdocsex %{fontlicenses}
%global fontfamily Gentium Plus Compact
%global fontsummary Gentium Plus Compact, a Latin/Greek/Cyrillic font family
%global projectname gentium
%global archivename GentiumPlusCompact-%{version}
URL: https://software.sil.org/%{projectname}/
%global fontpkgheader \
#Suggests: font(gentium)\
%global fonts *.ttf
%global fontdescription \
Gentium is a font family designed to enable the diverse ethnic groups around\
the world who use the Latin, Cyrillic and Greek scripts to produce readable,\
high-quality publications.\
\
Gentium was a winner of the TDC2003 Type Design Competition and was exhibited\
as part of the bukva:raz! exhibit at the UN Headquarters Main Lobby, 17 Jan a..\
13 Feb, 2002.\
\
The Gentium Plus Compact font family was derived from Gentium Plus using SIL\
TypeTuner, by setting the a.'Line spacinga.' feature to a.'Tighta.', and it cannot be\
TypeTuned again. It may exhibit some diacritics clipping on screen (but should\
print fine).
Source0: https://software.sil.org/downloads/r/%{projectname}/%{archivename}.zip
Source10: 61-sil-gentium-plus-compact-fonts.xml
Name: fonts-ttf-sil-gentium-plus-compact
Summary: %{fontsummary}
License: %{fontlicense}
BuildArch: noarch
BuildRequires: rpm-build-fonts
%{?fontpkgheader}
Source44: import.info
%description
%{?fontdescription}
%prep
%global fontconfngs %{SOURCE10}
%setup -q -n %{archivename}
%linuxtext *.txt documentation/*.txt
%build
# fontbuild
fontnames=$(
for font in 'GentiumPlusCompact-I.ttf' 'GentiumPlusCompact-R.ttf'; do
fc-scan "${font}" -f " <font>%%{fullname[0]}</font>\n"
done | sort -u
)
if [[ -n "${fontnames}" ]] ; then
fontnames=$'\n'" <provides>"$'\n'"${fontnames}"$'\n'" </provides>"
fi
fontlangs=$(
for font in 'GentiumPlusCompact-I.ttf' 'GentiumPlusCompact-R.ttf'; do
fc-scan "${font}" -f "%%{[]lang{ <lang>%%{lang}</lang>\n}}"
done | sort -u
)
if [[ -n "${fontlangs}" ]] ; then
fontlangs=$'\n'" <languages>"$'\n'"${fontlangs}"$'\n'" </languages>"
fi
echo "Generating the sil-gentium-plus-compact-fonts appstream file"
cat > "org.altlinux.sil-gentium-plus-compact-fonts.metainfo.xml" << EOF_APPSTREAM
<?xml version="1.0" encoding="UTF-8"?>
<!-- SPDX-License-Identifier: MIT -->
<component type="font">
<id>org.altlinux.sil-gentium-plus-compact-fonts</id>
<metadata_license>MIT</metadata_license>
<project_license>OFL</project_license>
<name>SIL Gentium Plus Compact</name>
<summary><![CDATA[Gentium Plus Compact, a Latin/Greek/Cyrillic font family]]></summary>
<description>
<p><![CDATA[Gentium is a font family designed to enable the diverse ethnic groups around]]></p><p><![CDATA[the world who use the Latin, Cyrillic and Greek scripts to produce readable,]]></p><p><![CDATA[high-quality publications.]]></p> Gentium was a winner of the TDC2003 Type Design Competition and was exhibited as part of the bukva:raz! exhibit at the UN Headquarters Main Lobby, 17 Jan – 13 Feb, 2002. The Gentium Plus Compact font family was derived from Gentium Plus using SIL TypeTuner, by setting the “Line spacing” feature to “Tight”, and it cannot be TypeTuned again. It may exhibit some diacritics clipping on screen (but should print fine).
</description>
<updatecontact>devel at lists.altlinux.org</updatecontact>
<url type="homepage">https://software.sil.org/%{projectname}/</url>
<releases>
<release version="%{version}-%{release}" date="$(date -d at $SOURCE_DATE_EPOCH -u --rfc-3339=d)"/>
</releases>${fontnames}${fontlangs}
</component>
EOF_APPSTREAM
%install
echo Installing sil-gentium-plus-compact-fonts
echo "" > "sil-gentium-plus-compact-fonts.list"
install -m 0755 -vd %buildroot%_fontsdir/ttf/sil-gentium-plus-compact/
echo "%%dir %_fontsdir/ttf/sil-gentium-plus-compact" >> "sil-gentium-plus-compact-fonts.list"
install -m 0644 -vp "GentiumPlusCompact-I.ttf" %buildroot%_fontsdir/ttf/sil-gentium-plus-compact/
echo \"%_fontsdir/ttf/sil-gentium-plus-compact//$(basename "GentiumPlusCompact-I.ttf")\" >> 'sil-gentium-plus-compact-fonts.list'
install -m 0644 -vp "GentiumPlusCompact-R.ttf" %buildroot%_fontsdir/ttf/sil-gentium-plus-compact/
echo \"%_fontsdir/ttf/sil-gentium-plus-compact//$(basename "GentiumPlusCompact-R.ttf")\" >> 'sil-gentium-plus-compact-fonts.list'
(
IFS= lines=$(
for fontconfng in '%SOURCE10'; do
gen-fontconf -x "${fontconfng}" -w -f 'GentiumPlusCompact-I.ttf' 'GentiumPlusCompact-R.ttf'
done
)
while IFS= read -r line; do
[[ -n $line ]] && newfontconfs+=("$line")
done <<< ${lines}
install -m 0755 -vd "%{buildroot}%{_fontconfig_templatedir}" \
"%{buildroot}%{_fontconfig_confdir}"
for fontconf in "${newfontconfs[ at ]}"; do
if [[ -n $fontconf ]] ; then
install -m 0644 -vp "${fontconf}" "%{buildroot}%{_fontconfig_templatedir}"
echo \"%{_fontconfig_templatedir}/$(basename "${fontconf}")\" >> "sil-gentium-plus-compact-fonts.list"
ln -vsr "%{buildroot}%{_fontconfig_templatedir}/$(basename "${fontconf}")" "%{buildroot}%{_fontconfig_confdir}"
echo "%%config(noreplace)" \"%{_fontconfig_confdir}/$(basename "${fontconf}")\" >> "sil-gentium-plus-compact-fonts.list"
fi
done
)
install -m 0755 -vd "%{buildroot}%{_metainfodir}"
for fontappstream in 'org.altlinux.sil-gentium-plus-compact-fonts.metainfo.xml'; do
install -m 0644 -vp "${fontappstream}" "%{buildroot}%{_metainfodir}"
echo \"%{_metainfodir}/$(basename "${fontappstream}")\" >> "sil-gentium-plus-compact-fonts.list"
done
for fontdoc in 'FONTLOG.txt' 'GENTIUM-FAQ.txt' 'OFL-FAQ.txt' 'README.txt' 'documentation/DOCUMENTATION.txt' 'documentation/GentiumPlus-features.odt'; do
echo %%doc "'${fontdoc}'" >> "sil-gentium-plus-compact-fonts.list"
done
for fontlicense in 'OFL.txt'; do
echo %%doc "'${fontlicense}'" >> "sil-gentium-plus-compact-fonts.list"
done
%check
# fontcheck
grep -E '^"%{_fontconfig_templatedir}/.+\.conf"' 'sil-gentium-plus-compact-fonts.list' \
| xargs -I{} -- sh -c "xmllint --loaddtd --valid --nonet '%{buildroot}{}' >/dev/null && echo %{buildroot}{}: OK"
grep -E '^"%{_datadir}/metainfo/.+\.xml"' 'sil-gentium-plus-compact-fonts.list' \
| xargs -I{} -- appstream-util validate-relax --nonet '%{buildroot}{}'
%files -n fonts-ttf-sil-gentium-plus-compact -f sil-gentium-plus-compact-fonts.list
%changelog
…
Full changelog you can see here