Reduce macro indirection in the spec file
This commit is contained in:
parent
10b9115d81
commit
69d6241aa1
@ -1,4 +1,4 @@
|
||||
%global forgeurl https://gitlab.gnome.org/GNOME/%{name}/
|
||||
%global forgeurl https://gitlab.gnome.org/GNOME/gi-docgen
|
||||
%global tag %{version}
|
||||
|
||||
# Sphinx-generated HTML documentation is not suitable for packaging; see
|
||||
@ -45,7 +45,7 @@ Source0: %{forgesource}
|
||||
# This patch removes all references to WOFF/WOFF2 font files (which we still
|
||||
# must remove in %%prep) and ensures the CSS correctly references corresponding
|
||||
# local system fonts.
|
||||
Patch0: %{name}-2021.6-no-web-fonts.patch
|
||||
Patch0: gi-docgen-2021.6-no-web-fonts.patch
|
||||
|
||||
BuildArch: noarch
|
||||
|
||||
@ -70,7 +70,7 @@ BuildRequires: font(sourcecodepro)
|
||||
BuildRequires: font(sourcecodeprosemibold)
|
||||
|
||||
# Unbundling fonts:
|
||||
Requires: %{name}-fonts = %{version}-%{release}
|
||||
Requires: gi-docgen-fonts = %{version}-%{release}
|
||||
|
||||
# Trivial fork of https://github.com/jhawthorn/fzy.js (looks like it was
|
||||
# basically just wrapped in an IIFE). Given that modification, it’s not clear
|
||||
@ -117,17 +117,17 @@ Requires: font(sourcecodepro)
|
||||
Requires: font(sourcecodeprosemibold)
|
||||
|
||||
%description fonts
|
||||
Because web fonts from upstream are not bundled in the %{name} package,
|
||||
documentation packages generated with %{name} must depend on this metapackage
|
||||
Because web fonts from upstream are not bundled in the gi-docgen package,
|
||||
documentation packages generated with gi-docgen must depend on this metapackage
|
||||
to ensure the proper system fonts are present.
|
||||
|
||||
|
||||
%package doc
|
||||
Summary: Documentation for %{name}
|
||||
Summary: Documentation for gi-docgen
|
||||
License: (ASL 2.0 or GPLv3+) and CC0 and CC-BY
|
||||
|
||||
%description doc
|
||||
Documentation for %{name}.
|
||||
Documentation for gi-docgen.
|
||||
|
||||
|
||||
%generate_buildrequires
|
||||
@ -175,12 +175,12 @@ cp -rp examples '%{buildroot}%{_pkgdocdir}/'
|
||||
%files -f %{pyproject_files}
|
||||
%license LICENSES/*.txt
|
||||
|
||||
%{_bindir}/%{name}
|
||||
%{_mandir}/man1/%{name}.1*
|
||||
%{_bindir}/gi-docgen
|
||||
%{_mandir}/man1/gi-docgen.1*
|
||||
# Normally, this would go in a -devel package, but there is little point in
|
||||
# providing a -devel package for *just* the .pc file when there are no
|
||||
# libraries or headers.
|
||||
%{_datadir}/pkgconfig/%{name}.pc
|
||||
%{_datadir}/pkgconfig/gi-docgen.pc
|
||||
|
||||
|
||||
%files fonts
|
||||
|
Loading…
Reference in New Issue
Block a user