@@ -45,13 +45,9 @@ BuildRequires: python%{python3_pkgversion}-requests
4545Requires: %{name }
4646Requires: python3
4747Requires: python%{python3_pkgversion }-requests
48-
49- %if 0%{?el7 }
50- Requires: git
51- %else
48+ %if 0%{!?el7 }
5249Requires: git >= 2.28.1
5350%endif
54-
5551Provides: bundled(python%{python3_pkgversion }-lark-parser) = 1.1.9
5652
5753%description builder
@@ -73,7 +69,10 @@ Html and man page documentation for %{name}.
7369%package test
7470Summary: Charliecloud test suite
7571License: ASL 2.0
76- Requires: %{name } %{name }-builder bats
72+ Requires: %{name } %{name }-builder
73+ %if 0%{!?el7 }
74+ Requires: bats
75+ %endif
7776Obsoletes: %{name }-test < %{version }-%{release }
7877
7978%description test
@@ -86,7 +85,7 @@ Test fixtures for %{name}.
8685%patch0 -p1
8786%endif
8887
89- %if 0%{!?el7 }
88+ %if 0%{!?el7 } && 0%{!? el8 }
9089%patch 1 -p1
9190%endif
9291
@@ -99,11 +98,12 @@ CFLAGS=${CFLAGS:-%optflags -fgnu89-inline}; export CFLAGS
9998%configure --docdir=%{_pkgdocdir } \
10099 --libdir=%{_prefix }/lib \
101100 --with-python=/usr/bin/python3 \
102- --with-libsquashfusei=/usr \
101+ %if 0%{!?el7 } && 0%{!?el8 }
102+ --with-libsquashfuse=/usr \
103+ %endif
103104%if 0%{?el7 }
104105 --with-sphinx-build=%{_bindir }/sphinx-build-3.6
105106%else
106- --with-libsquashfusei=/usr \
107107 --with-sphinx-build=%{_bindir }/sphinx-build
108108%endif
109109
130130%{__rm} -rf %{buildroot }%{_pkgdocdir }/html/_static/fonts
131131%{__rm} -rf %{buildroot }%{_pkgdocdir }/html/_static/js
132132
133+ # Remove el7 test bits; unnecessary after #1836 is resolved.
134+ %if 0%{?el7 }
135+ %{__rm} -f %{buildroot }%{_bindir }/ch-test
136+ %{__rm} -rf %{buildroot }%{_libexecdir }/%{name }
137+ %{__rm} -f %{buildroot }%{_mandir }/man1/ch-test.1*
138+ %endif
139+
133140# Use Fedora package sphinx bits.
134141sphinxdir= %{python3_sitelib }/sphinx_rtd_theme/static
135142ln -s "${sphinxdir}/css" %{buildroot }%{_pkgdocdir }/html/_static/css
@@ -140,13 +147,6 @@ ln -s "${sphinxdir}/js" %{buildroot}%{_pkgdocdir}/html/_static/js
140147%{__rm} -f %{buildroot }%{_pkgdocdir }/LICENSE
141148%{__rm} -f %{buildroot }%{_pkgdocdir }/README.rst
142149
143- # FIXME: unnecessary after #1836 is resolved
144- %if 0%{?el7 }
145- %{__rm} -f %{buildroot }%{_bindir }/ch-test
146- %{__rm} -rf %{buildroot }%{_libexecdir }/%{name }
147- %{__rm} -f %{buildroot }%{_mandir }/man1/ch-test.1*
148- %endif
149-
150150%files
151151%license LICENSE
152152%doc README.rst %{? el7:README.EL7}
0 commit comments