-
Notifications
You must be signed in to change notification settings - Fork 11
/
nordugrid-arc.spec.in
1799 lines (1577 loc) · 53.9 KB
/
nordugrid-arc.spec.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
%{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}-%{version}}
#
# Build dependency descrepancies across platforms
#
%if %{?suse_version:1}%{!?suse_version:0}
%global glibmm2_devel glibmm2-devel
%global openldap_devel openldap2-devel
%global nss_devel mozilla-nss-devel
%else
%global glibmm2_devel glibmm24-devel
%global openldap_devel openldap-devel
%global nss_devel nss-devel
%endif
#
# xROOTd
#
%if %{?fedora}%{!?fedora:0} >= 24 || %{?rhel}%{!?rhel:0}
%global with_xrootd %{!?_without_xrootd:1}%{?_without_xrootd:0}
%else
%global with_xrootd 0
%endif
#
# Python
#
%if %{?fedora}%{!?fedora:0} >= 32 || %{?rhel}%{!?rhel:0} >= 8
%global with_python2 0
%else
%global with_python2 1
%endif
%if %{?fedora}%{!?fedora:0} >= 13 || %{?rhel}%{!?rhel:0} >= 7
%global with_python3 1
%else
%global with_python3 0
%endif
%if %{with_python2}
%{!?__python2: %global __python2 /usr/bin/python2}
%{!?python2_sitearch: %global python2_sitearch %(%{__python2} -Esc "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
%{!?python2_sitelib: %global python2_sitelib %(%{__python2} -Esc "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
%endif
%if %{with_python3}
%{!?python3_pkgversion: %global python3_pkgversion 3}
%endif
%if %{?rhel}%{!?rhel:0} == 6
%filter_provides_in %{python2_sitearch}/.*\.so$
%filter_setup
%endif
%if %{?rhel}%{!?rhel:0} == 6
%global with_pylint 0
%else
%global with_pylint %{!?_without_pylint:1}%{?_without_pylint:0}
%endif
%if %{?fedora}%{!?fedora:0} >= 29 || %{?rhel}%{!?rhel:0} >= 8
%global py3default 1
%else
%global py3default 0
%endif
%if %{?fedora}%{!?fedora:0} >= 35 || %{?rhel}%{!?rhel:0} == 9
%global with_acix 0
%else
%global with_acix 1
%endif
%if %{?fedora}%{!?fedora:0} >= 21 || %{?rhel}%{!?rhel:0} >= 5
%global with_s3 1
%else
%global with_s3 0
%endif
%if %{?fedora}%{!?fedora:0} >= 21 || %{?rhel}%{!?rhel:0} >= 5
%global with_gfal 1
%else
%global with_gfal 0
%endif
%if %{?fedora}%{!?fedora:0} || %{?rhel}%{!?rhel:0}
%global with_xmlsec1 %{!?_without_xmlsec1:1}%{?_without_xmlsec1:0}
%else
%global with_xmlsec1 0
%endif
%if %{?fedora}%{!?fedora:0} >= 21 || ( %{?rhel}%{!?rhel:0} >= 6 && %{?rhel}%{!?rhel:0} <= 8 )
%global with_pythonlrms 1
%else
%global with_pythonlrms 0
%endif
# LDNS
%if %{?fedora}%{!?fedora:0} >= 13 || %{?rhel}%{!?rhel:0} >= 5
%global with_ldns 1
%else
%global with_ldns 0
%endif
%if %{?fedora}%{!?fedora:0} >= 25 || %{?rhel}%{!?rhel:0} >= 7
%global use_systemd 1
%else
%global use_systemd 0
%endif
%global with_ldap_service 1
%global pkgdir arc
# bash-completion
%global _bashcompdir %(pkg-config --variable=completionsdir bash-completion 2>/dev/null || echo %{_sysconfdir}/bash_completion.d)
#
# Macros for scripts
#
# Stop and disable service on package removal
%if %{use_systemd}
%define stop_on_removal() %{expand:%%systemd_preun %(sed 's/[^ ]*/&.service/g' <<< '%{?*}')}
%else
%if %{?stop_on_removal:0}%{!?stop_on_removal:1}
%global stop_on_removal() if [ $1 -eq 0 ]; then for s in %*; do service $s stop > /dev/null 2>&1 || : ; done; for s in %*; do /sbin/chkconfig --del $s; done; fi
%endif
%endif
# Enable a service
%if %{use_systemd}
%define enable_service() %{expand:%%systemd_post %(sed 's/[^ ]*/&.service/g' <<< '%{?*}')}
%else
%if %{?suse_version:1}%{!?suse_version:0}
%define enable_service() %{expand:%%fillup_and_insserv -f %{?*}}
%else
%define enable_service() for s in %{?*}; do /sbin/chkconfig --add $s ; done
%endif
%endif
# Conditionally restart service on package update
%if %{use_systemd}
%define condrestart_on_update() %{expand:%%systemd_postun_with_restart %(sed 's/[^ ]*/&.service/g' <<< '%{?*}')}
%else
%if %{?suse_version:1}%{!?suse_version:0}
%define condrestart_on_update() %{expand:%%restart_on_update %{?*}} %{expand:%%insserv_cleanup}
%else
%define condrestart_on_update() if [ $1 -ge 1 ]; then for s in %{?*}; do service $s condrestart > /dev/null 2>&1 || : ; done; fi
%endif
%endif
# Standard service requirements
%if %{use_systemd}
%define service_post_requires systemd-units
%define service_preun_requires systemd-units
%define service_postun_requires systemd-units
%else
%if %{?suse_version:1}%{!?suse_version:0}
%define service_post_requires %{insserv_prereq}
%define service_preun_requires %{insserv_prereq}
%define service_postun_requires %{insserv_prereq}
%else
%define service_post_requires chkconfig
%define service_preun_requires chkconfig, initscripts
%define service_postun_requires initscripts
%endif
%endif
Name: @PACKAGE@
Version: @baseversion@
Release: @fedorarelease@%{?dist}
Summary: Advanced Resource Connector Middleware
Group: System Environment/Daemons
License: ASL 2.0
URL: http://www.nordugrid.org/
Source: http://download.nordugrid.org/packages/%{name}/releases/%{version}@preversion@/src/%{name}-%{version}@preversion@.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
# Packages dropped without replacements
Obsoletes: %{name}-chelonia < 2.0.0
Obsoletes: %{name}-hopi < 2.0.0
Obsoletes: %{name}-isis < 2.0.0
Obsoletes: %{name}-janitor < 2.0.0
Obsoletes: %{name}-doxygen < 4.0.0
Obsoletes: %{name}-arcproxyalt < 6.0.0
Obsoletes: %{name}-java < 6.0.0
Obsoletes: %{name}-egiis < 6.0.0
%if ! %{with_python2}
Obsoletes: python2-%{name} < %{version}-%{release}
Obsoletes: %{name}-python < 5.3.3
%endif
%if ! %{with_ldap_service}
Obsoletes: %{name}-infosys-ldap < %{version}-%{release}
Obsoletes: %{name}-ldap-infosys < 6.0.0
Obsoletes: %{name}-aris < 6.0.0
%endif
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: libtool
BuildRequires: make
BuildRequires: gcc-c++
BuildRequires: cppunit-devel
BuildRequires: pkgconfig
%if %{use_systemd}
BuildRequires: systemd
BuildRequires: systemd-devel
%endif
BuildRequires: libuuid-devel
BuildRequires: gettext-devel
%if %{with_python2}
BuildRequires: python2-devel
%endif
%if %{with_python3}
BuildRequires: python%{python3_pkgversion}-devel
%endif
%if %{with_pylint}
BuildRequires: pylint
%endif
BuildRequires: %{glibmm2_devel}
BuildRequires: glib2-devel
BuildRequires: libxml2-devel
BuildRequires: openssl
BuildRequires: openssl-devel
%if %{with_xmlsec1}
BuildRequires: xmlsec1-devel >= 1.2.4
BuildRequires: xmlsec1-openssl-devel >= 1.2.4
%endif
BuildRequires: %{nss_devel}
BuildRequires: %{openldap_devel}
BuildRequires: globus-common-devel
BuildRequires: globus-ftp-client-devel
BuildRequires: globus-ftp-control-devel
%if %{?fedora}%{!?fedora:0} >= 23 || %{?rhel}%{!?rhel:0} >= 5
BuildRequires: globus-gssapi-gsi-devel >= 12.2
%else
BuildRequires: globus-gssapi-gsi-devel < 12.2
%endif
%if %{with_xrootd}
BuildRequires: xrootd-client-devel >= 1:4.5.0
%endif
%if %{with_gfal}
BuildRequires: gfal2-devel
%endif
%if %{with_s3}
BuildRequires: libs3-devel
%endif
%if %{?suse_version}%{!?suse_version:0} == 1110
BuildRequires: db43-devel
%else
%if %{?fedora}%{!?fedora:0} >= 15 || %{?rhel}%{!?rhel:0} >= 7
BuildRequires: libdb-cxx-devel
%else
%if %{?fedora}%{!?fedora:0} == 14
BuildRequires: libdb-devel
%else
BuildRequires: db4-devel
%endif
%endif
%endif
%if %{?fedora}%{!?fedora:0} >= 21 || %{?rhel}%{!?rhel:0}
BuildRequires: perl-generators
%endif
# Needed for Boinc backend testing during make check
BuildRequires: perl(DBI)
# Needed for infoprovider testing during make check
BuildRequires: perl(English)
BuildRequires: perl(JSON::XS)
BuildRequires: perl(Sys::Hostname)
BuildRequires: perl(XML::Simple)
# Needed for LRMS testing during make check
BuildRequires: perl(Test::Harness)
BuildRequires: perl(Test::Simple)
# Needed to run ACIX unit tests
%if %{with_acix}
%if %{py3default}
BuildRequires: python3-twisted
BuildRequires: python3-pyOpenSSL
%else
%if %{?fedora}%{!?fedora:0} || %{?rhel}%{!?rhel:0} >= 8 || %{?suse_version:1}%{!?suse_version:0}
BuildRequires: python-twisted
%else
BuildRequires: python-twisted-core
BuildRequires: python-twisted-web
%endif
%if %{?suse_version:1}%{!?suse_version:0}
BuildRequires: python-openssl
%else
BuildRequires: pyOpenSSL
%endif
%endif
%endif
BuildRequires: swig
%if %{?fedora}%{!?fedora:0} >= 4 || %{?rhel}%{!?rhel:0} >= 5
BuildRequires: libtool-ltdl-devel
%else
BuildRequires: libtool
%endif
%if %{with_pythonlrms}
BuildRequires: perl(Inline)
BuildRequires: perl(Inline::Python)
%endif
BuildRequires: sqlite-devel >= 3.6
%if %{with_ldns}
BuildRequires: ldns-devel >= 1.6.8
%endif
%if %{?fedora}%{!?fedora:0} >= 17 || %{?rhel}%{!?rhel:0} >= 7 || %{?suse_version:1}%{!?suse_version:0}
BuildRequires: pkgconfig(bash-completion)
%endif
%if %{?fedora}%{!?fedora:0} <= 13 && %{?rhel}%{!?rhel:0} <= 6
BuildRequires: python-argparse
Requires: python-argparse
%endif
%if %{?fedora}%{!?fedora:0} >= 13 || %{?rhel}%{!?rhel:0} >= 7 || %{?suse_version:1}%{!?suse_version:0}
Requires: hostname
%else
Requires: net-tools
%endif
Requires: openssl
%description
NorduGrid is a collaboration aiming at development, maintenance and
support of the middleware, known as the Advanced Resource
Connector (ARC).
The ARC middleware is a software solution that uses distributed
computing technologies to enable sharing and federation of computing
resources across different administrative and application domains.
ARC is used to create distributed infrastructures of various scope and
complexity, from campus to national and global deployments.
%package client
Summary: ARC command line clients
Group: Applications/Internet
Requires: %{name} = %{version}-%{release}
Requires: %{name}-plugins-needed = %{version}-%{release}
%description client
NorduGrid is a collaboration aiming at development, maintenance and
support of the middleware, known as the Advanced Resource
Connector (ARC).
This client package contains all the CLI tools that are needed to
operate with x509 proxies, submit and manage jobs and handle data
transfers.
%package hed
Summary: ARC Hosting Environment Daemon
Group: System Environment/Libraries
Requires: %{name} = %{version}-%{release}
Requires(post): %{service_post_requires}
Requires(preun): %{service_preun_requires}
Requires(postun): %{service_postun_requires}
%description hed
NorduGrid is a collaboration aiming at development, maintenance and
support of the middleware, known as the Advanced Resource
Connector (ARC).
The ARC Hosting Environment Daemon (HED) is a Web Service container
for ARC services.
%package gridftpd
Summary: ARC gridftp server
Group: System Environment/Daemons
Requires: %{name} = %{version}-%{release}
Requires: %{name}-plugins-gridftp = %{version}-%{release}
Requires: %{name}-arcctl-service = %{version}-%{release}
Requires(post): %{service_post_requires}
Requires(preun): %{service_preun_requires}
Requires(postun): %{service_postun_requires}
%description gridftpd
NorduGrid is a collaboration aiming at development, maintenance and
support of the middleware, known as the Advanced Resource
Connector (ARC).
This package contains the ARC gridftp server which can be used as a
custom job submission interface in front of an ARC enabled computing
cluster or as a low-level dedicated gridftp file server.
%package datadelivery-service
Summary: ARC data delivery service
Group: System Environment/Libraries
Requires: %{name} = %{version}-%{release}
Requires: %{name}-hed = %{version}-%{release}
Requires: %{name}-plugins-needed = %{version}-%{release}
Requires: %{name}-arcctl-service = %{version}-%{release}
Requires(post): %{service_post_requires}
Requires(preun): %{service_preun_requires}
Requires(postun): %{service_postun_requires}
%description datadelivery-service
NorduGrid is a collaboration aiming at development, maintenance and
support of the middleware, known as the Advanced Resource
Connector (ARC).
This package contains the ARC data delivery service.
%if %{with_ldap_service}
%package infosys-ldap
Summary: ARC LDAP-based information services
Group: System Environment/Libraries
%if %{?fedora}%{!?fedora:0} >= 10 || %{?rhel}%{!?rhel:0} >= 6
BuildArch: noarch
%endif
%if %{?rhel}%{!?rhel:0} == 8
# slapd package not available in EPEL 8
Recommends: openldap-servers
Recommends: bdii
%else
Requires: openldap-servers
Requires: bdii
%endif
Requires: glue-schema >= 2.0.10
Requires: %{name}-arcctl-service = %{version}-%{release}
Provides: %{name}-ldap-infosys = %{version}-%{release}
Obsoletes: %{name}-ldap-infosys < 6.0.0
Provides: %{name}-aris = %{version}-%{release}
Obsoletes: %{name}-aris < 6.0.0
Requires(post): %{service_post_requires}
Requires(preun): %{service_preun_requires}
Requires(postun): %{service_postun_requires}
%if %{?fedora}%{!?fedora:0} >= 23 || %{?rhel}%{!?rhel:0} >= 8
Requires(post): policycoreutils-python-utils
Requires(postun): policycoreutils-python-utils
%else
%if %{?fedora}%{!?fedora:0} >= 11 || %{?rhel}%{!?rhel:0} >= 6
Requires(post): policycoreutils-python
Requires(postun): policycoreutils-python
%else
%if %{?fedora}%{!?fedora:0} >= 5 || %{?rhel}%{!?rhel:0} >= 5
Requires(post): policycoreutils
Requires(postun): policycoreutils
%endif
%endif
%endif
%description infosys-ldap
NorduGrid is a collaboration aiming at development, maintenance and
support of the middleware, known as the Advanced Resource
Connector (ARC).
This package contains the ARC information services relying on BDII and
LDAP technologies to publish ARC CE information according to various
LDAP schemas. Please note that the information collectors are part of
another package, the nordugrid-arc-arex.
%endif
%package monitor
Summary: ARC LDAP monitor web application
Group: System Environment/Libraries
Requires: %{name} = %{version}-%{release}
Requires: php
Requires: php-gd
Requires: php-ldap
%if %{?fedora}%{!?fedora:0} >= 10 || %{?rhel}%{!?rhel:0} >= 6
BuildArch: noarch
%endif
Obsoletes: %{name}-ldap-monitor < 6.0.0
Obsoletes: %{name}-ws-monitor < 6.0.0
%description monitor
NorduGrid is a collaboration aiming at development, maintenance and
support of the middleware, known as the Advanced Resource
Connector (ARC).
This package contains the PHP web application that is used to set up a
web-based monitor which pulls information from the LDAP information
system and visualizes it.
%package arcctl
Summary: ARC Control Tool
Group: Applications/Internet
Requires: %{name} = %{version}-%{release}
%description arcctl
NorduGrid is a collaboration aiming at development, maintenance and
support of the middleware, known as the Advanced Resource
Connector (ARC).
This package contains the ARC Control Tool with basic set of control
modules suitable for both server and client side.
%package arcctl-service
Summary: ARC Control Tool - service control modules
Group: Applications/Internet
Requires: %{name} = %{version}-%{release}
Requires: %{name}-arcctl = %{version}-%{release}
%description arcctl-service
NorduGrid is a collaboration aiming at development, maintenance and
support of the middleware, known as the Advanced Resource
Connector (ARC).
This package contains the service control modules for ARC Contol Tool
that allow working with server-side config and manage ARC services.
%package arex
Summary: ARC Resource-coupled EXecution service
Group: System Environment/Libraries
Requires: %{name} = %{version}-%{release}
Requires: %{name}-hed = %{version}-%{release}
Requires: %{name}-arcctl = %{version}-%{release}
Requires: %{name}-arcctl-service = %{version}-%{release}
Requires: %{name}-plugins-needed = %{version}-%{release}
%if %{py3default}
Requires: python3-ldap
%else
Requires: python-ldap
%endif
Provides: %{name}-cache-service = %{version}-%{release}
Obsoletes: %{name}-cache-service < 6.0.0
Provides: %{name}-candypond = %{version}-%{release}
Obsoletes: %{name}-candypond < 6.0.0
Requires(post): %{name}-arcctl = %{version}-%{release}
Requires(preun): %{name}-arcctl = %{version}-%{release}
%if %{?fedora}%{!?fedora:0} >= 13 || %{?rhel}%{!?rhel:0} >= 7 || %{?suse_version:1}%{!?suse_version:0}
Requires(post): hostname
%else
Requires(post): net-tools
%endif
Requires(post): openssl
Requires(post): %{service_post_requires}
Requires(preun): %{service_preun_requires}
Requires(postun): %{service_postun_requires}
%description arex
NorduGrid is a collaboration aiming at development, maintenance and
support of the middleware, known as the Advanced Resource
Connector (ARC).
The ARC Resource-coupled EXecution service (AREX) is the Computing
Element of the ARC middleware. AREX offers a full-featured middle
layer to manage computational tasks including interfacing to local
batch systems, taking care of complex environments such as data
staging, data caching, software environment provisioning, information
collection and exposure, accounting information gathering and
publishing.
%if %{with_pythonlrms}
%package arex-python-lrms
Summary: ARC Resource-coupled EXecution service - Python LRMS backends
Group: System Environment/Libraries
Requires: %{name}-arex = %{version}-%{release}
%if %{py3default}
Requires: python%{python3_pkgversion}-%{name} = %{version}-%{release}
%else
Requires: python2-%{name} = %{version}-%{release}
%endif
Requires: perl(Inline)
Requires: perl(Inline::Python)
%description arex-python-lrms
NorduGrid is a collaboration aiming at development, maintenance and
support of the middleware, known as the Advanced Resource
Connector (ARC).
The Python LRMS backends are a new implementation of the AREX LRMS
backend scripts written in Python. Currently only the SLURM LRMS is
supported. It is released as a technology preview.
%endif
%package community-rtes
Summary: ARC Community defined RTEs support
Group: System Environment/Libraries
Requires: %{name}-arex = %{version}-%{release}
Requires: %{name}-arcctl = %{version}-%{release}
Requires: gnupg2
%if %{py3default}
Requires: python3-dns
%else
Requires: python-dns
%endif
%description community-rtes
NorduGrid is a collaboration aiming at development, maintenance and
support of the middleware, known as the Advanced Resource
Connector (ARC).
Community RTEs is the framework that allows deploying software packages
(tarballs, containers, etc) provided by trusted communities to ARC CE
using simple arcctl commands.
It is released as a technology preview.
%package plugins-needed
Summary: ARC base plugins
Group: System Environment/Libraries
Requires: %{name} = %{version}-%{release}
%description plugins-needed
NorduGrid is a collaboration aiming at development, maintenance and
support of the middleware, known as the Advanced Resource
Connector (ARC).
ARC base plugins. This includes the Message Chain Components (MCCs)
and Data Manager Components (DMCs).
%package plugins-globus
Summary: ARC Globus plugins (compat)
Group: System Environment/Libraries
Requires: %{name}-plugins-gridftp = %{version}-%{release}
Requires: %{name}-plugins-gridftpjob = %{version}-%{release}
Requires: %{name}-plugins-lcas-lcmaps = %{version}-%{release}
%description plugins-globus
NorduGrid is a collaboration aiming at development, maintenance and
support of the middleware, known as the Advanced Resource
Connector (ARC).
ARC Globus plugins. This compat metapackage brings all Globus dependent
plugins at once, including: Data Manager Components (DMCs), Client plugin
and LCAS/LCMAPS tools.
This package is meant to allow smooth transition and will be removed from
the upcoming releases.
%package plugins-globus-common
Summary: ARC Globus plugins common libraries
Group: System Environment/Libraries
Requires: %{name} = %{version}-%{release}
%description plugins-globus-common
NorduGrid is a collaboration aiming at development, maintenance and
support of the middleware, known as the Advanced Resource
Connector (ARC).
ARC Globus plugins common libraries package includes the bundle of
necessary Globus libraries needed for all other globus-dependent ARC
components.
%package plugins-gridftp
Summary: ARC Globus dependent DMCs
Group: System Environment/Libraries
Requires: %{name} = %{version}-%{release}
Requires: %{name}-plugins-globus-common = %{version}-%{release}
%description plugins-gridftp
NorduGrid is a collaboration aiming at development, maintenance and
support of the middleware, known as the Advanced Resource
Connector (ARC).
ARC Globus GridFTP plugins. These allow access to data through the
gridftp protocol.
%package plugins-lcas-lcmaps
Summary: ARC LCAS/LCMAPS plugins
Group: System Environment/Libraries
Requires: %{name} = %{version}-%{release}
Requires: %{name}-plugins-globus-common = %{version}-%{release}
%if %{?fedora}%{!?fedora:0} >= 23 || %{?rhel}%{!?rhel:0} >= 5
Requires: globus-gssapi-gsi >= 12.2
%else
Requires: globus-gssapi-gsi < 12.2
%endif
%description plugins-lcas-lcmaps
NorduGrid is a collaboration aiming at development, maintenance and
support of the middleware, known as the Advanced Resource
Connector (ARC).
ARC LCAS/LCMAPS tools allow configuring ARC CE to use LCAS/LCMAPS
services for authorization and mapping.
%package plugins-gridftpjob
Summary: ARC GRIDFTPJOB client plugin
Group: System Environment/Libraries
Requires: %{name} = %{version}-%{release}
Requires: %{name}-plugins-globus-common = %{version}-%{release}
Requires: %{name}-plugins-gridftp = %{version}-%{release}
%description plugins-gridftpjob
NorduGrid is a collaboration aiming at development, maintenance and
support of the middleware, known as the Advanced Resource
Connector (ARC).
ARC GRIDFTPJOB plugin allows submitting jobs via the gridftpd interface.
%if %{with_xrootd}
%package plugins-xrootd
Summary: ARC xrootd plugins
Group: System Environment/Libraries
Requires: %{name} = %{version}-%{release}
%description plugins-xrootd
NorduGrid is a collaboration aiming at development, maintenance and
support of the middleware, known as the Advanced Resource
Connector (ARC).
ARC xrootd plugins. These allow access to data through the xrootd
protocol.
%endif
%if %{with_gfal}
%package plugins-gfal
Summary: ARC GFAL2 plugins
Group: System Environment/Libraries
Requires: %{name} = %{version}-%{release}
%description plugins-gfal
NorduGrid is a collaboration aiming at development, maintenance and
support of the middleware, known as the Advanced Resource
Connector (ARC).
ARC plugins for GFAL2. This allows third-party transfer and adds
support for several extra transfer protocols (rfio, dcap, gsidcap).
Support for specific protocols is provided by separate 3rd-party GFAL2
plugin packages.
%endif
%if %{with_s3}
%package plugins-s3
Summary: ARC S3 plugins
Group: System Environment/Libraries
Requires: %{name} = %{version}-%{release}
%description plugins-s3
NorduGrid is a collaboration aiming at development, maintenance and
support of the middleware, known as the Advanced Resource
Connector (ARC).
ARC plugins for S3. These allow access to data through the S3
protocol.
%endif
%package plugins-internal
Summary: ARC internal plugin
Group: System Environment/Libraries
Requires: %{name} = %{version}-%{release}
Requires: %{name}-arex = %{version}-%{release}
%description plugins-internal
NorduGrid is a collaboration aiming at development, maintenance and
support of the middleware, known as the Advanced Resource
Connector (ARC).
The ARC internal plugin. A special interface aimed for restrictive HPC
sites, to be used with a local installation of the ARC Control Tower.
%package plugins-arcrest
Summary: ARC REST plugin
Group: System Environment/Libraries
Requires: %{name} = %{version}-%{release}
%description plugins-arcrest
NorduGrid is a collaboration aiming at development, maintenance and
support of the middleware, known as the Advanced Resource
Connector (ARC).
ARC plugin for ARC REST interface technology preview.
%package plugins-python
Summary: ARC Python dependent plugin
Group: System Environment/Libraries
Requires: %{name} = %{version}-%{release}
%if %{py3default}
Requires: python%{python3_pkgversion}-%{name} = %{version}-%{release}
%else
Requires: python2-%{name} = %{version}-%{release}
%endif
%description plugins-python
NorduGrid is a collaboration aiming at development, maintenance and
support of the middleware, known as the Advanced Resource
Connector (ARC).
ARC plugins dependent on Python.
%if %{with_acix}
%package acix-core
Summary: ARC cache index - core
Group: System Environment/Libraries
%if %{?fedora}%{!?fedora:0} >= 10 || %{?rhel}%{!?rhel:0} >= 6
BuildArch: noarch
%endif
%if %{py3default}
Requires: python3-twisted
Requires: python3-pyOpenSSL
%else
%if %{?fedora}%{!?fedora:0} || %{?rhel}%{!?rhel:0} >= 8 || %{?suse_version:1}%{!?suse_version:0}
Requires: python-twisted
%else
Requires: python-twisted-core
Requires: python-twisted-web
%endif
%if %{?suse_version:1}%{!?suse_version:0}
Requires: python-openssl
%else
Requires: pyOpenSSL
%endif
%endif
%description acix-core
NorduGrid is a collaboration aiming at development, maintenance and
support of the middleware, known as the Advanced Resource
Connector (ARC).
Core components of the ARC Cache Index (ACIX).
%package acix-scanner
Summary: ARC cache index - scanner server
Group: System Environment/Libraries
%if %{?fedora}%{!?fedora:0} >= 10 || %{?rhel}%{!?rhel:0} >= 6
BuildArch: noarch
%endif
Requires: %{name} = %{version}-%{release}
Requires: %{name}-acix-core = %{version}-%{release}
Requires: %{name}-arcctl-service = %{version}-%{release}
Obsoletes: %{name}-acix-cache < 6.0.0
Requires(post): %{service_post_requires}
Requires(preun): %{service_preun_requires}
Requires(postun): %{service_postun_requires}
%description acix-scanner
NorduGrid is a collaboration aiming at development, maintenance and
support of the middleware, known as the Advanced Resource
Connector (ARC).
Cache scanner component of the ARC Cache Index (ACIX), usually
installed alongside A-REX. This component collects information on the
content of an A-REX cache.
%package acix-index
Summary: ARC cache index - index server
Group: System Environment/Libraries
%if %{?fedora}%{!?fedora:0} >= 10 || %{?rhel}%{!?rhel:0} >= 6
BuildArch: noarch
%endif
Requires: %{name} = %{version}-%{release}
Requires: %{name}-arcctl-service = %{version}-%{release}
Requires: %{name}-acix-core = %{version}-%{release}
Requires(post): %{service_post_requires}
Requires(preun): %{service_preun_requires}
Requires(postun): %{service_postun_requires}
%description acix-index
NorduGrid is a collaboration aiming at development, maintenance and
support of the middleware, known as the Advanced Resource
Connector (ARC).
Index server component of the ARC Cache Index (ACIX), usually
installed independently of any A-REX installation. This component
pulls cache content from ACIX cache scanner servers and can be queried
by clients for the location of cached files.
%endif
%package devel
Summary: ARC development files
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
Requires: %{glibmm2_devel}
Requires: glib2-devel
Requires: libxml2-devel
Requires: openssl-devel
%description devel
NorduGrid is a collaboration aiming at development, maintenance and
support of the middleware, known as the Advanced Resource
Connector (ARC).
Header files and libraries needed to develop applications using ARC.
%if %{with_python2}
%package -n python2-%{name}
Summary: ARC Python 2 wrapper
Group: Development/Libraries
%{?python_provide:%python_provide python2-%{name}}
Provides: %{name}-python = %{version}-%{release}
Obsoletes: %{name}-python < 5.3.3
Requires: %{name} = %{version}-%{release}
%description -n python2-%{name}
NorduGrid is a collaboration aiming at development, maintenance and
support of the middleware, known as the Advanced Resource
Connector (ARC).
Python 2 bindings for ARC.
%endif
%if %{with_python3}
%package -n python%{python3_pkgversion}-%{name}
Summary: ARC Python 3 wrapper
Group: Development/Libraries
%{?python_provide:%python_provide python%{python3_pkgversion}-%{name}}
Provides: %{name}-python%{python3_pkgversion} = %{version}-%{release}
Obsoletes: %{name}-python%{python3_pkgversion} < 5.3.3
Requires: %{name} = %{version}-%{release}
%description -n python%{python3_pkgversion}-%{name}
NorduGrid is a collaboration aiming at development, maintenance and
support of the middleware, known as the Advanced Resource
Connector (ARC).
Python 3 bindings for ARC.
%endif
%package nordugridmap
Summary: ARC's nordugridmap tool
Group: Applications/Internet
Requires: crontabs
Obsoletes: %{name}-gridmap-utils < 6.0.0
%if %{?fedora}%{!?fedora:0} >= 10 || %{?rhel}%{!?rhel:0} >= 6
BuildArch: noarch
%endif
%description nordugridmap
NorduGrid is a collaboration aiming at development, maintenance and
support of the middleware, known as the Advanced Resource
Connector (ARC).
A simple tool to fetch list of users and eventually generate gridmap
files.
%package test-utils
Summary: ARC test tools
Group: Applications/Internet
Requires: %{name} = %{version}-%{release}
Requires: %{name}-plugins-needed = %{version}-%{release}
Obsoletes: %{name}-misc-utils < 6.0.0
%description test-utils
NorduGrid is a collaboration aiming at development, maintenance and
support of the middleware, known as the Advanced Resource
Connector (ARC).
This package contains a few utilities useful to test various ARC
subsystems. The package is not required by users or sysadmins and it
is mainly for developers.
%package archery-manage
Summary: ARCHERY administration tool
Group: Applications/Internet
%if %{?fedora}%{!?fedora:0} >= 10 || %{?rhel}%{!?rhel:0} >= 6
BuildArch: noarch
%endif
%if %{?fedora}%{!?fedora:0} <= 13 && %{?rhel}%{!?rhel:0} <= 6
Requires: python-argparse
%endif
%if %{py3default}
Requires: python3-dns
Requires: python3-ldap
%else
Requires: python-dns
Requires: python-ldap
%endif
%description archery-manage
NorduGrid is a collaboration aiming at development, maintenance and
support of the middleware, known as the Advanced Resource
Connector (ARC).
This package contains the archery-manage utility for administration of
an ARCHERY DNS-embedded service endpoint registry.
%package wn
Summary: ARC optional worker nodes components
Group: Applications/Internet
%description wn
NorduGrid is a collaboration aiming at development, maintenance and
support of the middleware, known as the Advanced Resource
Connector (ARC).
This package contains the optional components that provide new job
management features on the worker nodes (WN).
%prep
%setup @fedorasetupopts@
%build
if pkg-config --atleast-version 2.6 sigc++-2.0 ; then
if [ `echo __GNUC__ | gcc -E - | tail -1` -lt 6 ] ; then
# Workaround for too new libsigc++/glibmm, too old gcc combination
export CXXFLAGS="%{optflags} -std=c++11"
fi
fi
autoreconf -v -f -i
%configure --disable-static \
%if ! %{with_acix}
--disable-acix \
%endif
%if %{with_gfal}
--enable-gfal \
%endif
%if %{with_s3}
--enable-s3 \
%endif
%if %{py3default}
--with-python=python3 \
%if %{with_python2}
--with-altpython=python2 \