package created using the webbuild interface [release 2019_11_19_unicode12-1mamba;Mon Apr 06 2020]

This commit is contained in:
Silvan Calarco 2024-01-05 18:42:45 +01:00
parent 4a5fafe558
commit ea7c28790b
3 changed files with 81 additions and 0 deletions

27
66-noto-color-emoji.conf Normal file
View File

@ -0,0 +1,27 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<!--
Set Noto Color Emoji as fallback for Noto family
-->
<fontconfig>
<match target="scan">
<test name="family"><string>Noto Color Emoji</string></test>
<edit name="charset" mode="assign">
<minus>
<name>charset</name>
<charset><range>
<int>0x0000</int>
<int>0x00FF</int>
</range></charset>
</minus>
</edit>
</match>
<match>
<test name="family" compare="contains"><string>Noto </string></test>
<edit name="family" mode="append" binding="weak">
<string>Noto Color Emoji</string>
</edit>
</match>
</fontconfig>

View File

@ -1,2 +1,4 @@
# ttf-noto-emoji
Google Noto emoji fonts.

52
ttf-noto-emoji.spec Normal file
View File

@ -0,0 +1,52 @@
%define gitver %(echo %version | tr _ -)
Name: ttf-noto-emoji
Version: 2019_11_19_unicode12
Release: 1mamba
Summary: Google Noto emoji fonts
Group: System/Fonts
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://github.com/googlefonts/noto-emoji.git
## GITSOURCE https://github.com/googlefonts/noto-emoji.git v2019-11-19-unicode12
Source: https://github.com/googlefonts/noto-emoji.git/v%{gitver}/noto-emoji-%{version}.tar.bz2
Source1: 66-noto-color-emoji.conf
License: OFL
## AUTOBUILDREQ-BEGIN
## AUTOBUILDREQ-END
Requires(post): fontconfig
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
Google Noto emoji fonts.
%prep
%setup -q -n noto-emoji-%{version}
%build
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
install -D -m644 fonts/NotoColorEmoji.ttf %{buildroot}%{_datadir}/fonts/truetype/NotoColorEmoji.ttf
install -D -m644 %{SOURCE1} %{buildroot}%{_sysconfdir}/fonts/conf.d/66-noto-color-emoji.conf
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post
[ -x %{_bindir}/fc-cache ] && %{_bindir}/fc-cache
:
%postun
[ -x %{_bindir}/fc-cache ] && %{_bindir}/fc-cache
:
%files
%defattr(-,root,root)
%{_sysconfdir}/fonts/conf.d/66-noto-color-emoji.conf
%{_datadir}/fonts/truetype/NotoColorEmoji.ttf
%doc AUTHORS LICENSE
%changelog
* Mon Apr 06 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 2019_11_19_unicode12-1mamba
- package created using the webbuild interface