2024-01-05 18:42:45 +01:00
|
|
|
%define gitver %(echo %version | tr _ - | tr . _)
|
2024-01-05 18:42:45 +01:00
|
|
|
Name: ttf-noto-emoji
|
2024-01-05 18:42:45 +01:00
|
|
|
Version: 2020_09_16_unicode13.1
|
2024-01-05 18:42:45 +01:00
|
|
|
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
|
|
|
|
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
|
|
|
|
|
|
|
|
%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
|
2024-01-05 18:42:45 +01:00
|
|
|
install -D -m644 %{SOURCE1} %{buildroot}%{_sysconfdir}/fonts/conf.avail/66-noto-color-emoji.conf
|
|
|
|
install -d -m0755 %{buildroot}%{_sysconfdir}/fonts/conf.d
|
|
|
|
ln -s ../conf.avail/66-noto-color-emoji.conf %{buildroot}%{_sysconfdir}/fonts/conf.d/66-noto-color-emoji.conf
|
2024-01-05 18:42:45 +01:00
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
2024-01-05 18:42:45 +01:00
|
|
|
%pre
|
|
|
|
if [ $1 -gt 1 ]; then
|
|
|
|
[ -L %{_sysconfdir}/fonts/conf.d/66-noto-color-emoji.conf ] || rm -f %{_sysconfdir}/fonts/conf.d/66-noto-color-emoji.conf
|
|
|
|
fi
|
|
|
|
:
|
|
|
|
|
2024-01-05 18:42:45 +01:00
|
|
|
%post
|
|
|
|
[ -x %{_bindir}/fc-cache ] && %{_bindir}/fc-cache
|
|
|
|
:
|
|
|
|
|
|
|
|
%postun
|
|
|
|
[ -x %{_bindir}/fc-cache ] && %{_bindir}/fc-cache
|
|
|
|
:
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2024-01-05 18:42:45 +01:00
|
|
|
%{_sysconfdir}/fonts/conf.avail/66-noto-color-emoji.conf
|
2024-01-05 18:42:45 +01:00
|
|
|
%{_sysconfdir}/fonts/conf.d/66-noto-color-emoji.conf
|
|
|
|
%{_datadir}/fonts/truetype/NotoColorEmoji.ttf
|
|
|
|
%doc AUTHORS LICENSE
|
|
|
|
|
|
|
|
%changelog
|
2024-01-05 18:42:45 +01:00
|
|
|
* Wed Mar 10 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 2020_09_16_unicode13.1-1mamba
|
|
|
|
- update to 2020_09_16_unicode13.1
|
|
|
|
- fix 66-noto-color-emoji.conf (replace append with append_last) to fix bad rendering with DejaVu fonts seend on Firefox
|
|
|
|
|
2024-01-05 18:42:45 +01:00
|
|
|
* Mon Apr 06 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 2019_11_19_unicode12-1mamba
|
|
|
|
- package created using the webbuild interface
|