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

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