462460
# SPDX-License-Identifier: MIT
462460
BuildArch: noarch
462460
462460
BuildRequires: fontforge
462460
BuildRequires: perl-interpreter
462460
BuildRequires: perl(Font::TTF)
462460
BuildRequires: unicode-ucd
462460
BuildRequires: make
462460
462460
%global forgeurl    https://github.com/dejavu-fonts/dejavu-fonts
462460
Version: 2.37
462460
%global tag         %{lua:t=string.gsub(rpm.expand("version %{version}"), "[%p%s]+", "_");print(t)}
462460
%forgemeta
462460
462460
%global source_name dejavu-fonts
462460
462460
Release: 18%{?dist}
462460
# original bitstream glyphs are Bitstream Vera
462460
# glyphs modifications by dejavu project are Public Domain
462460
# glyphs imported from Arev fonts are under BitStream Vera compatible license
462460
License: Bitstream Vera and Public Domain
462460
URL:     https://dejavu-fonts.github.io/
462460
462460
%global common_description %{expand:
462460
The DejaVu font set is based on the “Bitstream Vera” fonts, release 1.10. Its
462460
purpose is to provide a wider range of characters, while maintaining the
462460
original style, using an open collaborative development process.}
462460
462460
%global foundry           DejaVu
462460
%global fontlicenses      LICENSE
462460
%global fontdocs          AUTHORS BUGS NEWS README.md
462460
462460
%global fontfamily1       DejaVu Sans
462460
%global fontsummary1      DejaVu Sans, a variable-width sans-serif font family
462460
%global fontpkgheader1    %{expand:
462460
Obsoletes: dejavu-fonts-common < %{version}-%{release}
462460
Obsoletes: compat-f32-dejavu-sans-fonts
462460
Suggests:  font(dejavusansmono)
462460
}
462460
%global fonts1            DejaVuSans.ttf DejaVuSans-*.ttf DejaVuSansCondensed*.ttf
462460
%global fontconfs1        fontconfig/20*-dejavu-sans.conf
462460
%global fontconfngs1      %{SOURCE11}
462460
%global fontdescription1  %{expand:
462460
%{common_description}
462460
462460
This package consists of the DejaVu sans-serif variable-width font faces, in
462460
their unabridged version.
462460
}
462460
462460
%global fontfamily2       DejaVu Serif
462460
%global fontsummary2      DejaVu Serif, a variable-width serif font family
462460
%global fontpkgheader2    %{expand:
462460
Obsoletes: dejavu-math-tex-gyre-fonts < %{version}-%{release}
462460
Obsoletes: compat-f32-dejavu-serif-fonts
462460
}
462460
%global fonts2            DejaVuSerif.ttf DejaVuSerif-*.ttf DejaVuSerifCondensed*.ttf DejaVuMathTeXGyre.ttf
462460
%global fontconfs2        fontconfig/20*-dejavu-serif.conf
462460
%global fontconfngs2      %{SOURCE12}
462460
%global fontdescription2  %{expand:
462460
%{common_description}
462460
462460
This package consists of the DejaVu serif variable-width font faces, in their
462460
unabridged version.
462460
462460
It includes the Mathematics extension, that was contributed to the project by
462460
B. Jackowski, P. Strzelczyk and P. Pianowski, on behalf of TeX user groups.}
462460
462460
%global fontfamily3       DejaVu Sans Mono
462460
%global fontsummary3      DejaVu Sans Mono, a mono-space sans-serif font family
462460
%global fontpkgheader3    %{expand:
462460
Obsoletes: compat-f32-dejavu-sans-mono-fonts
462460
}
462460
%global fonts3            DejaVuSansMono*.ttf
462460
%global fontconfs3        fontconfig/20*-dejavu-sans-mono.conf
462460
%global fontconfngs3      %{SOURCE13}
462460
%global fontdescription3  %{expand:
462460
%{common_description}
462460
462460
This package consists of the DejaVu sans-serif mono-space font faces, in their
462460
unabridged version.}
462460
462460
%global fontfamily4       DejaVu LGC Sans
462460
%global fontsummary4      A variable-width Latin-Greek-Cyrillic sans-serif font family
462460
%global fontpkgheader4    %{expand:
462460
Suggests:  font(dejavusans)
462460
}
462460
%global fonts4            DejaVuLGCSans.ttf DejaVuLGCSans-*.ttf DejaVuLGCSansCondensed*.ttf
462460
%global fontconfs4        fontconfig/20*-dejavu-lgc-sans.conf
462460
%global fontconfngs4      %{SOURCE14}
462460
%global fontdescription4  %{expand:
462460
%{common_description}
462460
462460
This package consists of the DejaVu sans-serif variable-width font faces, with
462460
Unicode coverage restricted to Latin, Greek and Cyrillic.}
462460
462460
%global fontfamily5       DejaVu LGC Serif
462460
%global fontsummary5      A variable-width Latin-Greek-Cyrillic serif font family
462460
%global fontpkgheader5    %{expand:
462460
Suggests:  font(dejavuserif)
462460
}
462460
%global fonts5            DejaVuLGCSerif.ttf DejaVuLGCSerif-*.ttf DejaVuLGCSerifCondensed*.ttf
462460
%global fontconfs5        fontconfig/20*-dejavu-lgc-serif.conf
462460
%global fontconfngs5      %{SOURCE15}
462460
%global fontdescription5  %{expand:
462460
%{common_description}
462460
462460
This package consists of the DejaVu serif variable-width font faces, with
462460
Unicode coverage restricted to Latin, Greek and Cyrillic.}
462460
462460
%global fontfamily6       DejaVu LGC Sans Mono
462460
%global fontsummary6      A variable-width Latin-Greek-Cyrillic mono-space font family
462460
%global fontpkgheader6    %{expand:
462460
Suggests:  font(dejavusansmono)
462460
}
462460
%global fonts6            DejaVuLGCSansMono*.ttf
462460
%global fontconfs6        fontconfig/20*-dejavu-lgc-sans-mono.conf
462460
%global fontconfngs6      %{SOURCE16}
462460
%global fontdescription6  %{expand:
462460
%{common_description}
462460
462460
This package consists of the DejaVu sans-serif mono-space font faces, with
462460
Unicode coverage restricted to Latin, Greek and Cyrillic.}
462460
462460
Source0:  %{forgesource}
462460
Source11: 57-%{fontpkgname1}.xml
462460
Source12: 57-%{fontpkgname2}.xml
462460
Source13: 57-%{fontpkgname3}.xml
462460
Source14: 58-%{fontpkgname4}.xml
462460
Source15: 58-%{fontpkgname5}.xml
462460
Source16: 58-%{fontpkgname6}.xml
462460
Patch0:   %{source_name}-urn-dtd.patch
462460
462460
Name:     dejavu-fonts
462460
Summary:  The DejaVu font families
462460
%description
462460
%wordwrap -v common_description
462460
462460
%fontpkg -a
462460
462460
%fontmetapkg -z 1,2,3
462460
462460
%global lgcmetasummary All the font packages, generated from %{source_name}, Latin-Greek-Cyrillic subset
462460
%global lgcmetadescription %{expand:
462460
This meta-package installs all the font packages, generated from the %{source_name}
462460
source package, in a version restricted to coverage of Latin, Greek and
462460
Cyrillic.
462460
}
462460
462460
%fontmetapkg -n dejavu-lgc-fonts-all -s lgcmetasummary -d lgcmetadescription -z 4,5,6
462460
462460
%package   doc
462460
Summary:   Optional documentation files of %{source_name}
462460
BuildArch: noarch
462460
%description doc
462460
This package provides optional documentation files shipped with
462460
%{source_name}.
462460
462460
%prep
462460
%forgesetup
462460
%patch0 -p1
462460
462460
%build
462460
make %{?_smp_mflags} VERSION=%{version} FC-LANG="" \
462460
     BLOCKS=/usr/share/unicode/ucd/Blocks.txt \
