78 lines
2.4 KiB
RPMSpec
78 lines
2.4 KiB
RPMSpec
%global fontname cjkuni-ukai
|
|
%global fontconf3 90-ttf-arphic-ukai-embolden.conf
|
|
%define catalogue %{_sysconfdir}/X11/fontpath.d
|
|
Name: %{fontname}-fonts
|
|
Version: 0.2.20080216.1
|
|
Release: 61
|
|
Summary: a full-sized CJK unicode truetype font set
|
|
License: Arphic
|
|
URL: https://www.freedesktop.org/wiki/Software/CJKUnifonts
|
|
Source0: https://ftp.debian.org/debian/pool/main/t/ttf-arphic-ukai/ttf-arphic-ukai_%{version}.orig.tar.gz
|
|
Source1: 90-ttf-arphic-ukai-embolden.conf
|
|
|
|
BuildArch: noarch
|
|
BuildRequires: fontpackages-devel
|
|
Requires: fontpackages-filesystem
|
|
Obsoletes: cjkuni-fonts-common < %{version}-42
|
|
|
|
%description
|
|
This project aims to provide a full-sized CJK unicode truetype font
|
|
set, supporting all CJK characters in Unicode plane 0 (BMP) and
|
|
plane 2. These fonts are under heavy development, new releases
|
|
containing more glyphs every time are released on a flexible base.
|
|
|
|
%package_help
|
|
|
|
%prep
|
|
%setup -q -c -n %{name}-%{version}
|
|
|
|
%build
|
|
%{nil}
|
|
|
|
%install
|
|
install -m 0755 -d %{buildroot}%{_fontdir}
|
|
install -m 0644 -p *.ttc %{buildroot}%{_fontdir}
|
|
install -m 0755 -d %{buildroot}%{_fontconfig_templatedir}
|
|
install -m 0755 -d %{buildroot}%{_fontconfig_confdir}
|
|
install -m 0644 -p %{SOURCE1} \
|
|
%{buildroot}%{_fontconfig_templatedir}/%{fontconf3}
|
|
|
|
ln -s %{_fontconfig_templatedir}/%{fontconf3} \
|
|
%{buildroot}%{_fontconfig_confdir}/%{fontconf3}
|
|
|
|
install -m 0755 -d %{buildroot}%{catalogue}
|
|
ln -s %{_fontdir}/ %{buildroot}%{catalogue}/%{name}
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%license ../%{name}-%{version}/license
|
|
%{_sysconfdir}/fonts/conf.d/90-ttf-arphic-ukai-embolden.conf
|
|
%{_datadir}/fontconfig/conf.avail/90-ttf-arphic-ukai-embolden.conf
|
|
%{catalogue}/%{name}
|
|
%{_datadir}/fonts/cjkuni-ukai/ukai.ttc
|
|
|
|
%files help
|
|
%defattr(-,root,root,-)
|
|
%doc ../%{name}-%{version}/CONTRIBUTERS
|
|
%doc ../%{name}-%{version}/FONTLOG
|
|
%doc ../%{name}-%{version}/KNOWN_ISSUES
|
|
%doc ../%{name}-%{version}/NEWS
|
|
%doc ../%{name}-%{version}/README
|
|
%doc ../%{name}-%{version}/TODO
|
|
|
|
%changelog
|
|
* Mon Oct 21 2019 openEuler Buildteam <buildteam@openeuler.org> - 0.2.20080216.1-61
|
|
- Type:enhancement
|
|
- Id:NA
|
|
- SUG:NA
|
|
- DESC:modify the location of license
|
|
|
|
* Sat Sep 28 2019 openEuler Buildteam <buildteam@openeuler.org> - 0.2.20080216.1-60
|
|
- Type:bugfix
|
|
- Id:NA
|
|
- SUG:NA
|
|
- DESC:add the soft link for 90-ttf-arphic-ukai-embolden.conf
|
|
|
|
* Tue Sep 17 2019 openEuler Buildteam <buildteam@openeuler.org> - 0.2.20080216.1-59
|
|
- Package init
|