Blame SPECS/google-noto-emoji-fonts.spec

fcff87
%global commit0 9a5261d871451f9b5183c93483cbd68ed916b1e9
c6c55c
%global shortcommit0 %(c=%{commit0}; echo ${c:0:7})
c6c55c
c6c55c
%global fontname google-noto-emoji
c6c55c
c6c55c
%if (0%{?fedora} > 25)
c6c55c
%global buildfont 1
c6c55c
%else
c6c55c
%global buildfont 0
c6c55c
%endif
c6c55c
c6c55c
c6c55c
Name:           %{fontname}-fonts
fcff87
Version:        20211102
fcff87
Release:        1%{?dist}
c6c55c
Summary:        Google “Noto Emoji” Black-and-White emoji font
c6c55c
c6c55c
# In noto-emoji-fonts source
c6c55c
## noto-emoji code is in ASL 2.0 license
c6c55c
## Emoji fonts are under OFL license
c6c55c
### third_party color-emoji code is in BSD license
c6c55c
### third_party region-flags code is in Public Domain license
c6c55c
# In nototools source
c6c55c
## nototools code is in ASL 2.0 license
c6c55c
### third_party ucd code is in Unicode license
c6c55c
License:        OFL and ASL 2.0
c6c55c
URL:            https://github.com/googlei18n/noto-emoji
c6c55c
Source0:        https://github.com/googlei18n/noto-emoji/archive/%{commit0}.tar.gz#/noto-emoji-%{shortcommit0}.tar.gz
c6c55c
Source2:        %{fontname}.metainfo.xml
c6c55c
Source3:        %{fontname}-color.metainfo.xml
c6c55c
c6c55c
Patch0:         noto-emoji-build-all-flags.patch
c6c55c
Patch1:         noto-emoji-use-gm.patch
c6c55c
Patch2:         noto-emoji-use-system-pngquant.patch
c6c55c
c6c55c
BuildArch:      noarch
c6c55c
BuildRequires:  gcc
c6c55c
BuildRequires:  fontpackages-devel
c6c55c
%if %buildfont
c6c55c
BuildRequires:  fonttools
c6c55c
BuildRequires:  python3-fonttools
c6c55c
BuildRequires:  nototools
c6c55c
BuildRequires:  python3-nototools
c6c55c
BuildRequires:  python3-devel
c6c55c
BuildRequires:  GraphicsMagick
c6c55c
BuildRequires:  pngquant
c6c55c
BuildRequires:  zopfli
c6c55c
BuildRequires:  cairo-devel
c6c55c
%endif
c6c55c
BuildRequires: make
c6c55c
c6c55c
Requires:       fontpackages-filesystem
c6c55c
c6c55c
Obsoletes:      google-noto-color-emoji-fonts < 20150617
c6c55c
Provides:       google-noto-color-emoji-fonts = 20150617
c6c55c
c6c55c
%description
c6c55c
This package provides the Google “Noto Emoji” Black-and-White emoji font.
c6c55c
c6c55c
%package -n     %{fontname}-color-fonts
c6c55c
Summary:        Google “Noto Color Emoji” colored emoji font
c6c55c
Requires:       fontpackages-filesystem
c6c55c
Obsoletes:      google-noto-color-emoji-fonts < 20150617
c6c55c
Provides:       google-noto-color-emoji-fonts = 20150617
c6c55c
c6c55c
%description -n %{fontname}-color-fonts
c6c55c
This package provides the Google “Noto Color Emoji” colored emoji font.
c6c55c
c6c55c
%prep
c6c55c
%setup -n noto-emoji-%{commit0}
c6c55c
%patch0 -p1 -b .noto-emoji-build-all-flags
c6c55c
%patch1 -p1 -b .noto-emoji-use-gm.patch
c6c55c
%patch2 -p1 -b .noto-emoji-use-system-pngquant
c6c55c
c6c55c
rm -rf third_party/pngquant
c6c55c
c6c55c
%build
c6c55c
%if %buildfont
c6c55c
# Work around UTF-8
c6c55c
export LANG=C.UTF-8
c6c55c
c6c55c
%make_build OPT_CFLAGS="$RPM_OPT_FLAGS" BYPASS_SEQUENCE_CHECK='True'
c6c55c
%endif
c6c55c
c6c55c
%install
c6c55c
install -m 0755 -d %{buildroot}%{_fontdir}
c6c55c
c6c55c
%if %buildfont
c6c55c
# Built by us from the supplied pngs:
c6c55c
install -m 0644 -p NotoColorEmoji.ttf %{buildroot}%{_fontdir}
c6c55c
%else
c6c55c
# Pre-built, and included with the source:
c6c55c
install -m 0644 -p fonts/NotoColorEmoji.ttf %{buildroot}%{_fontdir}
c6c55c
%endif
c6c55c
c6c55c
# Pre-built, and included with the source:
c6c55c
install -m 0644 -p fonts/NotoEmoji-Regular.ttf %{buildroot}%{_fontdir}
c6c55c
c6c55c
mkdir -p %{buildroot}%{_datadir}/appdata
c6c55c
install -m 0644 -p %{SOURCE2} %{buildroot}%{_datadir}/appdata
c6c55c
install -m 0644 -p %{SOURCE3} %{buildroot}%{_datadir}/appdata
c6c55c
c6c55c
%_font_pkg NotoEmoji-Regular.ttf
c6c55c
%license LICENSE
c6c55c
%doc AUTHORS CONTRIBUTING.md CONTRIBUTORS README.md
c6c55c
%{_datadir}/appdata/google-noto-emoji.metainfo.xml
c6c55c
c6c55c
%_font_pkg -n color NotoColorEmoji.ttf
c6c55c
%license LICENSE
c6c55c
%doc AUTHORS CONTRIBUTING.md CONTRIBUTORS README.md
c6c55c
%{_datadir}/appdata/google-noto-emoji-color.metainfo.xml
c6c55c
c6c55c
c6c55c
%changelog
fcff87
* Tue Nov  1 2022 Peng Wu <pwu@redhat.com> - 20211102-1
fcff87
- Update to v2.034
fcff87
- Resolves: #2118299
fcff87
c6c55c
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 20200916-4
c6c55c
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
c6c55c
  Related: rhbz#1991688
