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

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