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

bdcae8
%global commit0 aac7ccaa4d1dea4543453b96f7d6fc47066a57ff
f763a1
%global shortcommit0 %(c=%{commit0}; echo ${c:0:7})
f763a1
f763a1
%global fontname google-noto-emoji
f763a1
f763a1
%if (0%{?fedora} > 25)
f763a1
%global buildfont 1
f763a1
%else
f763a1
%global buildfont 0
f763a1
%endif
f763a1
f763a1
f763a1
Name:           %{fontname}-fonts
bdcae8
Version:        20200916
bdcae8
Release:        2%{?dist}
f763a1
Summary:        Google “Noto Emoji” Black-and-White emoji font
f763a1
f763a1
# In noto-emoji-fonts source
f763a1
## noto-emoji code is in ASL 2.0 license
f763a1
## Emoji fonts are under OFL license
f763a1
### third_party color-emoji code is in BSD license
f763a1
### third_party region-flags code is in Public Domain license
f763a1
# In nototools source
f763a1
## nototools code is in ASL 2.0 license
f763a1
### third_party ucd code is in Unicode license
f763a1
License:        OFL and ASL 2.0
f763a1
URL:            https://github.com/googlei18n/noto-emoji
f763a1
Source0:        https://github.com/googlei18n/noto-emoji/archive/%{commit0}.tar.gz#/noto-emoji-%{shortcommit0}.tar.gz
f763a1
Source2:        %{fontname}.metainfo.xml
f763a1
Source3:        %{fontname}-color.metainfo.xml
f763a1
f763a1
Patch0:         noto-emoji-use-system-pngquant.patch
f763a1
Patch1:         noto-emoji-build-all-flags.patch
f763a1
Patch2:         noto-emoji-use-gm.patch
f763a1
f763a1
BuildArch:      noarch
f763a1
BuildRequires:  fontpackages-devel
f763a1
%if %buildfont
f763a1
BuildRequires:  fonttools
f763a1
BuildRequires:  python2-fonttools
f763a1
BuildRequires:  nototools
f763a1
BuildRequires:  python2-nototools
f763a1
BuildRequires:  python2-devel
f763a1
BuildRequires:  GraphicsMagick
f763a1
BuildRequires:  pngquant
f763a1
BuildRequires:  zopfli
f763a1
BuildRequires:  cairo-devel
f763a1
%endif
f763a1
f763a1
Requires:       fontpackages-filesystem
f763a1
f763a1
Obsoletes:      google-noto-color-emoji-fonts < 20150617
f763a1
Provides:       google-noto-color-emoji-fonts = 20150617
f763a1
f763a1
%description
f763a1
This package provides the Google “Noto Emoji” Black-and-White emoji font.
f763a1
f763a1
%package -n     %{fontname}-color-fonts
f763a1
Summary:        Google “Noto Color Emoji” colored emoji font
f763a1
Requires:       fontpackages-filesystem
f763a1
Obsoletes:      google-noto-color-emoji-fonts < 20150617
f763a1
Provides:       google-noto-color-emoji-fonts = 20150617
f763a1
f763a1
%description -n %{fontname}-color-fonts
f763a1
This package provides the Google “Noto Color Emoji” colored emoji font.
f763a1
f763a1
%prep
f763a1
%autosetup -n noto-emoji-%{commit0}
f763a1
f763a1
rm -rf third_party/pngquant
f763a1
f763a1
%build
f763a1
%if %buildfont
f763a1
# Work around UTF-8
f763a1
export LANG=C.UTF-8
f763a1
f763a1
make %{?_smp_mflags} OPT_CFLAGS="$RPM_OPT_FLAGS"
f763a1
%endif
f763a1
f763a1
%install
f763a1
install -m 0755 -d %{buildroot}%{_fontdir}
f763a1
f763a1
%if %buildfont
f763a1
# Built by us from the supplied pngs:
f763a1
install -m 0644 -p NotoColorEmoji.ttf %{buildroot}%{_fontdir}
f763a1
%else
f763a1
# Pre-built, and included with the source:
f763a1
install -m 0644 -p fonts/NotoColorEmoji.ttf %{buildroot}%{_fontdir}
f763a1
%endif
f763a1
f763a1
# Pre-built, and included with the source:
f763a1
install -m 0644 -p fonts/NotoEmoji-Regular.ttf %{buildroot}%{_fontdir}
f763a1
f763a1
mkdir -p %{buildroot}%{_datadir}/appdata
f763a1
install -m 0644 -p %{SOURCE2} %{buildroot}%{_datadir}/appdata
f763a1
install -m 0644 -p %{SOURCE3} %{buildroot}%{_datadir}/appdata
f763a1
f763a1
%_font_pkg NotoEmoji-Regular.ttf
f763a1
%license LICENSE
f763a1
%doc AUTHORS CONTRIBUTING.md CONTRIBUTORS README.md
f763a1
%{_datadir}/appdata/google-noto-emoji.metainfo.xml
f763a1
f763a1
%_font_pkg -n color NotoColorEmoji.ttf
f763a1
%license LICENSE
f763a1
%doc AUTHORS CONTRIBUTING.md CONTRIBUTORS README.md
f763a1
%{_datadir}/appdata/google-noto-emoji-color.metainfo.xml
f763a1
f763a1
f763a1
%changelog
bdcae8
* Tue May 25 2021 Peng Wu <pwu@redhat.com> - 20200916-2
bdcae8
- Rebuild the package
bdcae8
- Resolves: RHBZ#1897541
bdcae8
bdcae8
* Tue May 25 2021 Peng Wu <pwu@redhat.com> - 20200916-1
bdcae8
- Update to Unicode 13.1.0 support
bdcae8
- Resolves: RHBZ#1897541
bdcae8
f763a1
* Thu Jun 28 2018 Peng Wu <pwu@redhat.com> - 20180508-4
f763a1
- Resolves: RHBZ#1591712
f763a1
f763a1
* Wed Jun 27 2018 Lumír Balhar <lbalhar@redhat.com> - 20180508-3
f763a1
- Disable build of fonts and rather ship pre-built ones
f763a1
f763a1
* Wed May 23 2018 Peng Wu <pwu@redhat.com> - 20180508-2
f763a1
- Use GraphicsMagick instead of ImageMagick
f763a1
f763a1
* Tue May 08 2018 Mike FABIAN <mfabian@redhat.com> - 20180508-1
f763a1
- Update to upstream snapshot tarball (color emoji font version 2.011)
f763a1
- Add patch to build all country flags (Resolves: rhbz#1574195)
f763a1
f763a1
* Wed Mar 07 2018 Mike FABIAN <mfabian@redhat.com> - 20180307-1
f763a1
- Update to upstream snapshot tarball (color emoji font version 2.004)
f763a1
f763a1
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 20170928-4
f763a1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
f763a1
f763a1
* Mon Feb  5 2018 Peng Wu <pwu@redhat.com> - 20170928-3
f763a1
- Use nototools package to build google-noto-emoji-fonts
f763a1
f763a1
* Wed Nov  8 2017 Peter Oliver <rpm@mavit.org.uk> - 20170928-2
f763a1
- Prefer zopflipng to optipng, since it should yield smaller files.
f763a1
- Use the font we built, rather than the one included with the source.
f763a1
f763a1
* Thu Sep 28 2017 Mike FABIAN <mfabian@redhat.com> - 20170828-1
f763a1
- Update to upstream snapshot tarball
f763a1
- split black-and-white and color fonts into different sub-packages.
f763a1
f763a1
* Mon Aug 28 2017 Mike FABIAN <mfabian@redhat.com> - 20170827-1
f763a1
- Update to upstream snapshot tarball
f763a1
- Update color emoji font to version 2.001, new design.
f763a1
- Contains the new emoji added in Unicode 10.0.0.
f763a1
f763a1
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 20170608-2
f763a1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
f763a1
f763a1
* Thu Jun 08 2017 Mike FABIAN <mfabian@redhat.com> - 20170608-1
f763a1
- Update to upstream snapshot tarball
f763a1
f763a1
* Tue May 23 2017 Mike FABIAN <mfabian@redhat.com> - 20170523-1
f763a1
- Update to upstream snapshot tarball
f763a1
- This fixes the skin tones of the light/medium light male cook emoji,
f763a1
  which had been swapped.
f763a1
f763a1
* Wed Apr 26 2017 Mike FABIAN <mfabian@redhat.com> - 20170426-1
f763a1
- Update to upstream snapshot tarball
f763a1
  (fixes the family emoji sequences:
f763a1
  kiss: woman, man U+1F469 U+200D U+2764 U+FE0F U+200D U+1F48B U+200D U+1F468
f763a1
  couple with heart: woman, man U+1F469 U+200D U+2764 U+FE0F U+200D U+1F468)
f763a1
f763a1
* Thu Feb 23 2017 Peng Wu <pwu@redhat.com> - 20170223-1
f763a1
- Update to upstream snapshot tarball
f763a1
f763a1
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 20160406-6
f763a1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
f763a1
f763a1
* Fri May  6 2016 Peng Wu <pwu@redhat.com> - 20160406-5
f763a1
- Avoid to use python setup.py
f763a1
f763a1
* Fri Apr 29 2016 Peng Wu <pwu@redhat.com> - 20160406-4
f763a1
- Replace google-noto-color-emoji-fonts package
f763a1
f763a1
* Mon Apr 25 2016 Peng Wu <pwu@redhat.com> - 20160406-3
f763a1
- Add google-noto-emoji.metainfo.xml
f763a1
f763a1
* Wed Apr 20 2016 Peng Wu <pwu@redhat.com> - 20160406-2
f763a1
- Use system pngquant
f763a1
f763a1
* Wed Apr 20 2016 Peng Wu <pwu@redhat.com> - 20160406-1
f763a1
- Initial packaging