2020-10-29 15:14:37 +08:00
|
|
|
%global fontname google-noto-emoji
|
|
|
|
|
|
|
|
|
|
Name: %{fontname}-fonts
|
|
|
|
|
Version: 20200916
|
|
|
|
|
Release: 1
|
|
|
|
|
Summary: Color and Black-and-White noto emoji fonts
|
|
|
|
|
|
|
|
|
|
License: OFL and ASL 2.0
|
|
|
|
|
URL: https://github.com/googlei18n/noto-emoji
|
|
|
|
|
Source0: https://github.com/googlei18n/noto-emoji/archive/v2020-09-16-unicode13_1.tar.gz
|
|
|
|
|
Source1: %{fontname}.metainfo.xml
|
|
|
|
|
Source2: %{fontname}-color.metainfo.xml
|
|
|
|
|
|
|
|
|
|
Patch0: noto-emoji-build-all-flags.patch
|
|
|
|
|
Patch1: noto-emoji-use-gm.patch
|
|
|
|
|
Patch2: noto-emoji-use-system-pngquant.patch
|
|
|
|
|
|
2019-09-30 10:51:00 -04:00
|
|
|
BuildArch: noarch
|
|
|
|
|
|
2020-10-29 15:14:37 +08:00
|
|
|
BuildRequires: fontpackages-devel fonttools python3-fonttools nototools python3-devel
|
|
|
|
|
BuildRequires: GraphicsMagick pngquant zopfli cairo-devel python3-nototools gdb
|
|
|
|
|
|
2019-09-30 10:51:00 -04:00
|
|
|
Requires: fontpackages-filesystem
|
2020-10-29 15:14:37 +08:00
|
|
|
|
2019-09-30 10:51:00 -04:00
|
|
|
Provides: google-noto-color-emoji-fonts = 20150617 google-noto-emoji-color-fonts
|
|
|
|
|
Obsoletes: google-noto-color-emoji-fonts < 20150617 google-noto-emoji-color-fonts
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
This package includes color and Black-and-White noto emoji fonts, and tools for working with them.
|
2020-10-29 15:14:37 +08:00
|
|
|
|
2019-09-30 10:51:00 -04:00
|
|
|
%_font_pkg NotoEmoji-Regular.ttf NotoColorEmoji.ttf
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%doc AUTHORS CONTRIBUTING.md CONTRIBUTORS README.md
|
|
|
|
|
|
|
|
|
|
%{_datadir}/appdata/google-noto-emoji.metainfo.xml
|
|
|
|
|
%{_datadir}/appdata/google-noto-emoji-color.metainfo.xml
|
2020-10-29 15:14:37 +08:00
|
|
|
|
2019-09-30 10:51:00 -04:00
|
|
|
%prep
|
2020-10-29 15:14:37 +08:00
|
|
|
%autosetup -n noto-emoji-2020-09-16-unicode13_1 -p1
|
|
|
|
|
|
2019-09-30 10:51:00 -04:00
|
|
|
rm -rf third_party/pngquant
|
2020-10-29 15:14:37 +08:00
|
|
|
|
2019-09-30 10:51:00 -04:00
|
|
|
%build
|
2020-10-29 15:14:37 +08:00
|
|
|
export LANG=C.UTF-8
|
|
|
|
|
|
|
|
|
|
%make_build OPT_CFLAGS="$RPM_OPT_FLAGS" BYPASS_SEQUENCE_CHECK='True'
|
|
|
|
|
|
2019-09-30 10:51:00 -04:00
|
|
|
%install
|
2020-10-29 15:14:37 +08:00
|
|
|
install -m 0755 -d %{buildroot}%{_fontdir}
|
|
|
|
|
|
|
|
|
|
install -m 0644 -p NotoColorEmoji.ttf %{buildroot}%{_fontdir}
|
|
|
|
|
install -m 0644 -p fonts/NotoEmoji-Regular.ttf %{buildroot}%{_fontdir}
|
|
|
|
|
|
2019-12-13 15:25:40 +08:00
|
|
|
mkdir -p %{buildroot}%{_datadir}/appdata
|
|
|
|
|
install -m 0644 -p %{SOURCE1} %{buildroot}%{_datadir}/appdata
|
|
|
|
|
install -m 0644 -p %{SOURCE2} %{buildroot}%{_datadir}/appdata
|
2020-10-29 15:14:37 +08:00
|
|
|
|
2019-12-13 15:25:40 +08:00
|
|
|
%files
|
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%doc AUTHORS CONTRIBUTING.md CONTRIBUTORS README.md
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%{_datadir}/fonts/google-noto-emoji/*.ttf
|
|
|
|
|
%{_datadir}/appdata/google-noto-emoji*.xml
|
2020-10-29 15:14:37 +08:00
|
|
|
|
2019-09-30 10:51:00 -04:00
|
|
|
%changelog
|
2020-10-29 15:14:37 +08:00
|
|
|
* Thu Oct 29 2020 jinzhimin <jinzhimin2@huawei.com> - 20200916-1
|
|
|
|
|
- update to 20200916
|
|
|
|
|
|
2020-03-20 11:39:53 +08:00
|
|
|
* Fri Mar 20 2020 songnannan <songnannan2@huawei.com> - 20180814-4
|
|
|
|
|
- add gdb in buildrequires
|
|
|
|
|
|
2019-12-13 15:25:40 +08:00
|
|
|
* Fri Nov 22 2019 openEuler Buildteam <buildteam@openeuler.org> - 20180814-3
|
|
|
|
|
- Type:bugfix
|
|
|
|
|
- Id:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:close build
|
|
|
|
|
|
|
|
|
|
* Thu Sep 19 2019 openEuler Buildteam <buildteam@openeuler.org> - 20180814-2
|
2019-09-30 10:51:00 -04:00
|
|
|
- Package init
|