ttf-noto-emoji/ttf-noto-emoji.spec

77 lines
2.4 KiB
RPMSpec
Raw Permalink Normal View History

%define gitver %(echo %version | tr _ - | tr . _)
Name: ttf-noto-emoji
Epoch: 1
Version: 2.042
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
Source: https://github.com/googlefonts/noto-emoji.git/v%{version}/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
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
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%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
:
%post
[ -x %{_bindir}/fc-cache ] && %{_bindir}/fc-cache
:
%postun
[ -x %{_bindir}/fc-cache ] && %{_bindir}/fc-cache
:
%files
%defattr(-,root,root)
%{_sysconfdir}/fonts/conf.avail/66-noto-color-emoji.conf
%{_sysconfdir}/fonts/conf.d/66-noto-color-emoji.conf
%{_datadir}/fonts/truetype/NotoColorEmoji.ttf
%doc AUTHORS LICENSE
%changelog
* Thu Nov 30 2023 Automatic Build System <autodist@mambasoft.it> 2.042-1mamba
- automatic version update by autodist
* Tue Nov 28 2023 Automatic Build System <autodist@mambasoft.it> 2.041-1mamba
- automatic version update by autodist
* Sat Nov 18 2023 Automatic Build System <autodist@mambasoft.it> 2.040-1mamba
- automatic version update by autodist
* Fri Jul 07 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 2.038-1mamba
- update to 2.038
* 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
* Mon Apr 06 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 2019_11_19_unicode12-1mamba
- package created using the webbuild interface