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