|
1 |
| ---- charliecloud.spec 2024-02-09 17:33:04.983698614 -0700 |
2 |
| -+++ upstream.spec 2024-02-09 14:32:41.000000000 -0700 |
3 |
| -@@ -10,16 +10,14 @@ |
| 1 | +--- packaging/fedora/charliecloud.spec 2024-02-12 11:46:23.034342881 -0700 |
| 2 | ++++ packaging/fedora/upstream.spec 2024-02-09 14:32:41.000000000 -0700 |
| 3 | +@@ -10,17 +10,15 @@ |
4 | 4 | %{?el7:%global __python %__python3}
|
5 | 5 |
|
6 | 6 | Name: charliecloud
|
|
16 | 16 | -%if 0%{?el7}
|
17 | 17 | Patch0: el7-pkgdir.patch
|
18 | 18 | -%endif
|
19 |
| - %if 0%{?fedora} > 36 || 0%{?rhel} > 8 |
| 19 | +-%if 0%{!?el7} && 0%{!?el8} |
| 20 | ++%if 0%{?fedora} > 36 || 0%{?rhel} > 8 |
20 | 21 | Requires: fuse3 squashfuse
|
21 | 22 | BuildRequires: fuse3-libs fuse3-devel squashfuse-devel
|
22 |
| -@@ -45,13 +43,11 @@ |
| 23 | + Patch1: no-squashfuse-rpath.patch |
| 24 | +@@ -45,14 +43,11 @@ |
23 | 25 | Requires: %{name}
|
24 | 26 | Requires: python3
|
25 | 27 | Requires: python%{python3_pkgversion}-requests
|
26 |
| --# For some reason this expressio is not respected in centos_7ch; thus, we |
27 |
| --# just specify any git. |
28 |
| - %if 1%{?el7} |
| 28 | +- |
| 29 | +-%if 0%{?el7} |
29 | 30 | -Requires: git
|
30 |
| --#Requires: git >= 2.28.1 |
31 |
| -+Requires: git >= 2.28.1 |
| 31 | +-%else |
| 32 | ++%if 1%{?el7} |
| 33 | + Requires: git >= 2.28.1 |
32 | 34 | %endif
|
| 35 | +- |
33 | 36 | Provides: bundled(python%{python3_pkgversion}-lark-parser) = 1.1.9
|
34 | 37 | +%{?el7:BuildArch: noarch}
|
35 | 38 |
|
36 | 39 | %description builder
|
37 | 40 | This package provides ch-image, Charliecloud's completely unprivileged container
|
38 |
| -@@ -69,16 +65,14 @@ |
39 |
| - %description doc |
40 |
| - Html and man page documentation for %{name}. |
41 |
| - |
42 |
| --%if 1%{?el7} |
| 41 | +@@ -73,7 +68,7 @@ |
43 | 42 | %package test
|
44 | 43 | Summary: Charliecloud test suite
|
45 | 44 | License: ASL 2.0
|
|
48 | 47 | Obsoletes: %{name}-test < %{version}-%{release}
|
49 | 48 |
|
50 | 49 | %description test
|
51 |
| - Test fixtures for %{name}. |
52 |
| --%endif |
53 |
| - |
54 |
| - %prep |
55 |
| - %setup -q |
56 |
| -@@ -87,7 +81,7 @@ |
| 50 | +@@ -86,7 +81,7 @@ |
57 | 51 | %patch0 -p1
|
58 | 52 | %endif
|
59 | 53 |
|
60 |
| --%if 0%{?fedora} > 36 || 0%{?rhel} > 8 |
| 54 | +-%if 0%{!?el7} |
61 | 55 | +%if 0%{?fedora} > 36
|
62 | 56 | %patch 1 -p1
|
63 | 57 | %endif
|
64 | 58 |
|
65 |
| -@@ -98,7 +92,7 @@ |
| 59 | +@@ -94,16 +89,15 @@ |
| 60 | + # Use old inlining behavior, see: |
| 61 | + # https://github.com/hpc/charliecloud/issues/735 |
| 62 | + CFLAGS=${CFLAGS:-%optflags -fgnu89-inline}; export CFLAGS |
| 63 | +-# FIXME: use --disable test when https://github.com/hpc/charliecloud/issues/1836 |
| 64 | +-# is resolved. |
66 | 65 | %configure --docdir=%{_pkgdocdir} \
|
67 | 66 | --libdir=%{_prefix}/lib \
|
68 | 67 | --with-python=/usr/bin/python3 \
|
69 |
| --%if 0%{?fedora} > 34 || 0%{?rhel} > 7 |
70 | 68 | +%if 0%{?fedora} > 34 || 0%{?rhel} > 8
|
71 | 69 | --with-libsquashfusei=/usr \
|
72 |
| - %endif |
| 70 | ++%endif |
73 | 71 | %if 0%{?el7}
|
74 |
| -@@ -183,13 +177,225 @@ |
75 |
| - %{_pkgdocdir}/html |
| 72 | + --with-sphinx-build=%{_bindir}/sphinx-build-3.6 |
| 73 | + %else |
| 74 | +- --with-libsquashfusei=/usr \ |
| 75 | + --with-sphinx-build=%{_bindir}/sphinx-build |
| 76 | + %endif |
| 77 | + |
| 78 | +@@ -140,13 +134,6 @@ |
| 79 | + %{__rm} -f %{buildroot}%{_pkgdocdir}/LICENSE |
| 80 | + %{__rm} -f %{buildroot}%{_pkgdocdir}/README.rst |
| 81 | + |
| 82 | +-# FIXME: unnecessary after #1836 is resolved |
| 83 | +-%if 0%{?el7} |
| 84 | +-%{__rm} -f %{buildroot}%{_bindir}/ch-test |
| 85 | +-%{__rm} -rf %{buildroot}%{_libexecdir}/%{name} |
| 86 | +-%{__rm} -f %{buildroot}%{_mandir}/man1/ch-test.1* |
| 87 | +-%endif |
| 88 | +- |
| 89 | + %files |
| 90 | + %license LICENSE |
| 91 | + %doc README.rst %{?el7:README.EL7} |
| 92 | +@@ -191,13 +178,224 @@ |
76 | 93 | %{?el7:%exclude %{_pkgdocdir}/examples/*/__pycache__}
|
77 | 94 |
|
78 |
| --%if 1%{?el7} |
79 | 95 | %files test
|
| 96 | +-%if 0%{?el7} |
| 97 | +-%else |
80 | 98 | %{_bindir}/ch-test
|
81 | 99 | %{_libexecdir}/%{name}
|
82 | 100 | %{_mandir}/man1/ch-test.1*
|
|
0 commit comments