forked from openss7/openss7
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathopenss7.spec.in
6502 lines (5965 loc) · 231 KB
/
openss7.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
# vim: ft=spec sw=4 et tw=78 com=b\:#,fb\:- fo+=tcqlorn nocin nosi
# =============================================================================
#
# @(#) File: openss7.spec.in Version: @VERSION@ Date: @PACKAGE_DATE@
#
# -----------------------------------------------------------------------------
#
# Copyright (c) 2008-2015 Monavacon Limited <http://www.monavacon.com/>
# Copyright (c) 2001-2008 OpenSS7 Corporation <http://www.openss7.com/>
# Copyright (c) 1997-2001 Brian F. G. Bidulock <[email protected]>
#
# All Rights Reserved.
#
# This program is free software; you can redistribute it and/or modify it under
# the terms of the GNU Affero General Public License as published by the Free
# Software Foundation; version 3 of the License.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
# details.
#
# You should have received a copy of the GNU Affero General Public License along
# with this program. If not, see <http://www.gnu.org/licenses/>, or write to
# the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#
# -----------------------------------------------------------------------------
#
# U.S. GOVERNMENT RESTRICTED RIGHTS. If you are licensing this Software on
# behalf of the U.S. Government ("Government"), the following provisions apply
# to you. If the Software is supplied by the Department of Defense ("DoD"), it
# is classified as "Commercial Computer Software" under paragraph 252.227-7014
# of the DoD Supplement to the Federal Acquisition Regulations ("DFARS") (or any
# successor regulations) and the Government is acquiring only the license rights
# granted herein (the license rights customarily provided to non-Government
# users). If the Software is supplied to any unit or agency of the Government
# other than DoD, it is classified as "Restricted Computer Software" and the
# Government's rights in the Software are defined in paragraph 52.227-19 of the
# Federal Acquisition Regulations ("FAR") (or any successor regulations) or, in
# the cases of NASA, in paragraph 18.52.227-86 of the NASA Supplement to the FAR
# (or any successor regulations).
#
# -----------------------------------------------------------------------------
#
# Commercial licensing and support of this software is available from OpenSS7
# Corporation at a fee. See http://www.openss7.com/
#
# =============================================================================
# Note: we have way too many devices to make traditional device nodes any more, so these are
# commented out. Only the traditional UNIX ABI inet devices are created. Use the /dev/streams
# directory for the rest.
%global majbase @STRCONF_MAJBASE@
#global makedev @STRCONF_MAKEDEV@
#global mknods /usr/sbin/inet_mkdev # inet style install
#global rmnods /usr/sbin/inet_rmdev # inet style removal
%global mknods /usr/sbin/@STRCONF_DEVICES@
%global rmnods /usr/sbin/@STRCONF_DEVICES@ --remove
# all creation and removal of devices is now performed by init script
%global base @PACKAGE_LCNAME@
%global title @PACKAGE_TITLE@
%global stitle @PACKAGE_SHORTTITLE@
%global virtual STREAMS
%global binfiles %{nil}
%global sbinfiles %{nil}
%global sysbinfiles %{nil}
%global syssbinfiles %{nil}
%global wrapper wrapper
%global modules specfs streams streams-aixcompat streams-clone streams-connld streams-echo streams-fifo streams-hpuxcompat streams-log streams-nsdev streams-nuls streams-osfcompat streams-pipe streams-pipemod streams-sad streams-sc streams-sth streams-suncompat streams-svr4compat streams-uw7compat
%global nonrpmmods LiS lis streams STREAMS strbcm strcompat strutil strtty strchan strxns strxnet strnsl strsock strinet strsctp strisdn strvoip strss7 sigtran stratm
%global preloads specfs streams
%global libraries streams
%global perlmods %{nil}
%global tcllibs %{nil}
%global gcjlibs %{nil}
%global gcjmaps %{nil}
%global jarfiles %{nil}
%global jnilibs %{nil}
%global javadoc %{nil}
%global locales %{nil}
%global tools ldltest strtst thrtst timetst fattach fdetach ldlconfig oc pafd psfd rwf streams strmakenodes
%global manuals openss7 ATM carrier cci cdi chi cnam dlpi dlpi_porting FR hlr INET ISDN lab libxnet libxnsl lli mapi MG mg mtpi mxi nli npi npi_mtp npi_sccp OSI PHYS porting sbc sccpi sdli sdti sg sgp SIGTRAN sli SPG2 SPG SS7 ssg ss STREAMS_FAQ STREAMS tci tpi tpi_sccp tri TTY VOIP voip wan X25 x25_porting x400p xcc xmap XNS xti_sccp
%global pngfiles *.png
%global cssfiles *.css
%global initfiles specfs streams strerr strace %{base}
%global nonrpminit strms_up strms_dn
%global conffiles *.conf
%global testfiles *test*
%global testscripts testsuite
%global sendpr %{nil}
%global mibfiles *.mib
%global snmpmods strMIB
#global gdmos #{nil}
%global netconfig %{base}
%global sock2path %{base}
%global snmpconf strMIB.conf
%global manrefs %{base}.refs
%global manmacros %{base}.macros
%global manpages man*
%global includes %{nil}
%global license AGPLv3
%global NEED_streams 0
%{!?_enable_debug_packages:%{expand: %%global _enable_debug_packages 0}}
# there are three ways to pass kernel version to the build process:
# global _kversion in /usr/lib/rpm/macros, #_sysconfdir/rpm/macros or ~/.rpmmacros
# global _kversion on the rpmbuild command line
# global PACKAGE_KVERSION environment variable
# just let it default to `uname -r`
#{!?_kversion: #{expand: ##global _kversion #(env | grep PACKAGE_KVERSION | sed -e 's,.*=,,')}}
%{!?_kversion: %{expand: %%global _kversion %(uname -r)}}
%global without_ko_modules %(echo %{_kversion} | sed -e 's,^2\.[56]\..*$,0,;s,^2\.4\..*$,1,')
%global kernel_version %{_kversion}
%global kernel_source %(echo %{_kversion} | sed -r -e 's,BOOT$,,;s,-?smp$,,;s,bigmem$,,;s,debug$,,;s,enterprise$,,;s,hugemem$,,;s,secure$,,;s,-i686-up-4GB$,,;s,-p3-smp-64GB$,,;s,-64GB-SMP,.SuSE,;s,-default$,,;s,-tmb-(desktop586|desktop|laptop|server)-,-tmb-,;s,-(netbook|server|desktop|desktop586)-,-,;s,\.%{_build_arch}$,,')
%global kernel_number %(echo %{_kversion} | sed -e 's,-.*$,,')
%global kernel_majnum %(echo %{kernel_number} | sed -e 's,\.[^\.]*$,,')
%global kernel_flavor %(echo %{_kversion} | sed -r -e 's,.*BOOT,-BOOT,;t;s,.*-?smp$,-smp,;t;s,.*bigmem$,-bigmem,;t;s,.*debug$,-debug,;t;s,.*kdump$,-kdump,;t;s,.*enterprise$,-enterprise,;t;s,.*hugemem$,-hugemem,;t;s,.*secure$,-secure,;t;s,.*-i686-up-4GB,-i686-up-4GB,;t;s,.*-p3-smp-4GB$,-p3-smp-4GB,;t;s,.*-64GB-SMP$,-64GB-SMP,;t;s,.*-default$,-default,;t;s,.*pae$,-pae,;t;s,.*PAE$,-PAE,;t;s,.*-tmb-desktop-.*,-tmb-desktop,;t;s,.*-tmb-desktop586-.*,-tmb-desktop586,;t;s,-tmb-laptop-.*,-tmb-laptop,;t;s,.*-tmb-server-.*,-tmb-server,;t;s,.*-vserver-.*,-vserver,;t;s,.*-xen-pvops-.*,-xen-pvops,;t;s,.*-desktop-.*,-desktop,;t;s,.*-desktop586-.*,-desktop586,;t;s,.*-server-.*,-server,;t;s,.*-netbook-.*,-netbook,;t;s,.*-linus-.*,-linus,;t;s,.*,,')
%global kernel_symvers symvers-%{_kversion}.gz
%global kernel_symsets symsets-%{_kversion}.tar.gz
%global kernel_latest %((LANG_ALL="C" rpm -q --whatprovides /lib/modules/%{_kversion}/kernel | grep -v 'not owned' | sed -r -n 's,.*-([23]\..*),\\1,;T;s,^([^-]*-[0-9]*)\.[^\.]*(\..*)$,\\1\\2,p') 2>/dev/null)
%global kernel_series %(echo %{_kversion} | sed -r -e 's,.*-tmb-(desktop|desktop586|laptop|server)-.*,-tmb,;t;s,.*-vserver-.*,-vserver,;t;s,.*-linus-.*,-linus,;t;s,.*-xen-pvops-.*,-vserver,;t;s,.*-(desktop|desktop586|netbook|server)-.*,,;t;s,.*,,')
%global HAVE_devices %{?majbase: 1}%{!?majbase: 0}
%global HAVE_makedev %{?makedev: 1}%{!?makedev: 0}
%global HAVE_mknods %{?mknods: 1}%{!?mknods: 0}
%global HAVE_rmnods %{?rmnods: 1}%{!?rmnods: 0}
%global HAVE_binfiles %{?binfiles: 1}%{!?binfiles: 0}
%global HAVE_sbinfiles %{?sbinfiles: 1}%{!?sbinfiles: 0}
%global HAVE_sysbinfiles %{?sysbinfiles: 1}%{!?sysbinfiles: 0}
%global HAVE_syssbinfiles %{?syssbinfiles: 1}%{!?syssbinfiles: 0}
%global HAVE_preloads %{?preloads: 1}%{!?preloads: 0}
%global HAVE_wrapper %{?wrapper: 1}%{!?wrapper: 0}
%global HAVE_modules %{?modules: 1}%{!?modules: 0}
%global HAVE_libraries %{?libraries: 1}%{!?libraries: 0}
%global HAVE_perlmods %{?perlmods: 1}%{!?perlmods: 0}
%global HAVE_tcllibs %{?tcllibs: 1}%{!?tcllibs: 0}
%global HAVE_gcjlibs %{?gcjlibs: 1}%{!?gcjlibs: 0}
%global HAVE_gcjmaps %{?gcjmaps: 1}%{!?gcjmaps: 0}
%global HAVE_jarfiles %{?jarfiles: 1}%{!?jarfiles: 0}
%global HAVE_jnilibs %{?jnilibs: 1}%{!?jnilibs: 0}
%global HAVE_javadoc %{?javadoc: 1}%{!?javadoc: 0}
%global HAVE_locales %{?locales: 1}%{!?locales: 0}
%global HAVE_tools %{?tools: 1}%{!?tools: 0}
%global HAVE_manuals %{?manuals: 1}%{!?manuals: 0}
%global HAVE_pngfiles %{?pngfiles: 1}%{!?pngfiles: 0}
%global HAVE_cssfiles %{?cssfiles: 1}%{!?cssfiles: 0}
%global HAVE_initscripts %{?initfiles: 1}%{!?initfiles: 0}
%global HAVE_configfiles %{?conffiles: 1}%{!?conffiles: 0}
%global HAVE_testfiles %{?testfiles: 1}%{!?testfiles: 0}
%global HAVE_testscripts %{?testscripts: 1}%{!?testscripts: 0}
%global HAVE_sendpr %{?sendpr: 1}%{!?sendpr: 0}
%global HAVE_mibfiles %{?mibfiles: 1}%{!?mibfiles: 0}
%global HAVE_snmpmods %{?snmpmods: 1}%{!?snmpmods: 0}
%global HAVE_gdmofiles %{?gdmos: 1}%{!?gdmos: 0}
%global HAVE_netconfig %{?netconfig: 1}%{!?netconfig: 0}
%global HAVE_sock2path %{?sock2path: 1}%{!?sock2path: 0}
%global HAVE_manrefs %{?manrefs: 1}%{!?manrefs: 0}
%global HAVE_manmacros %{?manmacros: 1}%{!?manmacros: 0}
%global HAVE_manpages %{?manpages: 1}%{!?manpages: 0}
%global HAVE_snmpconf %{?snmpconf: 1}%{!?snmpconf: 0}
%global HAVE_debugfiles %{_enable_debug_packages}
%global HAVE_kdebugfiles %{_enable_debug_packages}
%global HAVE_sourcefiles 1
%global HAVE_docfiles 1
%global HAVE_includes %{?includes: 1}%{!?includes: 0}
%global HAVE_mkvars 1
%if %{?_with_wrapper_module:1}0
%global HAVE_wrapper %{?wrapper: 1}%{!?wrapper: 0}
%else
%global HAVE_wrapper 0
%endif
%global HAVE_enhances %(if (rpm -q --enhances rpm >/dev/null 2>&1) ; then echo 1; else echo 0; fi)
%if %{HAVE_enhances}
%global have_enhances %{nil}
%global Enhances Enhances
%else
%global Enhances Requires
%endif
%global HAVE_supplements %(if (rpm -q --supplements rpm >/dev/null 2>&1) ; then echo 1; else echo 0; fi)
%if %{HAVE_supplements}
%global have_supplements %{nil}
%endif
%global HAVE_recommends %(if (rpm -q --recommends rpm >/dev/null 2>&1) ; then echo 1; else echo 0; fi)
%if %{HAVE_recommends}
%global have_recommends %{nil}
%global Recommends Recommends
%else
%global Recommends Requires
%endif
%global HAVE_suggests %(if (rpm -q --suggests rpm >/dev/null 2>&1) ; then echo 1; else echo 0; fi)
%if %{HAVE_suggests}
%global have_suggests %{nil}
%endif
%global HAVE_yumrepo %(if (rpm -q --whatprovides yum >/dev/null 2>&1) ; then echo 1; else echo 0; fi)
%global HAVE_aptrepo %(if (rpm -q --whatprovides apt-get >/dev/null 2>&1) ; then echo 1; else echo 0; fi)
%global HAVE_urpmirepo %(if (rpm -q --whatprovides urpmi >/dev/null 2>&1) ; then echo 1; else echo 0; fi)
%global HAVE_zypprepo %(if (rpm -q --whatprovides zypper >/dev/null 2>&1) ; then echo 1; else echo 0; fi)
%global HAVE_systemd %(if (rpm -q --whatprovides systemd >/dev/null 2>&1) ; then echo 1; else echo 0; fi)
# when _reposubdir is not defined we cannot build a repo package
%{!?_reposubdir: %{expand: %%global HAVE_yumrepo 0}}
%{!?_reposubdir: %{expand: %%global HAVE_aptrepo 0}}
%{!?_reposubdir: %{expand: %%global HAVE_urpmirepo 0}}
%{!?_reposubdir: %{expand: %%global HAVE_zypprepo 0}}
#global HAVE_lcacerts #(if [ -d '#{_cacertdir}' ] ; then echo 1; else echo 0; fi)
#global HAVE_sslcerts #(if [ -d '#{_sslcertdir}' ] ; then echo 1; else echo 0; fi)
%global HAVE_lcacerts 0
%global HAVE_sslcerts 0
%if %{HAVE_zypprepo}
%global HAVE_yumrepo 0
%global HAVE_aptrepo 0
%global HAVE_urpmirepo 0
%global HAVE_zypprepo 1
%endif
%if %{HAVE_urpmirepo}
%global HAVE_yumrepo 0
%global HAVE_aptrepo 0
%global HAVE_urpmirepo 1
%global HAVE_zypprepo 0
%endif
%if %{HAVE_aptrepo}
%global HAVE_yumrepo 0
%global HAVE_aptrepo 1
%global HAVE_urpmirepo 0
%global HAVE_zypprepo 0
%endif
%if %{HAVE_yumrepo}
%global HAVE_yumrepo 1
%global HAVE_aptrepo 0
%global HAVE_urpmirepo 0
%global HAVE_zypprepo 0
%endif
%global HAVE_devscripts 0
%if %{HAVE_mknods}
%global HAVE_devscripts 1
%endif
%if %{HAVE_rmnods}
%global HAVE_devscripts 1
%endif
%global HAVE_infofiles 1
%global HAVE_txtfiles 1
%global HAVE_dvifiles 1
%global HAVE_psfiles 1
%global HAVE_pdffiles 1
%global HAVE_htmlfiles 1
%global HAVE_pngfiles 1
%global HAVE_cssfiles 1
%global HAVE_lib32compat 0
%global HAVE_test32files 0
%global HAVE_snmp32mods 0
%if %(test "%{_build_arch}" = "x86_64" && echo 1 || echo 0)
%global HAVE_lib32compat %{HAVE_libraries}
%global HAVE_test32files %{HAVE_testfiles}
%global HAVE_snmp32mods %{HAVE_snmpmods}
%endif
%if %(test "%{_build_arch}" = "s390x" && echo 1 || echo 0)
%global HAVE_lib32compat %{HAVE_libraries}
%global HAVE_test32files %{HAVE_testfiles}
%global HAVE_snmp32mods %{HAVE_snmpmods}
%endif
%if %(test "%{_build_arch}" = "sparc64" && echo 1 || echo 0)
%global HAVE_lib32compat %{HAVE_libraries}
%global HAVE_test32files %{HAVE_testfiles}
%global HAVE_snmp32mods %{HAVE_snmpmods}
%endif
%if %(test "%{_build_arch}" = "ppc64" && echo 1 || echo 0)
%global HAVE_lib32compat %{HAVE_libraries}
%global HAVE_test32files %{HAVE_testfiles}
%global HAVE_snmp32mods %{HAVE_snmpmods}
%endif
%if %(test "%{_build_arch}" = "ia64" && echo 1 || echo 0)
%global HAVE_lib32compat %{HAVE_libraries}
%global HAVE_test32files %{HAVE_testfiles}
%global HAVE_snmp32mods %{HAVE_snmpmods}
%endif
%if %{HAVE_devices}
%global USE_makedev %{HAVE_makedev}
%global USE_mknods %{HAVE_mknods}
%global USE_rmnods %{HAVE_rmnods}
%else
%global USE_makedev 0
%global USE_mknods 0
%global USE_rmnods 0
%endif
%if %(if (rpm -q --whatprovides /usr/bin/gcj-dbtool >/dev/null 2>&1) ; then echo 0 ; else echo 1; fi)
%global HAVE_gcjmaps 0
%endif
%if %(if (rpm --version|grep 'RPM version 4' >/dev/null 2>&1) ; then echo 0 ; else echo 1; fi)
%global USE_makedev 0
%endif
%if %(if (echo "%{_kversion}" | grep '^2\.4\.' >/dev/null 2>&1) ; then echo 1 ; else echo 0; fi)
%global HAVE_oldmods %{HAVE_modules}
%global HAVE_oldprel %{HAVE_preloads}
%global HAVE_newmods 0
%global HAVE_newprel 0
%global HAVE_symvers 0
%global NEED_symvers 0
%global HAVE_weakmods 0
%global HAVE_kupdate 0
%global HAVE_wmscripts 0
%global _ksubdir %{base}
%else
%global HAVE_preloads 0
%global HAVE_oldmods 0
%global HAVE_oldprel 0
%global HAVE_newmods %{HAVE_modules}
%global HAVE_newprel %{HAVE_preloads}
%global HAVE_symvers %{HAVE_modules}
%global NEED_symvers 1
%global HAVE_weakmods %{HAVE_modules}
%global HAVE_kupdate %{HAVE_modules}
%global HAVE_wmscripts %{HAVE_modules}
%global _ksubdir extra/%{base}
%endif
%if %(if test -d %_sysconfdir/kernel -o -x /sbin/new-kernel-pkg ; then echo 0 ; else echo 1 ; fi)
%global HAVE_kupdate 0
%endif
%if %(if test -x /sbin/weak-modules -o -x /usr/lib/module-init-tools/weak-modules -o -x /usr/lib/module-init-tools/weak-modules2; then echo 0; else echo 1; fi)
%global _ksubdir %{base}
%endif
%if %(if test -x /usr/lib/module-init-tools/weak-modules -a ! -x /usr/lib/module-init-tools/weak-modules2; then echo 1; else echo 0; fi)
%global _ksubdir updates/%{base}
%endif
%if %{HAVE_weakmods}
%global target_kernel %((LANG_ALL="C" rpm -q --whatprovides /boot/%{kernel_symvers} --qf "%%{NAME}\\n" | grep -v 'not owned' | tail -1) 2>/dev/null)
%else
%global target_kernel %((LANG_ALL="C" rpm -q --whatprovides /boot/%{kernel_symvers} --qf "%%{NAME} = %%{VERSION}-%%{RELEASE}\\n" | grep -v 'not owned' | tail -1) 2>/dev/null)
%endif
%global target_kdevel %((LANG_ALL="C" rpm -q --whatprovides `(cd %{_kmoduledir}/build; /bin/pwd)` --qf "%%{NAME} = %%{VERSION}-%%{RELEASE}\\n" | grep -v 'not owned' | tail -1) 2>/dev/null)
%global HAVE_urpmkmps 0
%global HAVE_susekmps 0
%global HAVE_rhatkmps %{HAVE_weakmods}
%if %{HAVE_zypprepo}
%global HAVE_urpmkmps 0
%global HAVE_susekmps %{HAVE_weakmods}
%global HAVE_rhatkmps 0
%endif
%if %{HAVE_urpmirepo}
%global HAVE_urpmkmps %{HAVE_weakmods}
%global HAVE_susekmps 0
%global HAVE_rhatkmps 0
%endif
%if %(test '%{_vendor}' = 'suse' && echo 1 || echo 0)
%global HAVE_urpmkmps 0
%global HAVE_susekmps %{HAVE_weakmods}
%global HAVE_rhatkmps 0
%endif
%if %(if (rpm -q --whatprovides /boot/%{kernel_symvers} >/dev/null 2>&1) ; then echo 1; else echo 0; fi)
%global NEED_symvers 0
%endif
%if %{HAVE_newmods}
%global USE_makedev 0
%endif
%if %{USE_makedev}
%global USE_mknods 0
%global USE_rmnods 0
%global devicesfile -f %{makedev}
%endif
%global HAVE_binaries 0
%if %{HAVE_binfiles}
%global HAVE_binaries 1
%endif
%if %{HAVE_sbinfiles}
%global HAVE_binaries 1
%endif
%if %{HAVE_sysbinfiles}
%global HAVE_binaries 1
%endif
%if %{HAVE_syssbinfiles}
%global HAVE_binaries 1
%endif
%if %{HAVE_libraries}
%global HAVE_binaries 1
%endif
%if %{HAVE_lib32compat}
%global HAVE_binaries 1
%endif
%if %{HAVE_testfiles}
%global HAVE_binaries 1
%endif
%if %{HAVE_test32files}
%global HAVE_binaries 1
%endif
%if %{HAVE_snmpmods}
%global HAVE_binaries 1
%endif
%if %{HAVE_snmp32mods}
%global HAVE_binaries 1
%endif
%global FILES_binfiles %{HAVE_binfiles}
%global FILES_sbinfiles %{HAVE_sbinfiles}
%global FILES_sysbinfiles %{HAVE_sysbinfiles}
%global FILES_syssbinfiles %{HAVE_syssbinfiles}
%global FILES_preloads %{HAVE_preloads}
%global FILES_oldprel %{HAVE_oldprel}
%global FILES_newprel %{HAVE_newprel}
%global FILES_wrapper %{HAVE_wrapper}
%global FILES_modules %{HAVE_modules}
%global FILES_kupdate %{HAVE_kupdate}
%global FILES_wmscripts %{HAVE_wmscripts}
%global FILES_oldmods %{HAVE_oldmods}
%global FILES_newmods %{HAVE_newmods}
%global FILES_libraries %{HAVE_libraries}
%global FILES_libstatic %{HAVE_libraries}
%global FILES_lib32compat %{HAVE_lib32compat}
%global FILES_lib32static %{HAVE_lib32compat}
%global FILES_perlmods %{HAVE_perlmods}
%global FILES_tcllibs %{HAVE_tcllibs}
%global FILES_gcjlibs %{HAVE_gcjlibs}
%global FILES_gcjmaps %{HAVE_gcjmaps}
%global FILES_jarfiles %{HAVE_jarfiles}
%global FILES_jnilibs %{HAVE_jnilibs}
%global FILES_javadoc %{HAVE_javadoc}
%global FILES_locales %{HAVE_locales}
%global FILES_tools %{HAVE_tools}
%global FILES_initscripts %{HAVE_initscripts}
%global FILES_devscripts %{HAVE_devscripts}
%global FILES_configfiles %{HAVE_configfiles}
%global FILES_testfiles %{HAVE_testfiles}
%global FILES_test32files %{HAVE_test32files}
%global FILES_testscripts %{HAVE_testscripts}
%global FILES_sendpr %{HAVE_sendpr}
%global FILES_mibfiles %{HAVE_mibfiles}
%global FILES_snmpmods %{HAVE_snmpmods}
%global FILES_snmp32mods %{HAVE_snmp32mods}
%global FILES_gdmofiles %{HAVE_gdmofiles}
%global FILES_netconfig %{HAVE_netconfig}
%global FILES_sock2path %{HAVE_sock2path}
%global FILES_manrefs %{HAVE_manrefs}
%global FILES_manmacros %{HAVE_manmacros}
%global FILES_manpages %{HAVE_manpages}
%global FILES_snmpconf %{HAVE_snmpconf}
%global FILES_debugfiles %{HAVE_debugfiles}
%global FILES_kdebugfiles %{HAVE_kdebugfiles}
%global FILES_sourcefiles %{HAVE_sourcefiles}
%global FILES_docfiles %{HAVE_docfiles}
%global FILES_includes %{HAVE_includes}
%global FILES_symvers %{HAVE_symvers}
%global FILES_weakmods %{HAVE_weakmods}
%global FILES_mkvars %{HAVE_mkvars}
%global FILES_yumrepo %{HAVE_yumrepo}
%global FILES_zypprepo %{HAVE_zypprepo}
%global FILES_urpmirepo %{HAVE_urpmirepo}
%global FILES_aptrepo %{HAVE_aptrepo}
%global FILES_lcacerts %{HAVE_lcacerts}
%global FILES_sslcerts %{HAVE_sslcerts}
%global FILES_repo 0
%if %{FILES_yumrepo}
%global FILES_repo 1
%endif
%if %{FILES_zypprepo}
%global FILES_repo 1
%endif
%if %{FILES_urpmirepo}
%global FILES_repo 1
%endif
%if %{FILES_aptrepo}
%global FILES_repo 1
%endif
# Try to reduce the side of the -doc package: skip txt, dvi and ps.
%global FILES_infofiles %{HAVE_manuals}
#global FILES_txtfiles #{HAVE_manuals}
#global FILES_dvifiles #{HAVE_manuals}
#global FILES_psfiles #{HAVE_manuals}
# FIXME: Skip documentation for texting
%global FILES_txtfiles 0
%global FILES_dvifiles 0
%global FILES_psfiles 0
%global FILES_pdffiles 0
%global FILES_htmlfiles 0
%global FILES_pngfiles 0
%global FILES_cssfiles 0
#global FILES_pdffiles #{HAVE_manuals}
#global FILES_htmlfiles #{HAVE_manuals}
#global FILES_pngfiles #{HAVE_pngfiles}
#global FILES_cssfiles #{HAVE_cssfiles}
# These are the defaults for the WITH_zzz macros. These
# defaults can be changed by passing --with-zzz or --without-zzz
# to the rpmbuild command. The default is to build almost
# everything.
%global WITH_wrapper 0
%global WITH_modules 1
%global WITH_devel 1
%global WITH_tools 1
%global WITH_noarch 1
%global WITH_arch 1
%global WITH_source 0
%global WITH_snmp 1
%global WITH_java 1
%global WITH_mibs 1
%global WITH_docs 1
%global WITH_manrefs 1
%global WITH_manmacros 1
%global WITH_debug %{_enable_debug_packages}
%global WITH_texinfo 1
%global WITH_texinfo_html 1
%global WITH_texinfo_print 1
%global WITH_papers 1
%global WITH_papers_html 1
%global WITH_papers_print 1
%global WITH_drafts 1
%global WITH_drafts_html 0
%global WITH_drafts_print 1
# Because we only need to build the tools binaries once for each
# architecture, but need to build the modules binaries once for
# each architecture and kernel vesion, we accept --with[out]-zzz
# options "modules" and "tools". There are number of other
# options as well.
%{?_without_wrapper_module: %{expand: %%global WITH_wrapper 0}}
%{?_with_wrapper_module: %{expand: %%global WITH_wrapper 1}}
%{?_without_modules: %{expand: %%global WITH_modules 0}}
%{?_with_modules: %{expand: %%global WITH_modules 1}}
%{?_without_devel: %{expand: %%global WITH_devel 0}}
%{?_with_devel: %{expand: %%global WITH_devel 1}}
%{?_without_tools: %{expand: %%global WITH_tools 0}}
%{?_with_tools: %{expand: %%global WITH_tools 1}}
%{?_without_indep: %{expand: %%global WITH_noarch 0}}
%{?_with_indep: %{expand: %%global WITH_noarch 1}}
%{?_without_arch: %{expand: %%global WITH_arch 0}}
%{?_with_arch: %{expand: %%global WITH_arch 1}}
%{?_with_public: %{expand: %%global WITH_source 1}}
%{?_with_k_package: %{expand: %%global WITH_source 1}}
%{?_without_snmp_agent: %{expand: %%global WITH_snmp 0}}
%{?_without_snmp_agent: %{expand: %%global WITH_mibs 0}}
%{?_with_snmp_agent: %{expand: %%global WITH_snmp 1}}
%{?_with_snmp_agent: %{expand: %%global WITH_mibs 1}}
%{?_without_docs: %{expand: %%global WITH_docs 0}}
%{?_with_docs: %{expand: %%global WITH_docs 1}}
%{?_without_cooked_manpages: %{expand: %%global WITH_manrefs 1}}
%{?_without_cooked_manpages: %{expand: %%global WITH_manmacros 1}}
%{?_with_cooked_manpages: %{expand: %%global WITH_manrefs 0}}
%{?_with_cooked_manpages: %{expand: %%global WITH_manmacros 0}}
%{?_with_java: %{expand: %%global WITH_java 1}}
%{?_without_java: %{expand: %%global WITH_java 0}}
%{?_without_texinfo: %{expand: %%global WITH_texinfo 0}}
%{?_without_texinfo: %{expand: %%global WITH_texinfo_html 0}}
%{?_without_texinfo: %{expand: %%global WITH_texinfo_print 0}}
%{?_without_texinfo_html: %{expand: %%global WITH_texinfo_html 0}}
%{?_without_texinfo_print: %{expand: %%global WITH_texinfo_print 0}}
%{?_without_papers: %{expand: %%global WITH_papers 0}}
%{?_without_papers: %{expand: %%global WITH_papers_html 0}}
%{?_without_papers: %{expand: %%global WITH_papers_print 0}}
%{?_without_papers_html: %{expand: %%global WITH_papers_html 0}}
%{?_without_papers_print: %{expand: %%global WITH_papers_print 0}}
%{?_without_drafts: %{expand: %%global WITH_drafts 0}}
%{?_without_drafts: %{expand: %%global WITH_drafts_html 0}}
%{?_without_drafts: %{expand: %%global WITH_drafts_print 0}}
%{?_without_drafts_html: %{expand: %%global WITH_drafts_html 0}}
%{?_without_drafts_print: %{expand: %%global WITH_drafts_print 0}}
%if %{WITH_texinfo}
%else
%global HAVE_infofiles 0
%global FILES_infofiles 0
%endif
%global WITH_txtfiles 0
%if %{WITH_texinfo}
%global WITH_txtfiles 1
%endif
%if %{WITH_drafts}
%global WITH_txtfiles 1
%endif
%if %{WITH_txtfiles}
%else
%global HAVE_txtfiles 0
%global FILES_txtfiles 0
%endif
%global WITH_htmlfiles 0
%global WITH_cssfiles 0
%if %{WITH_texinfo_html}
%global WITH_htmlfiles 1
%endif
%if %{WITH_papers_html}
%global WITH_htmlfiles 1
%global WITH_cssfiles 1
%endif
%if %{WITH_drafts_html}
%global WITH_htmlfiles 1
%endif
%if %{WITH_htmlfiles}
%else
%global HAVE_htmlfiles 0
%global HAVE_pngfiles 0
%global HAVE_cssfiles 0
%global FILES_htmlfiles 0
%global FILES_pngfiles 0
%global FILES_cssfiles 0
%endif
%global WITH_printfiles 0
%if %{WITH_texinfo_print}
%global WITH_printfiles 1
%endif
%if %{WITH_papers_print}
%global WITH_printfiles 1
%endif
%if %{WITH_drafts_print}
%global WITH_printfiles 1
%endif
%if %{WITH_printfiles}
%else
%global HAVE_dvifiles 0
%global HAVE_psfiles 0
%global HAVE_pdffiles 0
%global FILES_dvifiles 0
%global FILES_psfiles 0
%global FILES_pdffiles 0
%endif
%global BUILD_modules %{WITH_modules}
%global BUILD_devel %{WITH_devel}
%global BUILD_tools %{WITH_tools}
%global BUILD_noarch %{WITH_noarch}
%global BUILD_arch %{WITH_arch}
%global BUILD_source %{WITH_source}
%global BUILD_snmp %{WITH_snmp}
%global BUILD_java %{WITH_java}
%global BUILD_mibs %{WITH_mibs}
%global BUILD_docs %{WITH_docs}
%global BUILD_manrefs %{WITH_manrefs}
%global BUILD_manmacros %{WITH_manmacros}
%global BUILD_debug %{WITH_debug}
# define new autoconf 2.60, 2.61 stuff
%{!?_usrlib: %{expand: %%global _usrlib %%{_prefix}/lib}}
%{!?_datarootdir: %{expand: %%global _datarootdir %%{_datadir}}}
%{!?_docdir: %{expand: %%global _docdir %%{_datarootdir}/doc}}
%{!?_htmldir: %{expand: %%global _htmldir %%{_docdir}}}
%{!?_dvidir: %{expand: %%global _dvidir %%{_docdir}}}
%{!?_pdfdir: %{expand: %%global _pdfdir %%{_docdir}}}
%{!?_psdir: %{expand: %%global _psdir %%{_docdir}}}
%{!?_localedir: %{expand: %%global _localedir %%{_datadir}/locale}}
%{!?_configdir: %{expand: %%global _configdir %%{_sysconfdir}/sysconfig}}
%{!?_modutildir: %{expand: %%global _modutildir %%{_sysconfdir}/modutils}}
%{!?_kmoduledir: %{expand: %%global _kmoduledir /lib/modules/%%{kernel_version}}}
%{!?_kbuilddir: %{expand: %%global _kbuilddir %%{_kmoduledir}/build}}
%{!?_pkglibexecdir: %{expand: %%global _pkglibexecdir %%{_libexecdir}/%%{name}}}
%{!?_snmpmibdir: %{expand: %%global _snmpmibdir %%{_datarootdir}/snmp/mibs}}
%{!?_snmpdlmoddir: %{expand: %%global _snmpdlmoddir %%{_libdir}/snmp/dlmod}}
%{!?_snmpconfdir: %{expand: %%global _snmpconfdir %%{_sysconfdir}/snmp}}
%{!?_lib32dir: %{expand: %%global _lib32dir %%{_exec_prefix}/lib}}
%{!?_pkglibexec32dir: %{expand: %%global _pkglibexec32dir %%{_pkglibexecdir}/lib32}}
%{!?_syslib32dir: %{expand: %%global _syslib32dir /lib}}
%{!?_syslibdir: %{expand: %%global _syslibdir %(echo %{_libdir} | sed 's,/usr,,')}}
%{!?_sysbindir: %{expand: %%global _sysbindir %(echo %{_bindir} | sed 's,/usr,,')}}
%{!?_syssbindir: %{expand: %%global _syssbindir %(echo %{_sbindir} | sed 's,/usr,,')}}
%{!?_snmpdlmod32dir: %{expand: %%global _snmpdlmod32dir %%{_lib32dir}/snmp/dlmod}}
%{!?_gcjdir: %{expand: %%global _gcjdir %%{_libdir}/gcj}}
%{!?_pkggcjdir: %{expand: %%global _pkggcjdir %%{_gcjdir}/%%{name}}}
%{!?_jnidir: %{expand: %%global _jnidir %%{_libdir}/java}}
%{!?_javadir: %{expand: %%global _javadir %%{_datadir}/java}}
%{!?_javadocdir: %{expand: %%global _javadocdir %%{_datadir}/javadoc}}
%{!?_pkgjavadocdir: %{expand: %%global _pkgjavadocdir %%{_javadocdir}/%%{name}}}
%{!?_tcllibdir: %{expand: %%global _tcllibdir %%{_libdir}}}
%{!?_tclsrcdir: %{expand: %%global _tclsrcdir %%{_datadir}}}
%{!?_pkgtcllibdir: %{expand: %%global _pkgtcllibdir %%{_tcllibdir}/@PACKAGE_NAME@@PACKAGE_VERSION@}}
%{!?_perldir: %{expand: %%global _perldir %(eval "`perl -V:installvendorarch`"; echo $installvendorarch | sed -e 's,//*$,,')}}
%{!?_yumrepodir: %{expand: %%global _yumrepodir %(if test -d %{_sysconfdir}/yum/repos.d; then echo %{_sysconfdir}/yum/repos.d; else echo %{_sysconfdir}/yum.repos.d; fi)}}
%{!?_yumplugdir: %{expand: %%global _yumplugdir %%{_libdir}/yum-plugins}}
%{!?_yumdir: %{expand: %%global _yumdir %%{_sysconfdir}/yum}}
%{!?_yumconfdir: %{expand: %%global _yumconfdir %%{_sysconfdir}/yum/pluginconf.d}}
%{!?_zypprepodir: %{expand: %%global _zypprepodir %%{_sysconfdir}/zypp/repos.d}}
%{!?_zyppcreddir: %{expand: %%global _zyppcreddir %%{_sysconfdir}/zypp/credentials.d}}
%{!?_zyppservdir: %{expand: %%global _zyppservdir %%{_sysconfdir}/zypp/services.d}}
%{!?_rpmgpgdir: %{expand: %%global _rpmgpgdir %%{_sysconfdir}/pki/rpm-gpg}}
%{!?_urpmirepodir: %{expand: %%global _urpmirepodir %%{_sysconfdir}/urpmi/mediacfg.d}}
%{!?_urpmiconfdir: %{expand: %%global _urpmiconfdir %%{_sysconfdir}/urpmi}}
%{!?_aptconfdir: %{expand: %%global _aptconfdir %%{_sysconfdir}/apt}}
%{!?_aptrepodir: %{expand: %%global _aptrepodir %%{_aptconfdir}/sources.list.d}}
%{!?_aptvenddir: %{expand: %%global _aptvenddir %%{_aptconfdir}/vendors.list.d}}
%{!?_ssldir: %{expand: %%global _ssldir %%{_sysconfdir}/ssl}}
%{!?_sslcertdir: %{expand: %%global _sslcertdir %%{_ssldir}/certs}}
%{!?_cacertdir: %{expand: %%global _cacertdir %%{_datarootdir}/ca-certificates}}
%{!?_lcacertdir: %{expand: %%global _lcacertdir %%{_prefix}/local/share/ca-certificates}}
%if %{HAVE_systemd}
%{!?_modprobeddir: %{expand: %%global _modprobeddir %%{_usrlib}/modprobe.d}}
%{!?_sysctlddir: %{expand: %%global _sysctlddir %%{_usrlib}/sysctl.d}}
%{!?_modloadddir: %{expand: %%global _modloadddir %%{_usrlib}/modules-load.d}}
%{!?_unitdir: %{expand: %%global _unitdir %%{_usrlib}/systemd/system}}
%else
%{!?_modprobeddir: %{expand: %%global _modprobeddir %%{_sysconfdir}/modprobe.d}}
%{!?_sysctlddir: %{expand: %%global _sysctlddir %%{_sysconfdir}/sysctl.d}}
%endif
%{!?_repobase: %{expand: %%global _repobase @repobase@}}
%{!?_reporoot: %{expand: %%global _reporoot @reporoot@}}
%{!?_reposerv: %{expand: %%global _reposerv @reposerv@}}
# ---------------------------------------------------------------------------
# Calculate which files were not built (and are not included)
# ---------------------------------------------------------------------------
%global kernel_fedora %(echo %{_kversion} | sed -r -e 's,.*FC[456].*$,1,;t;s,.*\.fc[1]?[1-9].*$,1,;t;s,.*\.EL[45]?.*$,1,;t;s,.*\.el[567].*$,1,;t;s,.*$,0,')
%global kernel_others %(echo %{_kversion} | sed -r -e 's,.*FC[456].*$,0,;t;s,.*\.fc[1]?[1-9].*$,0,;t;s,.*\.EL[45]?.*$,0,;t;s,.*\.el[567].*$,0,;t;s,.*$,1,')
%{!?VIRT_virt: %{expand: %%global VIRT_virt 0}}
%{!?VIRT_repo: %{expand: %%global VIRT_repo 0}}
%{!?VIRT_base: %{expand: %%global VIRT_base 0}}
%{!?VIRT_doc: %{expand: %%global VIRT_doc 0}}
%{!?VIRT_lib: %{expand: %%global VIRT_lib 0}}
%{!?VIRT_compat:%{expand: %%global VIRT_compat 0}}
%{!?VIRT_devel: %{expand: %%global VIRT_devel 0}}
%{!?VIRT_debug: %{expand: %%global VIRT_debug 0}}
%{!?VIRT_wrap: %{expand: %%global VIRT_wrap 0}}
%{!?VIRT_kmod: %{expand: %%global VIRT_kmod 0}}
%{!?VIRT_kdev: %{expand: %%global VIRT_kdev 0}}
%{!?VIRT_kbug: %{expand: %%global VIRT_kbug 0}}
%{!?VIRT_ksrc: %{expand: %%global VIRT_ksrc 0}}
%{!?VIRT_lmod: %{expand: %%global VIRT_lmod 0}}
%{!?VIRT_ldev: %{expand: %%global VIRT_ldev 0}}
%{!?VIRT_lbug: %{expand: %%global VIRT_lbug 0}}
%{!?VIRT_lsrc: %{expand: %%global VIRT_lsrc 0}}
%{!?VIRT_java: %{expand: %%global VIRT_java 0}}
%{!?VIRT_jdoc: %{expand: %%global VIRT_jdoc 0}}
%if %{BUILD_modules}
%else
%global VIRT_ksrc 0
%global kernel_fedora 0
%global kernel_others 0
%global FILES_wrapper 0
%global FILES_modules 0
%global FILES_kdebugfiles 0
%global FILES_symvers 0
%global FILES_weakmods 0
%global FILES_mkvars 0
%global FILES_sourcefiles 0
%endif
%if %{BUILD_devel}
%else
%global FILES_includes 0
%global FILES_libstatic 0
%global FILES_lib32static 0
%global FILES_javadoc 0
%global FILES_infofiles 0
%global FILES_txtfiles 0
%global FILES_dvifiles 0
%global FILES_psfiles 0
%global FILES_pdffiles 0
%global FILES_htmlfiles 0
%global FILES_pngfiles 0
%global FILES_cssfiles 0
%global FILES_manrefs 0
%global FILES_manmacros 0
%global FILES_manpages 0
%global FILES_debugfiles 0
%global FILES_testscripts 0
%global FILES_sendpr 0
%endif
%if %{BUILD_tools}
%else
%global FILES_binfiles 0
%global FILES_sbinfiles 0
%global FILES_sysbinfiles 0
%global FILES_syssbinfiles 0
%global FILES_includes 0
%global FILES_libraries 0
%global FILES_libstatic 0
%global FILES_lib32compat 0
%global FILES_lib32static 0
%global FILES_netconfig 0
%global FILES_sock2path 0
%global FILES_perlmods 0
%global FILES_tcllibs 0
%global FILES_gcjlibs 0
%global FILES_gcjmaps 0
%global FILES_jarfiles 0
%global FILES_jnilibs 0
%global FILES_locales 0
%global FILES_tools 0
%global FILES_gdmofiles 0
%global FILES_testfiles 0
%global FILES_test32files 0
%global FILES_snmpconf 0
%global FILES_snmpmods 0
%global FILES_snmp32mods 0
%global FILES_debugfiles 0
%endif
%if %{BUILD_noarch}
%else
%global VIRT_base 0
%global VIRT_jdoc 0
%global FILES_infofiles 0
%global FILES_txtfiles 0
%global FILES_dvifiles 0
%global FILES_psfiles 0
%global FILES_pdffiles 0
%global FILES_htmlfiles 0
%global FILES_pngfiles 0
%global FILES_cssfiles 0
%global FILES_initscripts 0
%global FILES_devscripts 0
%global FILES_configfiles 0
%global FILES_mibfiles 0
%global FILES_javadoc 0
%global FILES_manrefs 0
%global FILES_manmacros 0
%global FILES_docfiles 0
%global FILES_testscripts 0
%global FILES_sendpr 0
%global FILES_manpages 0
%global FILES_yumrepo 0
%global FILES_zypprepo 0
%global FILES_lcacerts 0
%global FILES_sslcerts 0
%global FILES_urpmirepo 0
%global FILES_aptrepo 0
%global FILES_repo 0
%global FILES_kupdate 0
%global FILES_wmscripts 0
%endif
%if %{BUILD_arch}
%else
%global FILES_binfiles 0
%global FILES_sbinfiles 0
%global FILES_sysbinfiles 0
%global FILES_syssbinfiles 0
%global FILES_wrapper 0
%global FILES_modules 0
%global FILES_includes 0
%global FILES_libraries 0
%global FILES_libstatic 0
%global FILES_lib32compat 0
%global FILES_lib32static 0
%global FILES_netconfig 0
%global FILES_sock2path 0
%global FILES_perlmods 0
%global FILES_tcllibs 0
%global FILES_gcjlibs 0
%global FILES_gcjmaps 0
%global FILES_jarfiles 0
%global FILES_jnilibs 0
%global FILES_locales 0
%global FILES_tools 0
%global FILES_gdmofiles 0
%global FILES_testfiles 0
%global FILES_test32files 0
%global FILES_snmpconf 0
%global FILES_snmpmods 0
%global FILES_snmp32mods 0
%global FILES_debugfiles 0
%global FILES_kdebugfiles 0
%global FILES_symvers 0
%global FILES_weakmods 0
%global FILES_mkvars 0
%global FILES_sourcefiles 0
%endif
%if %{BUILD_source}
%else
%global FILES_sourcefiles 0
%endif
%if %{BUILD_snmp}
%else
%global FILES_snmpconf 0
%global FILES_snmpmods 0
%global FILES_snmp32mods 0
%global FILES_mibfiles 0
%endif
%if %{BUILD_mibs}
%else
%global FILES_mibfiles 0
%endif
%if %{BUILD_docs}
%else
%global FILES_javadoc 0
%endif
%if %{BUILD_java}
%else
%global FILES_javadoc 0
%global FILES_gcjlibs 0
%global FILES_gcjmaps 0
%global FILES_jarfiles 0
%global FILES_jnilibs 0
%endif
%if %{BUILD_manrefs}
%else
%global FILES_manrefs 0
%endif
%if %{BUILD_manmacros}
%else
%global FILES_manmacros 0
%endif
%if %{BUILD_debug}
%global __debug_package 1
%else
%global FILES_debugfiles 0
%global FILES_kdebugfiles 0
%endif
%global debug_package %{nil}
# ---------------------------------------------------------------------------
# Determine whether we are building binaries.
# ---------------------------------------------------------------------------
%global FILES_binaries 0
%if %{FILES_binfiles}
%global FILES_binaries 1
%endif
%if %{FILES_sbinfiles}
%global FILES_binaries 1
%endif
%if %{FILES_sysbinfiles}
%global FILES_binaries 1
%endif
%if %{FILES_syssbinfiles}
%global FILES_binaries 1
%endif
%if %{FILES_libraries}
%global FILES_binaries 1
%endif
%if %{FILES_libstatic}
%global FILES_binaries 1
%endif
%if %{FILES_lib32compat}
%global FILES_binaries 1
%endif
%if %{FILES_lib32static}
%global FILES_binaries 1
%endif
%if %{FILES_testfiles}
%global FILES_binaries 1
%endif
%if %{FILES_test32files}
%global FILES_binaries 1
%endif
%if %{FILES_snmpmods}
%global FILES_binaries 1
%endif
%if %{FILES_snmp32mods}
%global FILES_binaries 1
%endif
# ---------------------------------------------------------------------------
# Calculate which packages we want (and don't want).
# ---------------------------------------------------------------------------
%if %{VIRT_virt}
%global WANT_virt 1
%global NEED_virt 1
%else
%global WANT_virt 0
%global NEED_virt 0
%endif