Skip to content
This repository was archived by the owner on May 27, 2025. It is now read-only.

Commit dd8a2b3

Browse files
committed
update with latest
1 parent 2bb46ef commit dd8a2b3

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

packaging/fedora/charliecloud.spec

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,9 @@ BuildRequires: python%{python3_pkgversion}-requests
4545
Requires: %{name}
4646
Requires: python3
4747
Requires: python%{python3_pkgversion}-requests
48-
49-
%if 0%{?el7}
50-
Requires: git
51-
%else
48+
%if 0%{!?el7}
5249
Requires: git >= 2.28.1
5350
%endif
54-
5551
Provides: 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
7470
Summary: Charliecloud test suite
7571
License: ASL 2.0
76-
Requires: %{name} %{name}-builder bats
72+
Requires: %{name} %{name}-builder
73+
%if 0%{!?el7}
74+
Requires: bats
75+
%endif
7776
Obsoletes: %{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

@@ -130,6 +130,13 @@ EOF
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.
134141
sphinxdir=%{python3_sitelib}/sphinx_rtd_theme/static
135142
ln -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

Comments
 (0)