From c3a5b286e4238c3e74fd2bf428832533857a3160 Mon Sep 17 00:00:00 2001 From: MSVSphere Packaging Team Date: Tue, 26 Nov 2024 16:12:04 +0300 Subject: [PATCH] import google-noto-emoji-fonts-20231130-2.el10 --- .gitignore | 2 + .google-noto-emoji-fonts.metadata | 2 + SOURCES/noto-emoji-build-all-flags.patch | 11 + SOURCES/noto-emoji-use-gm.patch | 30 ++ SOURCES/noto-emoji-use-system-pngquant.patch | 30 ++ SPECS/google-noto-emoji-fonts.spec | 276 +++++++++++++++++++ 6 files changed, 351 insertions(+) create mode 100644 .gitignore create mode 100644 .google-noto-emoji-fonts.metadata create mode 100644 SOURCES/noto-emoji-build-all-flags.patch create mode 100644 SOURCES/noto-emoji-use-gm.patch create mode 100644 SOURCES/noto-emoji-use-system-pngquant.patch create mode 100644 SPECS/google-noto-emoji-fonts.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..88591a9 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +SOURCES/Noto_Emoji.zip +SOURCES/noto-emoji-d79d23e.tar.gz diff --git a/.google-noto-emoji-fonts.metadata b/.google-noto-emoji-fonts.metadata new file mode 100644 index 0000000..1d6bb18 --- /dev/null +++ b/.google-noto-emoji-fonts.metadata @@ -0,0 +1,2 @@ +493a72eaaaf98f00c17d4290aa14116510873f94 SOURCES/Noto_Emoji.zip +17d843bae71a700fb8e3a61f4a9997bc9173e22e SOURCES/noto-emoji-d79d23e.tar.gz diff --git a/SOURCES/noto-emoji-build-all-flags.patch b/SOURCES/noto-emoji-build-all-flags.patch new file mode 100644 index 0000000..564b08a --- /dev/null +++ b/SOURCES/noto-emoji-build-all-flags.patch @@ -0,0 +1,11 @@ +--- old/Makefile 2018-05-03 20:32:14.000000000 +0200 ++++ new/Makefile 2018-05-08 11:48:20.811073447 +0200 +@@ -78,7 +78,7 @@ + + ALL_FLAGS = $(basename $(notdir $(wildcard $(FLAGS_SRC_DIR)/*.png))) + +-FLAGS = $(SELECTED_FLAGS) ++FLAGS = $(ALL_FLAGS) + + FLAG_NAMES = $(FLAGS:%=%.png) + FLAG_FILES = $(addprefix $(FLAGS_DIR)/, $(FLAG_NAMES)) diff --git a/SOURCES/noto-emoji-use-gm.patch b/SOURCES/noto-emoji-use-gm.patch new file mode 100644 index 0000000..e1cf6ee --- /dev/null +++ b/SOURCES/noto-emoji-use-gm.patch @@ -0,0 +1,30 @@ +diff -ru noto-emoji-f8131fc45736000552cd04a8388dc414d666a829.orig/Makefile noto-emoji-f8131fc45736000552cd04a8388dc414d666a829/Makefile +--- noto-emoji-f8131fc45736000552cd04a8388dc414d666a829.orig/Makefile 2020-06-25 16:02:56.000000000 +0200 ++++ noto-emoji-f8131fc45736000552cd04a8388dc414d666a829/Makefile 2020-07-21 11:12:06.948389580 +0200 +@@ -22,7 +22,8 @@ + PYTHON = python3 + PNGQUANTFLAGS = --speed 1 --skip-if-larger --quality 85-95 --force + BODY_DIMENSIONS = 136x128 +-IMOPS := -size $(BODY_DIMENSIONS) canvas:none -compose copy -gravity center ++#IMOPS := -size $(BODY_DIMENSIONS) canvas:none -compose copy -gravity center ++IMOPS = -size 136x128 -background none -gravity center -extent 136x128 -compose copy + + ZOPFLIPNG = zopflipng + TTX = ttx +@@ -163,13 +164,13 @@ + # imagemagick packaged with ubuntu trusty (6.7.7-10) by using -composite. + + $(EMOJI_DIR)/%.png: $(EMOJI_SRC_DIR)/%.png | $(EMOJI_DIR) +- @convert $(IMOPS) "$<" -composite "PNG32:$@" ++ @gm convert $(IMOPS) "$<" "PNG32:$@" + + $(FLAGS_DIR)/%.png: $(FLAGS_SRC_DIR)/%.png ./waveflag | $(FLAGS_DIR) + @./waveflag $(FLAGS_DIR)/ "$<" + + $(RESIZED_FLAGS_DIR)/%.png: $(FLAGS_DIR)/%.png | $(RESIZED_FLAGS_DIR) +- @convert $(IMOPS) "$<" -composite "PNG32:$@" ++ @gm convert $(IMOPS) "$<" "PNG32:$@" + + flag-symlinks: $(RESIZED_FLAG_FILES) | $(RENAMED_FLAGS_DIR) + @$(subst ^, , \ + diff --git a/SOURCES/noto-emoji-use-system-pngquant.patch b/SOURCES/noto-emoji-use-system-pngquant.patch new file mode 100644 index 0000000..4b41894 --- /dev/null +++ b/SOURCES/noto-emoji-use-system-pngquant.patch @@ -0,0 +1,30 @@ +Index: noto-emoji-c05b4b47c8250ccd232780cae46d66a8179e77ab/Makefile +=================================================================== +--- noto-emoji-c05b4b47c8250ccd232780cae46d66a8179e77ab.orig/Makefile ++++ noto-emoji-c05b4b47c8250ccd232780cae46d66a8179e77ab/Makefile +@@ -16,10 +16,10 @@ EMOJI = NotoColorEmoji + EMOJI_WINDOWS = NotoColorEmoji_WindowsCompatible + all: $(EMOJI).ttf $(EMOJI_WINDOWS).ttf + +-CFLAGS = -std=c99 -Wall -Wextra `pkg-config --cflags --libs cairo` ++CFLAGS = $(OPT_CFLAGS) -Wextra `pkg-config --cflags --libs cairo` + LDFLAGS = -lm `pkg-config --libs cairo` + +-PNGQUANT = pngquant ++PNGQUANT = /usr/bin/pngquant + PYTHON = python3 + PNGQUANTFLAGS = --speed 1 --skip-if-larger --quality 85-95 --force + BODY_DIMENSIONS = 136x128 +@@ -88,9 +88,9 @@ ifeq (,$(shell which $(ZOPFLIPNG))) + endif + endif + +-ifndef VIRTUAL_ENV +- MISSING_VENV = fail +-endif ++#ifndef VIRTUAL_ENV ++# MISSING_VENV = fail ++#endif + + ifeq (, $(shell which $(VS_ADDER))) + MISSING_PY_TOOLS = fail diff --git a/SPECS/google-noto-emoji-fonts.spec b/SPECS/google-noto-emoji-fonts.spec new file mode 100644 index 0000000..67b719a --- /dev/null +++ b/SPECS/google-noto-emoji-fonts.spec @@ -0,0 +1,276 @@ +# SPDX-License-Identifier: MIT + +%global commit0 d79d23e6822e0f6e5731b114cbfb26b2a4e380da +%global shortcommit0 %(c=%{commit0}; echo ${c:0:7}) + +%global fontname google-noto-emoji + +%if (0%{?fedora} > 25) +%global buildfont 1 +%else +%global buildfont 0 +%endif + +BuildRequires: gcc +BuildRequires: fontpackages-devel +%if %buildfont +BuildRequires: fonttools +BuildRequires: python3-fonttools +BuildRequires: nototools +BuildRequires: python3-nototools +BuildRequires: python3-devel +BuildRequires: GraphicsMagick +BuildRequires: pngquant +BuildRequires: zopfli +BuildRequires: cairo-devel +%endif +BuildRequires: make + +Version: 20231130 +Release: 2%{?dist} +URL: https://github.com/googlefonts/noto-emoji + +%global foundry Google +# In noto-emoji-fonts source +## noto-emoji code is in ASL 2.0 license +## Emoji fonts are under OFL license +### third_party color-emoji code is in BSD license +### third_party region-flags code is in Public Domain license +# In nototools source +## nototools code is in ASL 2.0 license +### third_party ucd code is in Unicode license +%global fontlicense OFL-1.1 AND Apache-2.0 +%global fontlicenses LICENSE OFL.txt +%global fontdocs AUTHORS CONTRIBUTING.md CONTRIBUTORS README.md README.txt + +%global fontfamily0 Noto Emoji +%global fontsummary0 Google “Noto Emoji” Black-and-White emoji font +%global fonts0 NotoEmoji-Regular.ttf +%global fontdescription0 %{expand: +This package provides the Google “Noto Emoji” Black-and-White emoji font. +} + +%global fontfamily1 Noto Color Emoji +%global fontsummary1 Google “Noto Color Emoji” colored emoji font +%global fontpkgheader1 %{expand: +Obsoletes: google-noto-emoji-color-fonts < 20220916-6 +Provides: google-noto-emoji-color-fonts = %{version}-%{release} +} +%global fonts1 NotoColorEmoji.ttf +%global fontdescription1 %{expand: +This package provides the Google “Noto Color Emoji” colored emoji font. +} + +Source0: https://github.com/googlefonts/noto-emoji/archive/%{commit0}.tar.gz#/noto-emoji-%{shortcommit0}.tar.gz +Source4: Noto_Emoji.zip + +Patch0: noto-emoji-build-all-flags.patch +Patch1: noto-emoji-use-gm.patch +Patch2: noto-emoji-use-system-pngquant.patch + +%fontpkg -a + + +%prep +%autosetup -p1 -a 4 -n noto-emoji-%{commit0} + +rm -rf third_party/pngquant + +cp -p static/NotoEmoji-Regular.ttf . + +%build + +%if %buildfont +# Work around UTF-8 +export LANG=C.UTF-8 + +%make_build OPT_CFLAGS="$RPM_OPT_FLAGS" BYPASS_SEQUENCE_CHECK='True' +%else +cp -p fonts/NotoColorEmoji.ttf . +%endif + +%fontbuild -a + +%install +%fontinstall -a + +%check +%fontcheck -a + +%fontfiles -a + + +%changelog +* Tue Nov 26 2024 MSVSphere Packaging Team - 20231130-2 +- Rebuilt for MSVSphere 10 + +* Mon Jun 24 2024 Troy Dawson - 20231130-2 +- Bump release for June 2024 mass rebuild + +* Thu Jan 25 2024 Peng Wu - 20231130-1 +- Update to v2.042 + +* Wed Jan 24 2024 Fedora Release Engineering - 20220916-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Sat Jan 20 2024 Fedora Release Engineering - 20220916-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Thu Jul 20 2023 Fedora Release Engineering - 20220916-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Thu May 25 2023 Peng Wu - 20220916-6 +- Update to follow New Fonts Packaging Guidelines + +* Mon May 22 2023 Peng Wu - 20220916-5 +- Migrate to SPDX license + +* Thu Mar 16 2023 Peng Wu - 20220916-4 +- Use metainfodir macro for metainfo files + +* Thu Jan 19 2023 Fedora Release Engineering - 20220916-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Wed Sep 28 2022 Peng Wu - 20220916-2 +- Update Upstream URL + +* Tue Sep 27 2022 Peng Wu - 20220916-1 +- Update to v2.038 + +* Thu Jul 21 2022 Fedora Release Engineering - 20211102-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Mon Mar 21 2022 Peng Wu - 20211102-1 +- Update to v2.034 + +* Thu Jan 20 2022 Fedora Release Engineering - 20210716-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Tue Sep 28 2021 Peng Wu - 20210716-1 +- Update to v2.028 + +* Thu Jul 22 2021 Fedora Release Engineering - 20200916-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Tue Jan 26 2021 Fedora Release Engineering - 20200916-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Thu Dec 24 2020 Peng Wu - 20200916-1 +- Update to upstream snapshot tarball (Unicode 13.1.0 support) + +* Tue Jul 28 2020 Fedora Release Engineering - 20200723-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Tue Jul 21 2020 Mike FABIAN - 20200723-1 +- Update to upstream snapshot tarball (Unicode 13.0.0 support) + +* Mon Jul 13 2020 Tom Stellard - 20200402-2 +- Use make macros +- https://fedoraproject.org/wiki/Changes/UseMakeBuildInstallMacro + +* Thu Apr 02 2020 Mike FABIAN - 20200402-1 +- Update to upstream snapshot tarball (fixes U+1F9D1 U+200D U+1F3A8 "artist" + and many other sequences) + +* Wed Jan 29 2020 Fedora Release Engineering - 20191019-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Sat Oct 19 2019 Mike FABIAN - 20191019-1 +- Update to upstream snapshot tarball (Fixes for people holding hands) + +* Thu Aug 29 2019 Mike FABIAN - 20190829-1 +- Update to upstream snapshot tarball (Fixes FR and NL flags) + +* Thu Jul 25 2019 Fedora Release Engineering - 20190709-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Tue Jul 09 2019 Mike FABIAN - 20190709-1 +- Update to upstream snapshot tarball (Contains the new emoji added in Unicode 12.0.0, + also fixes the "people holding hands" sequence. +- Port to Python3 and build using Python3 + +* Fri Feb 01 2019 Fedora Release Engineering - 20180814-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Tue Aug 14 2018 Mike FABIAN - 20180814-1 +- Update to upstream snapshot tarball (Contains the new emoji added in Unicode 11.0.0) + +* Mon Jul 23 2018 Mike FABIAN - 20180508-6 +- Fix build in rawhide +- Resolves: rhbz#1604247 + +* Fri Jul 13 2018 Fedora Release Engineering - 20180508-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Tue Jun 26 2018 Peng Wu - 20180508-4 +- Fixes buildfont macro + +* Tue Jun 19 2018 Peng Wu - 20180508-3 +- Only build emoji color font since Fedora 26 + +* Wed May 23 2018 Peng Wu - 20180508-2 +- Use GraphicsMagick instead of ImageMagick + +* Tue May 08 2018 Mike FABIAN - 20180508-1 +- Update to upstream snapshot tarball (color emoji font version 2.011) +- Add patch to build all country flags (Resolves: rhbz#1574195) + +* Wed Mar 07 2018 Mike FABIAN - 20180307-1 +- Update to upstream snapshot tarball (color emoji font version 2.004) + +* Wed Feb 07 2018 Fedora Release Engineering - 20170928-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Mon Feb 5 2018 Peng Wu - 20170928-3 +- Use nototools package to build google-noto-emoji-fonts + +* Wed Nov 8 2017 Peter Oliver - 20170928-2 +- Prefer zopflipng to optipng, since it should yield smaller files. +- Use the font we built, rather than the one included with the source. + +* Thu Sep 28 2017 Mike FABIAN - 20170828-1 +- Update to upstream snapshot tarball +- split black-and-white and color fonts into different sub-packages. + +* Mon Aug 28 2017 Mike FABIAN - 20170827-1 +- Update to upstream snapshot tarball +- Update color emoji font to version 2.001, new design. +- Contains the new emoji added in Unicode 10.0.0. + +* Wed Jul 26 2017 Fedora Release Engineering - 20170608-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Thu Jun 08 2017 Mike FABIAN - 20170608-1 +- Update to upstream snapshot tarball + +* Tue May 23 2017 Mike FABIAN - 20170523-1 +- Update to upstream snapshot tarball +- This fixes the skin tones of the light/medium light male cook emoji, + which had been swapped. + +* Wed Apr 26 2017 Mike FABIAN - 20170426-1 +- Update to upstream snapshot tarball + (fixes the family emoji sequences: + kiss: woman, man U+1F469 U+200D U+2764 U+FE0F U+200D U+1F48B U+200D U+1F468 + couple with heart: woman, man U+1F469 U+200D U+2764 U+FE0F U+200D U+1F468) + +* Thu Feb 23 2017 Peng Wu - 20170223-1 +- Update to upstream snapshot tarball + +* Fri Feb 10 2017 Fedora Release Engineering - 20160406-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Fri May 6 2016 Peng Wu - 20160406-5 +- Avoid to use python setup.py + +* Fri Apr 29 2016 Peng Wu - 20160406-4 +- Replace google-noto-color-emoji-fonts package + +* Mon Apr 25 2016 Peng Wu - 20160406-3 +- Add google-noto-emoji.metainfo.xml + +* Wed Apr 20 2016 Peng Wu - 20160406-2 +- Use system pngquant + +* Wed Apr 20 2016 Peng Wu - 20160406-1 +- Initial packaging