Package init

This commit is contained in:
overweight 2019-09-30 10:35:15 -04:00
commit 2196e83e8d
3 changed files with 92 additions and 0 deletions

View File

@ -0,0 +1,21 @@
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<match target="font" >
<test name="family" compare="contains" >
<string>AR PL UKai</string>
</test>
<!-- check to see if the font is just regular -->
<test name="weight" compare="less_eq">
<int>100</int>
</test>
<test compare="more_eq" target="pattern" name="weight" >
<int>180</int>
</test>
<edit mode="assign" name="embolden" >
<bool>true</bool>
</edit>
</match>
</fontconfig>

71
cjkuni-ukai-fonts.spec Normal file
View File

@ -0,0 +1,71 @@
%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: 60
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)
%doc ../%{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
* 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

Binary file not shown.