dejavu-fonts/dejavu-fonts.spec

199 lines
6.4 KiB
RPMSpec
Raw Normal View History

2020-02-21 09:25:06 +00:00
# SPDX-License-Identifier: MIT
BuildArch: noarch
2020-02-21 09:25:06 +00:00
BuildRequires: fontforge
BuildRequires: perl(Font::TTF)
BuildRequires: unicode-ucd
2020-02-21 09:25:06 +00:00
%global forgeurl https://github.com/dejavu-fonts/dejavu-fonts
Version: 2.37
2020-02-21 09:25:06 +00:00
%global tag %{lua:t=string.gsub(rpm.expand("version %{version}"), "[%p%s]+", "_");print(t)}
%forgemeta
2007-05-31 18:32:34 +00:00
2020-03-09 17:50:54 +00:00
Release: 7%{?dist}
# original bitstream glyphs are Bitstream Vera
# glyphs modifications by dejavu project are Public Domain
# glyphs imported from Arev fonts are under BitStream Vera compatible license
2020-02-21 09:25:06 +00:00
License: Bitstream Vera and Public Domain
URL: https://dejavu-fonts.github.io/
%global common_description %{expand:
The DejaVu font set is based on the “Bitstream Vera” fonts, release 1.10. Its
purpose is to provide a wider range of characters, while maintaining the
original style, using an open collaborative development process.}
%global foundry DejaVu
%global fontlicenses LICENSE
%global fontdocs AUTHORS BUGS NEWS README.md
%global fontfamily1 DejaVu Sans
%global fontsummary1 DejaVu Sans, a variable-width sans-serif font family
%global fontpkgheader1 %{expand:
Obsoletes: dejavu-fonts-common < %{version}-%{release}
2020-03-09 17:50:54 +00:00
Obsoletes: compat-f32-dejavu-sans-fonts
2020-02-21 09:25:06 +00:00
Suggests: font(dejavusansmono)
}
%global fonts1 DejaVuSans.ttf DejaVuSans-*.ttf DejaVuSansCondensed*.ttf
%global fontconfs1 fontconfig/20*-dejavu-sans.conf
%global fontconfngs1 %{SOURCE11}
%global fontdescription1 %{expand:
%{common_description}
2007-05-13 21:25:04 +00:00
This package consists of the DejaVu sans-serif variable-width font faces, in
their unabridged version.
2020-02-21 09:25:06 +00:00
}
%global fontfamily2 DejaVu Serif
%global fontsummary2 DejaVu Serif, a variable-width serif font family
%global fontpkgheader2 %{expand:
Obsoletes: dejavu-math-tex-gyre-fonts < %{version}-%{release}
2020-03-09 17:50:54 +00:00
Obsoletes: compat-f32-dejavu-serif-fonts
2020-02-21 09:25:06 +00:00
}
%global fonts2 DejaVuSerif.ttf DejaVuSerif-*.ttf DejaVuSerifCondensed*.ttf DejaVuMathTeXGyre.ttf
%global fontconfs2 fontconfig/20*-dejavu-serif.conf
%global fontconfngs2 %{SOURCE12}
%global fontdescription2 %{expand:
%{common_description}
This package consists of the DejaVu serif variable-width font faces, in their
unabridged version.
2007-05-13 21:25:04 +00:00
2020-02-21 09:25:06 +00:00
It includes the Mathematics extension, that was contributed to the project by
B. Jackowski, P. Strzelczyk and P. Pianowski, on behalf of TeX user groups.}
2020-02-21 09:25:06 +00:00
%global fontfamily3 DejaVu Sans Mono
2020-03-02 07:39:43 +00:00
%global fontsummary3 DejaVu Sans Mono, a mono-space sans-serif font family
2020-03-09 17:50:54 +00:00
%global fontpkgheader3 %{expand:
Obsoletes: compat-f32-dejavu-sans-mono-fonts
}
2020-02-21 09:25:06 +00:00
%global fonts3 DejaVuSansMono*.ttf
%global fontconfs3 fontconfig/20*-dejavu-sans-mono.conf
%global fontconfngs3 %{SOURCE13}
%global fontdescription3 %{expand:
%{common_description}
2020-03-02 07:39:43 +00:00
This package consists of the DejaVu sans-serif mono-space font faces, in their
2020-02-21 09:25:06 +00:00
unabridged version.}
%global fontfamily4 DejaVu LGC Sans
2020-03-02 07:39:43 +00:00
%global fontsummary4 A variable-width Latin-Greek-Cyrillic sans-serif font family
2020-02-21 09:25:06 +00:00
%global fontpkgheader4 %{expand:
Suggests: font(dejavusans)
}
%global fonts4 DejaVuLGCSans.ttf DejaVuLGCSans-*.ttf DejaVuLGCSansCondensed*.ttf
%global fontconfs4 fontconfig/20*-dejavu-lgc-sans.conf
%global fontconfngs4 %{SOURCE14}
%global fontdescription4 %{expand:
%{common_description}
This package consists of the DejaVu sans-serif variable-width font faces, with
2020-03-02 07:39:43 +00:00
Unicode coverage restricted to Latin, Greek and Cyrillic.}
2020-02-21 09:25:06 +00:00
%global fontfamily5 DejaVu LGC Serif
2020-03-02 07:39:43 +00:00
%global fontsummary5 A variable-width Latin-Greek-Cyrillic serif font family
2020-02-21 09:25:06 +00:00
%global fontpkgheader5 %{expand:
Suggests: font(dejavuserif)
}
%global fonts5 DejaVuLGCSerif.ttf DejaVuLGCSerif-*.ttf DejaVuLGCSerifCondensed*.ttf
%global fontconfs5 fontconfig/20*-dejavu-lgc-serif.conf
%global fontconfngs5 %{SOURCE15}
%global fontdescription5 %{expand:
%{common_description}
This package consists of the DejaVu serif variable-width font faces, with
2020-03-02 07:39:43 +00:00
Unicode coverage restricted to Latin, Greek and Cyrillic.}
2020-02-21 09:25:06 +00:00
%global fontfamily6 DejaVu LGC Sans Mono
2020-03-02 07:39:43 +00:00
%global fontsummary6 A variable-width Latin-Greek-Cyrillic mono-space font family
2020-02-21 09:25:06 +00:00
%global fontpkgheader6 %{expand:
Suggests: font(dejavusansmono)
}
%global fonts6 DejaVuLGCSansMono*.ttf
%global fontconfs6 fontconfig/20*-dejavu-lgc-sans-mono.conf
%global fontconfngs6 %{SOURCE16}
%global fontdescription6 %{expand:
%{common_description}
2020-03-02 07:39:43 +00:00
This package consists of the DejaVu sans-serif mono-space font faces, with
Unicode coverage restricted to Latin, Greek and Cyrillic.}
2020-02-21 09:25:06 +00:00
2020-03-09 17:50:54 +00:00
Source0: %{forgesource}
2020-02-21 09:25:06 +00:00
Source11: 57-%{fontpkgname1}.xml
Source12: 57-%{fontpkgname2}.xml
Source13: 57-%{fontpkgname3}.xml
Source14: 58-%{fontpkgname4}.xml
Source15: 58-%{fontpkgname5}.xml
Source16: 58-%{fontpkgname6}.xml
Name: dejavu-fonts
Summary: The DejaVu font families
%description
%wordwrap -v common_description
2020-02-21 09:25:06 +00:00
%fontpkg -a
2020-02-21 09:25:06 +00:00
%fontmetapkg -z 1,2,3
2020-02-21 09:25:06 +00:00
%global lgcmetasummary All the font packages, generated from %{name}, Latin-Greek-Cyrillic subset
%global lgcmetadescription %{expand:
2020-03-02 07:39:43 +00:00
This meta-package installs all the font packages, generated from the %{name}
2020-02-21 09:25:06 +00:00
source package, in a version restricted to coverage of Latin, Greek and
Cyrillic.
}
2020-02-21 09:25:06 +00:00
%fontmetapkg -n dejavu-lgc-fonts-all -s lgcmetasummary -d lgcmetadescription -z 4,5,6
2020-02-21 09:25:06 +00:00
%package doc
2020-02-24 21:09:46 +00:00
Summary: Optional documentation files of %{name}
2020-02-21 09:25:06 +00:00
BuildArch: noarch
%description doc
2020-02-24 21:09:46 +00:00
This package provides optional documentation files shipped with
%{name}.
%prep
2020-02-21 09:25:06 +00:00
%forgesetup
%build
make %{?_smp_mflags} VERSION=%{version} FC-LANG="" \
2020-02-21 09:25:06 +00:00
BLOCKS=/usr/share/unicode/ucd/Blocks.txt \
UNICODEDATA=/usr/share/unicode/ucd/UnicodeData.txt \
BUILDDIR=.
xz -9 *.txt
%fontbuild -a
2020-02-21 09:25:06 +00:00
%install
%fontinstall -a
%check
make check
2020-02-21 09:25:06 +00:00
%fontcheck -a
2020-02-21 09:25:06 +00:00
%fontfiles -a
2020-02-21 09:25:06 +00:00
%files doc
2020-02-24 21:09:46 +00:00
%defattr(644, root, root, 0755)
2020-02-21 09:25:06 +00:00
%license LICENSE
%doc *.txt.xz
2008-12-17 20:11:02 +00:00
%changelog
2020-03-09 17:58:20 +00:00
* Mon Mar 09 2020 Nicolas Mailhot <nim@fedoraproject.org>
- 2.37-7
Remove F32 compatibility packages
2020-03-09 17:50:54 +00:00
2020-03-02 07:39:43 +00:00
* Mon Mar 02 2020 Nicolas Mailhot <nim@fedoraproject.org>
- 2.37-6
Lint, lint, lint and lint again
2020-02-22 20:39:49 +00:00
* Sat Feb 22 2020 Nicolas Mailhot <nim@fedoraproject.org>
- 2.37-5
Rebuild with fonts-rpm-macros 2.0.2
2020-02-21 09:25:06 +00:00
* Sat Feb 15 2020 Nicolas Mailhot <nim@fedoraproject.org>
2008-12-17 20:11:02 +00:00
- 2.27-4
2020-02-21 09:25:06 +00:00
Convert to fonts-rpm-macros use
Merge math extension into serif
* Sat Feb 19 2005 Nicolas Mailhot <nim@fedoraproject.org>
- 1.7-1
initial build using vera as template