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