dejavu-fonts/dejavu-fonts.spec

180 lines
6.0 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-02-21 09:25:06 +00:00
Release: 4%{?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}
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}
}
%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
%global fontsummary3 DejaVu Sans Mono, a monospace sans-serif font family
%global fonts3 DejaVuSansMono*.ttf
%global fontconfs3 fontconfig/20*-dejavu-sans-mono.conf
%global fontconfngs3 %{SOURCE13}
%global fontdescription3 %{expand:
%{common_description}
This package consists of the DejaVu sans-serif monospace font faces, in their
2020-02-21 09:25:06 +00:00
unabridged version.}
%global fontfamily4 DejaVu LGC Sans
%global fontsummary4 DejaVu LGC Sans, a variable-width sans-serif font family, reduced to the Latin-Greek-Cyrillic subset
%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-02-21 09:25:06 +00:00
unicode coverage restricted to Latin, Greek and Cyrillic.}
%global fontfamily5 DejaVu LGC Serif
%global fontsummary5 DejaVu LGC Serif, a variable-width serif font family, reduced to the Latin-Greek-Cyrillic subset
%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-02-21 09:25:06 +00:00
unicode coverage restricted to Latin, Greek and Cyrillic.}
%global fontfamily6 DejaVu LGC Sans Mono
%global fontsummary6 DejaVu LGC Sans Mono, a variable-width monospace font family, reduced to the Latin-Greek-Cyrillic subset
%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}
This package consists of the DejaVu sans-serif monospace font faces, with
2020-02-21 09:25:06 +00:00
unicode coverage restricted to Latin, Greek and Cyrillic.}
Source0: %{forgesource}
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:
This metapackage installs all the font packages, generated from the %{name}
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
Summary: %{name} optional documentation files
BuildArch: noarch
%description doc
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
%license LICENSE
%doc *.txt.xz
2008-12-17 20:11:02 +00:00
%changelog
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