cjkuni-ukai-fonts/cjkuni-ukai-fonts.spec
kerongw 0669869917 rebuild for next release
Signed-off-by: kerongw <wangkerong@h-partners.com>
(cherry picked from commit bf9fec205e4f669167e138cbc2d767c44bbf68b6)
2022-10-26 19:54:12 +08:00

81 lines
2.5 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: 62
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
* Tue Oct 25 2022 wangkerong <wangkerong@h-partners.com> - 0.2.20080216.1-62
- rebuild for next release
* 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