c6c55c
c6c55c
* Thu Apr 15 2021 Mohan Boddu <mboddu@redhat.com> - 20200916-3
c6c55c
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
c6c55c
c6c55c
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 20200916-2
c6c55c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
c6c55c
c6c55c
* Thu Dec 24 2020 Peng Wu <pwu@redhat.com> - 20200916-1
c6c55c
- Update to upstream snapshot tarball (Unicode 13.1.0 support)
c6c55c
c6c55c
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 20200723-2
c6c55c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
c6c55c
c6c55c
* Tue Jul 21 2020 Mike FABIAN <mfabian@redhat.com> - 20200723-1
c6c55c
- Update to upstream snapshot tarball (Unicode 13.0.0 support)
c6c55c
c6c55c
* Mon Jul 13 2020 Tom Stellard <tstellar@redhat.com> - 20200402-2
c6c55c
- Use make macros
c6c55c
- https://fedoraproject.org/wiki/Changes/UseMakeBuildInstallMacro
c6c55c
c6c55c
* Thu Apr 02 2020 Mike FABIAN <mfabian@redhat.com> - 20200402-1
c6c55c
- Update to upstream snapshot tarball (fixes U+1F9D1 U+200D U+1F3A8 "artist"
c6c55c
  and many other sequences)
c6c55c
c6c55c
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 20191019-2
c6c55c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
c6c55c
c6c55c
* Sat Oct 19 2019 Mike FABIAN <mfabian@redhat.com> - 20191019-1
c6c55c
- Update to upstream snapshot tarball (Fixes for people holding hands)
c6c55c
c6c55c
* Thu Aug 29 2019 Mike FABIAN <mfabian@redhat.com> - 20190829-1
c6c55c
- Update to upstream snapshot tarball (Fixes FR and NL flags)
c6c55c
c6c55c
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 20190709-2
c6c55c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
c6c55c
c6c55c
* Tue Jul 09 2019 Mike FABIAN <mfabian@redhat.com> - 20190709-1
c6c55c
- Update to upstream snapshot tarball (Contains the new emoji added in Unicode 12.0.0,
c6c55c
  also fixes the "people holding hands" sequence.
c6c55c
- Port to Python3 and build using Python3
c6c55c
c6c55c
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 20180814-2
c6c55c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
c6c55c
c6c55c
* Tue Aug 14 2018 Mike FABIAN <mfabian@redhat.com> - 20180814-1
c6c55c
- Update to upstream snapshot tarball (Contains the new emoji added in Unicode 11.0.0)
c6c55c
c6c55c
* Mon Jul 23 2018 Mike FABIAN <mfabian@redhat.com> - 20180508-6
c6c55c
- Fix build in rawhide
c6c55c
- Resolves: rhbz#1604247
c6c55c
c6c55c
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 20180508-5
c6c55c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
c6c55c
c6c55c
* Tue Jun 26 2018 Peng Wu <pwu@redhat.com> - 20180508-4
c6c55c
- Fixes buildfont macro
c6c55c
c6c55c
* Tue Jun 19 2018 Peng Wu <pwu@redhat.com> - 20180508-3
c6c55c
- Only build emoji color font since Fedora 26
c6c55c
c6c55c
* Wed May 23 2018 Peng Wu <pwu@redhat.com> - 20180508-2
c6c55c
- Use GraphicsMagick instead of ImageMagick
c6c55c
c6c55c
* Tue May 08 2018 Mike FABIAN <mfabian@redhat.com> - 20180508-1
c6c55c
- Update to upstream snapshot tarball (color emoji font version 2.011)
c6c55c
- Add patch to build all country flags (Resolves: rhbz#1574195)
c6c55c
c6c55c
* Wed Mar 07 2018 Mike FABIAN <mfabian@redhat.com> - 20180307-1
c6c55c
- Update to upstream snapshot tarball (color emoji font version 2.004)
c6c55c
c6c55c
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 20170928-4
c6c55c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
c6c55c
c6c55c
* Mon Feb  5 2018 Peng Wu <pwu@redhat.com> - 20170928-3
c6c55c
- Use nototools package to build google-noto-emoji-fonts
c6c55c
c6c55c
* Wed Nov  8 2017 Peter Oliver <rpm@mavit.org.uk> - 20170928-2
c6c55c
- Prefer zopflipng to optipng, since it should yield smaller files.
c6c55c
- Use the font we built, rather than the one included with the source.
c6c55c
c6c55c
* Thu Sep 28 2017 Mike FABIAN <mfabian@redhat.com> - 20170828-1
c6c55c
- Update to upstream snapshot tarball
c6c55c
- split black-and-white and color fonts into different sub-packages.
c6c55c
c6c55c
* Mon Aug 28 2017 Mike FABIAN <mfabian@redhat.com> - 20170827-1
c6c55c
- Update to upstream snapshot tarball
c6c55c
- Update color emoji font to version 2.001, new design.
c6c55c
- Contains the new emoji added in Unicode 10.0.0.
c6c55c
c6c55c
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 20170608-2
c6c55c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
c6c55c
c6c55c
* Thu Jun 08 2017 Mike FABIAN <mfabian@redhat.com> - 20170608-1
c6c55c
- Update to upstream snapshot tarball
c6c55c
c6c55c
* Tue May 23 2017 Mike FABIAN <mfabian@redhat.com> - 20170523-1
c6c55c
- Update to upstream snapshot tarball
c6c55c
- This fixes the skin tones of the light/medium light male cook emoji,
c6c55c
  which had been swapped.
c6c55c
c6c55c
* Wed Apr 26 2017 Mike FABIAN <mfabian@redhat.com> - 20170426-1
c6c55c
- Update to upstream snapshot tarball
c6c55c
  (fixes the family emoji sequences:
c6c55c
  kiss: woman, man U+1F469 U+200D U+2764 U+FE0F U+200D U+1F48B U+200D U+1F468
c6c55c
  couple with heart: woman, man U+1F469 U+200D U+2764 U+FE0F U+200D U+1F468)
c6c55c
c6c55c
* Thu Feb 23 2017 Peng Wu <pwu@redhat.com> - 20170223-1
c6c55c
- Update to upstream snapshot tarball
c6c55c
c6c55c
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 20160406-6
c6c55c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
c6c55c
c6c55c
* Fri May  6 2016 Peng Wu <pwu@redhat.com> - 20160406-5
c6c55c
- Avoid to use python setup.py
c6c55c
c6c55c
* Fri Apr 29 2016 Peng Wu <pwu@redhat.com> - 20160406-4
c6c55c
- Replace google-noto-color-emoji-fonts package
c6c55c
c6c55c
* Mon Apr 25 2016 Peng Wu <pwu@redhat.com> - 20160406-3
c6c55c
- Add google-noto-emoji.metainfo.xml
c6c55c
c6c55c
* Wed Apr 20 2016 Peng Wu <pwu@redhat.com> - 20160406-2
c6c55c
- Use system pngquant
c6c55c
c6c55c
* Wed Apr 20 2016 Peng Wu <pwu@redhat.com> - 20160406-1
c6c55c
- Initial packaging