@@ -10,7 +10,7 @@ Summary: The Frontier distribution of the Squid proxy caching server
10
10
Name: frontier-squid%{?squidsuffix }
11
11
Version: 5.9
12
12
%define release4source 3
13
- %define releasenum 2 %{?dist }
13
+ %define releasenum 3 %{?dist }
14
14
Release: %{?release4source }.%{?releasenum }
15
15
Epoch: 11
16
16
License: GPL
@@ -70,7 +70,7 @@ BuildRequires: redhat-rpm-config
70
70
BuildRequires: libffi-devel
71
71
BuildRequires: cargo
72
72
73
- ExclusiveArch: x86_64
73
+ # ExclusiveArch: x86_64
74
74
75
75
BuildRoot: %{_tmppath }/%{name }-%{version }-%{release }-root-%(%{__id_u} -n)
76
76
@@ -102,6 +102,11 @@ tar zxf %{SOURCE1}
102
102
# starts out in the shoal-downloads directory
103
103
104
104
set -ex
105
+
106
+
107
+ # Shoal-agent has an x86_64 exclusive python wheel dependency
108
+ %ifarch x86_64
109
+
105
110
PYVERS= "python3$(python3 -V|cut -d. -f2)"
106
111
PYDIR= $PWD/$PYVERS/.local
107
112
PATH= $PYDIR/bin:$PATH
@@ -151,6 +156,8 @@ ln -s %{etcdirsquid}/shoal_agent.conf dist/shoal-agent/
151
156
152
157
cd ..
153
158
159
+ %endif
160
+
154
161
# unpack squid code and patch it
155
162
cd ../%{frontiersquidtarball }/squid
156
163
make INSTALL_DIR= $RPM_BUILD_ROOT PORT_ROOT= $PWD/.. unpack .common_patch
@@ -304,6 +311,9 @@ rm -f ${RPM_BUILD_ROOT}$CRON_DIR/crontab.dat
304
311
305
312
# Finally, install the shoal files
306
313
popd
314
+
315
+ # Shoal-agent has an x86_64 exclusive python wheel dependency
316
+ %ifarch x86_64
307
317
cd ../shoal-%{shoalname }
308
318
# fix bad permissions on cryptography directory (causes problem on src rebuild)
309
319
find shoal-agent/dist/shoal-agent -type d ! -perm -1|xargs -r chmod +x
@@ -319,6 +329,7 @@ touch ${RPM_BUILD_ROOT}%{etcdirsquid}/shoal_agent.conf
319
329
# make symlink for shoal_agent.conf https://github.com/hep-gc/shoal/issues/168
320
330
mkdir ${RPM_BUILD_ROOT}/etc/shoal
321
331
ln -s ../squid/shoal_agent.conf ${RPM_BUILD_ROOT}/etc/shoal
332
+ %endif
322
333
323
334
# In the squid4 to squid5 update, there is a problem in yum (not rpm) where
324
335
# files in the "es" directory cause conflict errors in the transaction test.
@@ -336,7 +347,11 @@ rm -rf $RPM_BUILD_ROOT
336
347
/usr/sbin/fn-local-squid%{?squidsuffix }.sh
337
348
/usr/sbin/squid%{?squidsuffix }
338
349
/usr/bin/*
350
+
351
+ %ifarch x86_64
339
352
%config(noreplace) %verify(not owner group mtime) /etc/shoal/shoal_agent.conf
353
+ %endif
354
+
340
355
%{libexecdirsquid }
341
356
%{datadirsquid }
342
357
%{homedirsquid }
@@ -364,8 +379,10 @@ rm -rf $RPM_BUILD_ROOT
364
379
# this rpm is uninstalled
365
380
%verify(not user group mode) %ghost %{etcdirsquid }/squid.conf.old
366
381
# shoal_agent.conf is a ghost file because it is generated
382
+ %ifarch x86_64
367
383
%verify(not user group mode) %ghost %{etcdirsquid }/shoal_agent.conf
368
384
%verify(not user group size md5 mtime) %{etcdirsquid }/shoal_agent.conf.frontierdefault
385
+ %endif
369
386
# cachedirsquid and logdirsquid are ghost in case someone turned them
370
387
# into symlinks (since they're commonly relocated); if we let rpm install
371
388
# these directories it will change the symlink target's owner to root
538
555
539
556
%changelog
540
557
558
+ * Tue Mar 11 2025 Matt Westphall
< [email protected] > 5.9-3.3
559
+ - Re-add ARM build
560
+ - Exclude shoal-agent frrom ARM builds
561
+
541
562
* Fri Dec 13 2024 Carl Vuosalo
< [email protected] > 5.9-3.2
542
563
- Fix building of RPM to properly choose Python36 or Python39.
543
564
Also, restrict building to x86_64 architecture.
0 commit comments