Blob Blame History Raw
# Generated by go2rpm
%bcond_without check

# This package does not create any elf file
%global debug_package %{nil}

# https://github.com/golang/image
%global goipath         golang.org/x/image
%global forgeurl        https://github.com/golang/image
%global commit          35266b937fa69456d24ed72a04d75eb6857f7d52

%gometa

%global foundry           Google
%global fontlicense       BSD
%global fontlicenses      font/gofont/ttfs/README

%global fontfamily1       Go
%global fontsummary1      A humanistic technical sans-serif font family
%global fontpkgheader1    %{expand:
Suggests:  font(gomono)
}
%global fonts1            font/gofont/ttfs/Go-*ttf
%global fontsex1          %{fonts2} %{fonts3}
%global fontconfngs1      %{SOURCE11}
%global fontdescription1  %{expand:
The Go sans-serif font family is “humanist” rather than “grotesque” in style.

The shapes of modern grotesque fonts like Helvetica are sculpted, with smooth,
assimilated forms. Humanist sans-serifs are derived from Humanist handwriting
and early fonts of the Italian Renaissance and still show subtle traces of
pen-written calligraphy. There is some evidence that humanist fonts are more
legible than grotesque fonts.

Texts set in Go occupy nearly the same space as texts in Helvetica or Arial,
but Go has a different look and texture because of its humanist style. Some Go
letters with DIN 1450 legibility features are wider than corresponding letters
in Helvetica or Arial, so some texts set in Go may take slightly more space.}

%global fontfamily2       Go Mono
%global fontsummary2      A humanistic slab-serif mono-space programming font family
%global fontpkgheader2    %{expand:
}
%global fonts2            font/gofont/ttfs/Go-Mono*ttf
%global fontconfngs2      %{SOURCE12}
%global fontdescription2  %{expand:
Go Mono has slab-shaped serifs, giving it a sturdy appearance.

The underlying letter shapes of Go Mono are, like the Go font family, derived
from humanist handwriting, but the mono-spacing and slab serifs tend to obscure
the historical and stylistic connections.

Go Mono has the same x-height as Go, 53% of the body size. Go Mono looks almost
18% bigger than Courier, which has an x-height 45% of body size. Yet Go Mono
has the same width as Courier, so the bigger look is gained with no loss
of economy in characters per line.

Go source code looks particularly good when displayed in Go Mono, with
punctuation characters easily distinguishable and operators lined up and placed
consistently.}


%global fontfamily3       Go SmallCaps
%global fontsummary3      The small capitals variant of the Go font family
%global fontpkgheader     %{expand:
Enhances: font(go)
}
%global fonts3            font/gofont/ttfs/Go-Smallcaps*ttf
%global fontdescription3  %{expand:
%{fontdescription1}

This variant of the Go font family provides small capitals, since they are not
exposed via standard OpenType features in the main font family.}

%global common_description %{expand:
This package holds supplementary Go image libraries.}

%global golicenses      LICENSE PATENTS
%global godocs          example AUTHORS CONTRIBUTING.md CONTRIBUTORS README.md

Name:           %{goname}
Version:        0
Release:        0.23%{?dist}
Summary:        Go supplementary image libraries

# Upstream license specification: BSD-3-Clause
License:        BSD
URL:            %{gourl}
Source0:        %{gosource}

Source11: 58-%{fontpkgname1}.xml
Source12: 58-%{fontpkgname2}.xml

BuildRequires:  golang(golang.org/x/text/encoding/charmap)

%description
%{common_description}

%gopkg
%fontpkg -a
%fontmetapkg

%prep
%goprep

%build
%fontbuild -a

%install
%gopkginstall
%fontinstall -a

%check
%if %{with check}
%gocheck
%endif
%fontcheck -a

%gopkgfiles
%fontfiles -a

%changelog
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.23
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild

* Wed Dec 23 01:02:17 CET 2020 Robert-André Mauchin <zebob.m@gmail.com> - 0-0.22.20201223git35266b9
- Bump to commit 35266b937fa69456d24ed72a04d75eb6857f7d52

* Fri Aug 07 19:21:26 CEST 2020 Robert-André Mauchin <zebob.m@gmail.com> - 0-0.21.20200807git972c09e
- Bump to commit 972c09e46d762a13c1a3c48b1fa9b87e2c537805

* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.20
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild

* Thu Apr 02 2020 Nicolas Mailhot <nim@fedoraproject.org> - 0-0.19.20200218git58c2397
- Actually rebuild with fonts-rpm-macros 2.0.4 to make sure fontconfig files are
  valid

* Thu Apr 02 2020 Nicolas Mailhot <nim@fedoraproject.org> - 0-0.18.20200218git58c2397
- Actually rebuild with fonts-rpm-macros 2.0.4 to make sure fontconfig files are
  valid

* Thu Apr 02 2020 Nicolas Mailhot <nim@fedoraproject.org> - 0-0.17.20200218git58c2397
- Rebuild with fonts-rpm-macros 2.0.4 to make sure fontconfig files are valid

* Mon Mar 02 2020 Nicolas Mailhot <nim@fedoraproject.org> - 0-0.16.20200218git58c2397
- Lint, lint, lint and lint again

* Sat Feb 22 2020 Nicolas Mailhot <nim@fedoraproject.org> - 0-0.15.20200218git58c2397
- Rebuild with fonts-rpm-macros 2.0.2
- Improve fontconfig setup some more

* Fri Feb 21 2020 Nicolas Mailhot <nim@fedoraproject.org> - 0-0.14.20200218git58c2397
- Provide Go fonts to Fedora users

* Tue Feb 18 2020 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0-0.12.20200218git58c2397
- Update to 58c23975cae11f062d4b3b0c143fe248faac195d

* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.11.20190623git59b11be
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild

* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.10.20190623git59b11be
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild

* Fri Jul 05 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0-0.9.20190623git59b11be
- Add Obsoletes for old name

* Thu Apr 25 00:50:46 CEST 2019 Robert-André Mauchin <zebob.m@gmail.com> - 0-0.8.20190623git59b11be
- Bump to commit 59b11bec70c7cc648cf3cc54683683b76d5b5e6b

* Wed Apr 10 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0-0.7.20190410git3fc05d4
- Update to latest commit

* Wed Apr 10 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0-0.6.20170821git426cfd8
- Re-create using new Go macro templates

* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.5.20170514.git426cfd8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild

* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.4.20170514.git426cfd8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild

* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.3.20170514.git426cfd8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild

* Tue Aug 15 2017 Athos Ribeiro <athoscr@fedoraproject.org> - 0-0.2.20170514.git426cfd8
- Do not run vector tests in ppcle and s390x due to precision issues

* Mon Aug 07 2017 Athos Ribeiro <athoscr@fedoraproject.org> - 0-0.1.20170514.git426cfd8
- First package for Fedora