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