|
1 | | -# Set to 1 to enable IAM-based VOMS endpoints |
2 | | -# (SOFTWARE-4666, SOFTWARE-4576, SOFTWARE-4595, SOFTWARE-5843) |
3 | | -%define iam 1 |
4 | | -# Set to 1 to include IAM-based VOMS endpoints in the vomses file (SOFTWARE-5843) |
5 | | -%define iam_vomses 1 |
| 1 | +# These macros exclude vomses entries for specific VOs -- see the %build section |
| 2 | +%define delete_iam_legacy_vomses() sed -Ei '/.*voms-'%1'-auth.app.cern.ch.*/d' vomses |
| 3 | +%define delete_iam_prod_vomses() sed -Ei '/.*voms-'%1'-auth.cern.ch.*/d' vomses |
6 | 4 |
|
7 | 5 | Name: vo-client |
8 | 6 | Version: 137 |
9 | | -Release: 3%{?dist} |
| 7 | +Release: 4%{?dist} |
10 | 8 | Summary: Contains vomses file for use with user authentication |
11 | 9 |
|
12 | 10 | License: Apache 2.0 |
@@ -47,23 +45,21 @@ Requires: %{name} = %{version}-%{release} |
47 | 45 | %build |
48 | 46 | make |
49 | 47 |
|
50 | | -%if ! 0%{?iam} |
51 | | -rm -f vomsdir/atlas/voms-atlas-auth.app.cern.ch.lsc |
52 | | -rm -f vomsdir/cms/voms-cms-auth.app.cern.ch.lsc |
53 | | - |
54 | | -for vo in alice atlas cms dteam lhcb; do |
55 | | - rm -f vomsdir/${vo}/voms-${vo}-auth.cern.ch.lsc |
56 | | -done |
57 | | -%endif |
58 | 48 |
|
59 | 49 | # FIXME: Remove IAM vomses entries to avoid use by VOMS clients until |
60 | 50 | # IAM LSC files are more widely distributed across the world |
61 | 51 | # (SOFTWARE-4595) |
62 | | -sed -Ei '/.*voms-(alice|lhcb|ops)-auth.app.cern.ch.*/d' vomses |
63 | | -%if ! 0%{?iam_vomses} |
64 | | -# Additional entries from SOFTWARE-5843: |
65 | | -sed -Ei '/.*voms-(alice|atlas|cms|dteam|lhcb)-auth.cern.ch.*/d' vomses |
66 | | -%endif |
| 52 | + |
| 53 | +%delete_iam_legacy_vomses alice |
| 54 | +%delete_iam_legacy_vomses lhcb |
| 55 | +%delete_iam_legacy_vomses ops |
| 56 | + |
| 57 | +#delete_iam_prod_vomses alice |
| 58 | +#delete_iam_prod_vomses atlas |
| 59 | +%delete_iam_prod_vomses cms |
| 60 | +%delete_iam_prod_vomses dteam |
| 61 | +#delete_iam_prod_vomses lhcb |
| 62 | + |
67 | 63 |
|
68 | 64 | %install |
69 | 65 | install -d $RPM_BUILD_ROOT/%{_sysconfdir} |
@@ -95,6 +91,9 @@ find $RPM_BUILD_ROOT/%{_sysconfdir}/grid-security/vomsdir -type d -exec chmod 75 |
95 | 91 | %config(noreplace) %{_datadir}/osg/grid-vorolemap |
96 | 92 |
|
97 | 93 | %changelog |
| 94 | +* Tue Jan 21 2025 Mátyás Selmeci <mselmeci@wisc.edu> - 137-4 |
| 95 | +- Except for CMS and DTEAM (SOFTWARE-6060) |
| 96 | + |
98 | 97 | * Fri Jan 17 2025 Mátyás Selmeci <mselmeci@wisc.edu> - 137-3 |
99 | 98 | - Include new CERN IAM endpoints again (SOFTWARE-6060) |
100 | 99 |
|
|
0 commit comments