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

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