462460
     UNICODEDATA=/usr/share/unicode/ucd/UnicodeData.txt \
462460
     BUILDDIR=.
462460
xz -9 *.txt
462460
%fontbuild -a
462460
462460
%install
462460
%fontinstall -a
462460
462460
%check
462460
make check
462460
%fontcheck -a
462460
462460
%fontfiles -a
462460
462460
%files doc
462460
%defattr(644, root, root, 0755)
462460
%license LICENSE
462460
%doc *.txt.xz
462460
462460
%changelog
462460
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 2.37-18.gitversion_2_37
462460
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
462460
  Related: rhbz#1991688
462460
462460
* Thu Apr 15 2021 Mohan Boddu <mboddu@redhat.com> - 2.37-17.gitversion_2_37
462460
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
462460
462460
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.37-16
462460
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
462460
462460
* Fri Sep 04 2020 Parag Nemade <pnemade AT redhat DOT com>
462460
- 2.37-15
462460
- Fix this spec file to build for F33+
462460
462460
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org>
462460
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
462460
462460
* Mon Apr 27 2020 Nicolas Mailhot <nim@fedoraproject.org>
462460
- 2.37-13
462460
🐞 Workaround Fedora problems created by rpm commit 93604e2
462460
462460
* Thu Apr 02 2020 Nicolas Mailhot <nim@fedoraproject.org>
462460
- 2.37-12
462460
👻 Rebuild with fonts-rpm-macros 2.0.4 to make sure fontconfig files are valid
462460
462460
* Mon Mar 09 2020 Nicolas Mailhot <nim@fedoraproject.org>
462460
- 2.37-7
462460
✅ Remove F32 compatibility packages
462460
462460
* Mon Mar 02 2020 Nicolas Mailhot <nim@fedoraproject.org>
462460
- 2.37-6
462460
✅ Lint, lint, lint and lint again
462460
462460
* Sat Feb 22 2020 Nicolas Mailhot <nim@fedoraproject.org>
462460
- 2.37-5
462460
✅ Rebuild with fonts-rpm-macros 2.0.2
462460
462460
* Sat Feb 15 2020 Nicolas Mailhot <nim@fedoraproject.org>
462460
- 2.27-4
462460
✅ Convert to fonts-rpm-macros use
462460
✅ Merge math extension into serif
462460
462460
* Sat Feb 19 2005 Nicolas Mailhot <nim@fedoraproject.org>
462460
- 1.7-1
462460
✅ initial build – using vera as template