af3ad2
%global actualname cantarell
af3ad2
af3ad2
%global fontname abattis-%{actualname}
af3ad2
%global fontconf 31-cantarell.conf
af3ad2
af3ad2
%global archivename1 Cantarell-Bold
af3ad2
%global archivename2 Cantarell-Regular
af3ad2
af3ad2
Name: %{fontname}-fonts
af3ad2
Version: 0.0.25
af3ad2
Release: 1%{?dist}
af3ad2
Summary: Cantarell, a Humanist sans-serif font family
af3ad2
af3ad2
Group: User Interface/X
af3ad2
License: OFL
af3ad2
URL: https://git.gnome.org/browse/cantarell-fonts/
af3ad2
Source0: http://download.gnome.org/sources/%{actualname}-fonts/0.0/%{actualname}-fonts-%{version}.tar.xz
af3ad2
Source1: %{fontname}.metainfo.xml
af3ad2
af3ad2
BuildArch: noarch
af3ad2
BuildRequires: fontpackages-devel
af3ad2
Requires: fontpackages-filesystem
af3ad2
af3ad2
%description
af3ad2
Cantarell is a set of fonts designed by Dave Crossland.
af3ad2
It is a sans-serif humanist typeface family.
af3ad2
af3ad2
%prep
af3ad2
%autosetup -n %{actualname}-fonts-%{version}
af3ad2
af3ad2
%build
af3ad2
%configure
af3ad2
make %{?_smp_mflags}
af3ad2
af3ad2
%install
af3ad2
install -m 0755 -d %{buildroot}%{_fontdir}
af3ad2
install -m 0644 -p otf/*.otf %{buildroot}%{_fontdir}
af3ad2
install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} \
af3ad2
                   %{buildroot}%{_fontconfig_confdir}
af3ad2
install -m 0644 -p fontconfig/%{fontconf} \
af3ad2
        %{buildroot}%{_fontconfig_templatedir}/%{fontconf}
af3ad2
ln -s %{_fontconfig_templatedir}/%{fontconf} \
af3ad2
      %{buildroot}%{_fontconfig_confdir}/%{fontconf}
af3ad2
af3ad2
# Add AppStream metadata
af3ad2
install -Dm 0644 -p %{SOURCE1} \
af3ad2
       %{buildroot}%{_datadir}/appdata/%{fontname}.metainfo.xml
af3ad2
af3ad2
%_font_pkg -f %{fontconf} *.otf
af3ad2
%license COPYING
af3ad2
%doc NEWS README
af3ad2
%{_datadir}/appdata/%{fontname}.metainfo.xml
af3ad2
af3ad2
%changelog
af3ad2
* Fri Aug 19 2016 Kalev Lember <klember@redhat.com> - 0.0.25-1
af3ad2
- Update to 0.0.25
af3ad2
- Resolves: #1386753
af3ad2
af3ad2
* Fri Sep 11 2015 Kalev Lember <klember@redhat.com> - 0.0.16-3
af3ad2
- Avoid regenerating upstream shipped font files
af3ad2
- Resolves: #1254893
af3ad2
af3ad2
* Tue Sep 08 2015 Kalev Lember <klember@redhat.com> - 0.0.16-2
af3ad2
- Fix 'r' hinting
af3ad2
- Resolves: #1254893
af3ad2
af3ad2
* Thu May 14 2015 Matthias Clasen <mclasen@redhat.com> - 0.0.16-1
af3ad2
- Added metainfo for gnome-software.
af3ad2
- Update to 0.0.16
af3ad2
Resolves: #1174542
af3ad2
af3ad2
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 0.0.12-3
af3ad2
- Mass rebuild 2013-12-27
af3ad2
af3ad2
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.12-2
af3ad2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
af3ad2
af3ad2
* Thu Dec 20 2012 Kalev Lember <kalevlember@gmail.com> - 0.0.12-1
af3ad2
- Update to 0.0.12
af3ad2
af3ad2
* Tue Nov 20 2012 Richard Hughes <hughsient@gmail.com> - 0.0.11-1
af3ad2
- Update to 0.0.11
af3ad2
af3ad2
* Tue Sep 25 2012 Cosimo Cecchi <cosimoc@redhat.com> - 0.0.10.1-1
af3ad2
- Update to 0.0.10.1
af3ad2
af3ad2
* Tue Sep 18 2012 Kalev Lember <kalevlember@gmail.com> - 0.0.10-1
af3ad2
- Update to 0.0.10
af3ad2
af3ad2
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.9-2
af3ad2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
af3ad2
af3ad2
* Mon Jun 11 2012 Richard Hughes <hughsient@gmail.com> - 0.0.9-1
af3ad2
- Update to 0.0.9
af3ad2
af3ad2
* Wed Mar 28 2012 Richard Hughes <hughsient@gmail.com> - 0.0.8-1
af3ad2
- Update to 0.0.8
af3ad2
af3ad2
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.7-2
af3ad2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
af3ad2
af3ad2
* Tue Oct 18 2011 Matthias Clasen <mclasen@redhat.com> - 0.0.7-1
af3ad2
- Update to 0.0.7
af3ad2
af3ad2
* Fri Oct 07 2011 Matěj Cepl <mcepl@redhat.com> - 0.0.6-2
af3ad2
- Making the build EL-6 compatible.
af3ad2
af3ad2
* Wed Jul 6 2011 Matthias Clasen <mclasen@redhat.com> - 0.0.6-1
af3ad2
- Update to 0.0.6
af3ad2
af3ad2
* Mon Feb 21 2011 Cosimo Cecchi <cosimoc@redhat.com> - 0.0.3-1
af3ad2
- Update to 0.0.3
af3ad2
af3ad2
* Fri Feb 18 2011 Cosimo Cecchi <cosimoc@redhat.com> - 0.0.1-4
af3ad2
- Include upstream patch for the fontconfig snippet
af3ad2
af3ad2
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.1-3
af3ad2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
af3ad2
af3ad2
* Tue Feb  8 2011 Stephen Smoogen <ssmoogen@redhat.com> - 0.0.1-2
af3ad2
- Fixed to meet review standards
af3ad2
af3ad2
* Tue Feb  8 2011 Cosimo Cecchi <cosimoc@redhat.com> - 0.0.1-1
af3ad2
- Initial packaging of abattis-cantarell-fonts
af3ad2