2024-01-05 23:56:47 +01:00
|
|
|
%define fontdir %{_datadir}/fonts/ipa-gothic
|
2024-01-05 23:56:47 +01:00
|
|
|
%define pkgver %(echo %version | tr -d .)
|
2024-01-05 23:56:47 +01:00
|
|
|
Name: ipa-gothic-fonts
|
2024-01-05 23:56:47 +01:00
|
|
|
Version: 003.03
|
2024-01-05 23:56:47 +01:00
|
|
|
Release: 1mamba
|
|
|
|
Summary: Japanese Gothic-typeface OpenType font by IPA
|
|
|
|
Group: System/Fonts
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
2024-01-05 23:56:47 +01:00
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
|
|
URL: https://web.archive.org/web/20200702171120/https://ipafont.ipa.go.jp/old/
|
|
|
|
#URL: http://ossipedia.ipa.go.jp/ipafont/
|
|
|
|
Source0: http://deb.debian.org/debian/pool/main/f/fonts-ipafont/fonts-ipafont_%{pkgver}.orig.tar.gz
|
|
|
|
#Source0: http://info.openlab.ipa.go.jp/ipafont/fontdata/ipag%{pkg_version}.zip
|
2024-01-05 23:56:47 +01:00
|
|
|
Source1: ipa-gothic-fonts-fontconfig.conf
|
2024-01-05 23:56:47 +01:00
|
|
|
Source2: ipa-pgothic-fonts-fontconfig.conf
|
2024-01-05 23:56:47 +01:00
|
|
|
License: IPA
|
2024-01-05 23:56:47 +01:00
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
## AUTOBUILDREQ-END
|
2024-01-05 23:56:47 +01:00
|
|
|
BuildRequires: fonttools
|
|
|
|
BuildRequires: mkfontdir
|
|
|
|
BuildRequires: ttmkfdir
|
2024-01-05 23:56:47 +01:00
|
|
|
Provides: ipa-pgothic-fonts
|
|
|
|
Obsoletes: ipa-pgothic-fonts <= 003.02
|
2024-01-05 23:56:47 +01:00
|
|
|
|
|
|
|
%description
|
2024-01-05 23:56:47 +01:00
|
|
|
IPA Font is a Japanese OpenType fonts that is JIS X 0213:2004 compliant, provided by Information-technology Promotion Agency, Japan.
|
|
|
|
This package contains Gothic (sans-serif) and Proportional Gothic (sans-serif) style fonts.
|
2024-01-05 23:56:47 +01:00
|
|
|
|
|
|
|
%prep
|
2024-01-05 23:56:47 +01:00
|
|
|
%setup -q -n IPAfont%{pkgver}
|
2024-01-05 23:56:47 +01:00
|
|
|
|
|
|
|
%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/65-3-ipa-gothic.conf
|
2024-01-05 23:56:47 +01:00
|
|
|
install -m0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/fonts/conf.avail/65-2-ipa-pgothic.conf
|
2024-01-05 23:56:47 +01:00
|
|
|
|
|
|
|
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/*-ipa-*.conf
|
|
|
|
%{_sysconfdir}/fonts/conf.d/*-ipa-*.conf
|
|
|
|
%dir %{fontdir}
|
|
|
|
%{fontdir}/*.ttf
|
|
|
|
%verify(not md5 size mtime) %{fontdir}/fonts.dir
|
|
|
|
%verify(not md5 size mtime) %{fontdir}/fonts.scale
|
|
|
|
%doc Readme_*.txt IPA_Font_License_Agreement_v1.0.txt
|
|
|
|
|
|
|
|
%changelog
|
2024-01-05 23:56:47 +01:00
|
|
|
* Thu May 20 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 003.03-1mamba
|
|
|
|
- update to 003.03
|
|
|
|
|
|
|
|
* Thu Feb 04 2021 Automatic Build System <autodist@mambasoft.it> 004.01-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 23:56:47 +01:00
|
|
|
* Mon Feb 21 2011 gil <puntogil@libero.it> 003.02-1mamba
|
|
|
|
- package created by autospec
|