forked from adam-stokes/deprecated-matahari-bm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
matahari.spec.in
865 lines (712 loc) · 22.4 KB
/
matahari.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
%global specversion 102
%global upstream_version 2ce6cba
# Messaging buses
%bcond_without dbus
%bcond_without qmf
# Choose a versioning scheme
%bcond_without pre_release
%if %{defined _unitdir}
%global systemd 1
%else
%global systemd 0
%endif
%if %{with pre_release}
%global mh_release 0.%{specversion}.%{upstream_version}.git
%else
%global mh_release %{specversion}
%endif
Name: matahari
Version: #MATAHARI_VERSION#
Release: %{mh_release}%{?dist}
Summary: Matahari QMF Agents for Linux guests
Group: Applications/System
License: GPLv2
URL: http://matahariproject.org
# wget --no-check-certificate -O matahari-matahari-{upstream_version}.tgz https://github.com/matahari/matahari/tarball/{upstream_version}
Source0: matahari-matahari-%{upstream_version}.tgz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
# NOTE: The host API uses dbus for the machine uuid
Requires: dbus
Requires: qmf > 0.7
Requires: pcre
Requires: %{name}-core = %{version}-%{release}
Requires: %{name}-consoles = %{version}-%{release}
Requires: %{name}-broker = %{version}-%{release}
Requires: %{name}-host = %{version}-%{release}
Requires: %{name}-network = %{version}-%{release}
Requires: %{name}-rpc = %{version}-%{release}
Requires: %{name}-service = %{version}-%{release}
Requires: %{name}-shell = %{version}-%{release}
Requires: %{name}-sysconfig = %{version}-%{release}
BuildRequires: cmake
BuildRequires: libuuid-devel
BuildRequires: gcc-c++
BuildRequires: pcre-devel
BuildRequires: glib2-devel
BuildRequires: sigar-devel
BuildRequires: libcurl-devel
BuildRequires: nss-devel
BuildRequires: help2man
BuildRequires: augeas-devel >= 0.9.0
BuildRequires: python2-devel
%if %{with qmf}
BuildRequires: qpid-cpp-client-devel > 0.7
BuildRequires: qpid-qmf-devel > 0.7
%endif
%if %{with dbus}
BuildRequires: dbus-devel dbus-glib-devel polkit-devel libxslt
%endif
%if %{defined run_unit_tests}
BuildRequires: cxxtest
%endif
%description
Matahari provides QMF Agents that can be used to control and manage
various pieces of functionality, using the AMQP protocol.
The Advanced Message Queuing Protocol (AMQP) is an open standard application
layer protocol providing reliable transport of messages.
QMF provides a modeling framework layer on top of qpid (which implements
AMQP). This interface allows you to manage a host and its various components
as a set of objects with properties and methods.
%package core
License: GPLv2+
Summary: Core files for Matahari
Group: Applications/System
Requires(pre): shadow-utils
%description core
Core files for Matahari
%if %{with qmf}
%package broker
License: GPLv2+
Summary: Optional AMQP Broker for Matahari
Group: Applications/System
Requires: %{name}-core = %{version}-%{release}
Requires: %{name}-lib = %{version}-%{release}
Requires: qpid-cpp-server > 0.7
Requires: qpid-cpp-server-ssl > 0.7
Requires: qmf > 0.7
Requires: qpid-tools
Requires(post): chkconfig
Requires(preun):chkconfig
Requires(preun):initscripts
%description broker
Optional AMQP Broker for Matahari
%endif
%package vios-proxy-host
License: ASL 2.0
Summary: Network proxy using virtioserial for QEMU host
Group: Applications/System
Requires: %{name}-broker = %{version}-%{release}
Requires: vios-proxy-host
Requires(post): chkconfig
Requires(preun): chkconfig
Requires(preun): initscripts
%description vios-proxy-host
%{name} specific host initialization scripts
%package vios-proxy-guest
License: ASL 2.0
Summary: Network proxy using virtioserial for QEMU guest
Group: Applications/System
Requires: %{name}-broker = %{version}-%{release}
Requires: vios-proxy-guest
Requires(post): chkconfig
Requires(preun): chkconfig
Requires(preun): initscripts
%description vios-proxy-guest
%{name} specific guest initialization scripts
%package lib
License: GPLv2+
Summary: C libraries used by Matahari agents
Group: Applications/System
Requires: %{name}-core = %{version}-%{release}
%description lib
C libraries used by Matahari agents
%package agent-lib
License: GPLv2+
Summary: C++ library used by Matahari agents
Group: Applications/System
Requires: %{name}-lib = %{version}-%{release}
Requires: qpid-cpp-client-ssl > 0.7
Requires: kstart
%description agent-lib
C++ library containing the base class for Matahari agents
%package python
License: GPLv2+
Summary: Matahari Python API
Group: Applications/System
Requires: python-qpid-qmf
%description python
Python libraries for Matahari
%package shell
License: GPLv2+
Summary: Matahari Shell (mhsh)
Group: Applications/System
Requires: %{name}-python = %{version}-%{release}
%description shell
Interactive shell for accessing Matahari agents
%package dbus-bridge
License: GPLv2+
Summary: QMF agent that bridges to D-Bus
Group: Applications/System
Requires: %{name}-lib = %{version}-%{release}
Requires: %{name}-agent-lib = %{version}-%{release}
Requires(post): chkconfig
Requires(preun):chkconfig
Requires(preun):initscripts
%description dbus-bridge
QMF agent for interacting with D-Bus objects on the system
%package host
License: GPLv2+
Summary: QMF agent for remote hosts
Group: Applications/System
Requires: %{name}-lib = %{version}-%{release}
Requires: %{name}-agent-lib = %{version}-%{release}
%ifarch i386 x86_64
Requires: dmidecode
%endif
Requires(post): chkconfig
Requires(preun):chkconfig
Requires(preun):initscripts
# Power management functions in host agent require tuned
Requires: tuned
%description host
QMF agent for viewing and controlling remote hosts
%package network
License: GPLv2+
Summary: QMF agent for network devices
Group: Applications/System
Requires: %{name}-lib = %{version}-%{release}
Requires: %{name}-agent-lib = %{version}-%{release}
Requires(post): chkconfig
Requires(preun):chkconfig
Requires(preun):initscripts
Obsoletes: matahari-net < %{version}-%{release}
%description network
QMF agent for viewing and controlling network devices
%package rpc
License: GPLv2+
Summary: QMF agent for RPC plugins
Group: Applications/System
Requires: %{name}-lib = %{version}-%{release}
Requires: %{name}-agent-lib = %{version}-%{release}
Requires: %{name}-python = %{version}-%{release}
Requires(post): chkconfig
Requires(preun):chkconfig
Requires(preun):initscripts
%description rpc
QMF agent for dispatching RPC calls to plugins
%package service
License: GPLv2+
Summary: QMF agent for system services
Group: Applications/System
Requires: %{name}-lib = %{version}-%{release}
Requires: %{name}-agent-lib = %{version}-%{release}
Requires(post): chkconfig
Requires(preun):initscripts
Requires(preun):chkconfig
%description service
QMF agent for viewing and controlling system services
%package sysconfig
License: GPLv2+
Summary: QMF agent for post boot configuration services
Group: Applications/System
Requires: %{name}-lib = %{version}-%{release}
Requires: %{name}-agent-lib = %{version}-%{release}
Requires: puppet
Requires(post): chkconfig
Requires(preun):chkconfig
Requires(preun):initscripts
%description sysconfig
QMF agent/console for providing post boot capabilities.
%package devel
License: GPLv2+
Summary: Matahari development package
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
Requires: %{name}-lib = %{version}-%{release}
Requires: %{name}-agent-lib = %{version}-%{release}
Requires: qpid-cpp-client-devel > 0.7
Requires: qpid-qmf-devel > 0.7
Requires: glib2-devel
%description devel
Headers and shared libraries for developing Matahari agents.
%package consoles
License: GPLv2+
Summary: QMF console for monitoring various agents
Group: Applications/System
Requires: %{name}-lib = %{version}-%{release}
Requires: %{name}-agent-lib = %{version}-%{release}
%description consoles
QMF console for monitoring various agents
%prep
%setup -q -n matahari-matahari-%{upstream_version}
%build
%{cmake} -DCMAKE_BUILD_TYPE=RelWithDebInfo %{!?with_qmf: -DWITH-QMF:BOOL=OFF} %{!?with_dbus: -DWITH-DBUS:BOOL=OFF} -Dinitdir=%{_initddir} -Dsysconfdir=%{_sysconfdir} -Dsystemdunitdir=%{_unitdir} .
make -f Makefile %{?_smp_mflags}
%if %{defined run_unit_tests}
cd src/tests && ctest -V
%endif
%install
rm -rf %{buildroot}
make DESTDIR=%{buildroot} -f Makefile install
%if %{systemd}
rm -f $RPM_BUILD_ROOT/%{_sysconfdir}/rc.d/init.d/matahari-service
rm -f $RPM_BUILD_ROOT/%{_sysconfdir}/rc.d/init.d/matahari-network
rm -f $RPM_BUILD_ROOT/%{_sysconfdir}/rc.d/init.d/matahari-dbus-bridge
rm -f $RPM_BUILD_ROOT/%{_sysconfdir}/rc.d/init.d/matahari-host
rm -f $RPM_BUILD_ROOT/%{_sysconfdir}/rc.d/init.d/matahari-rpc
rm -f $RPM_BUILD_ROOT/%{_sysconfdir}/rc.d/init.d/matahari-sysconfig
rm -f $RPM_BUILD_ROOT/%{_sysconfdir}/rc.d/init.d/matahari-sysconfig-console
rm -f $RPM_BUILD_ROOT/%{_sysconfdir}/rc.d/init.d/matahari-broker
rm -f $RPM_BUILD_ROOT/%{_sysconfdir}/rc.d/init.d/matahari-vios-proxy-host
rm -f $RPM_BUILD_ROOT/%{_sysconfdir}/rc.d/init.d/matahari-vios-proxy-guest
%endif
%post -n matahari-lib -p /sbin/ldconfig
%postun -n matahari-lib -p /sbin/ldconfig
%post -n matahari-agent-lib -p /sbin/ldconfig
%postun -n matahari-agent-lib
# Can't use -p, gives: '/sbin/ldconfig: relative path `0' used to build cache' error
/sbin/ldconfig
%if %{with qmf}
#== D-Bus Bridge
%post dbus-bridge
%if %{systemd}
systemctl --system daemon-reload
%else
/sbin/chkconfig --add matahari-dbus-bridge
%endif
%preun dbus-bridge
if [ $1 = 0 ]; then
/sbin/service matahari-dbus-bridge stop >/dev/null 2>&1 || :
%if !%{systemd}
chkconfig --del matahari-dbus-bridge
%endif
fi
%postun dbus-bridge
if [ "$1" -ge "1" ]; then
/sbin/service matahari-dbus-bridge condrestart >/dev/null 2>&1 || :
fi
#== Host
%post host
%if %{systemd}
systemctl --system daemon-reload
%else
/sbin/chkconfig --add matahari-host
%endif
%preun host
if [ $1 = 0 ]; then
/sbin/service matahari-host stop >/dev/null 2>&1 || :
%if !%{systemd}
chkconfig --del matahari-host
%endif
fi
%postun host
if [ "$1" -ge "1" ]; then
/sbin/service matahari-host condrestart >/dev/null 2>&1 || :
fi
#== Network
%post network
%if %{systemd}
systemctl --system daemon-reload
%else
/sbin/chkconfig --add matahari-network
%endif
%preun network
if [ $1 = 0 ]; then
/sbin/service matahari-network stop >/dev/null 2>&1 || :
%if !%{systemd}
chkconfig --del matahari-network
%endif
fi
%postun network
if [ "$1" -ge "1" ]; then
/sbin/service matahari-network condrestart >/dev/null 2>&1 || :
fi
#== RPC
%post rpc
%if %{systemd}
systemctl --system daemon-reload
%else
/sbin/chkconfig --add matahari-rpc
%endif
%preun rpc
if [ $1 = 0 ]; then
/sbin/service matahari-rpc stop >/dev/null 2>&1 || :
%if !%{systemd}
chkconfig --del matahari-rpc
%endif
fi
%postun rpc
if [ "$1" -ge "1" ]; then
/sbin/service matahari-rpc condrestart >/dev/null 2>&1 || :
fi
#== Services
%post service
%if %{systemd}
systemctl --system daemon-reload
%else
/sbin/chkconfig --add matahari-service
%endif
%preun service
if [ $1 = 0 ]; then
/sbin/service matahari-service stop >/dev/null 2>&1 || :
%if !%{systemd}
chkconfig --del matahari-service
%endif
fi
%postun service
if [ "$1" -ge "1" ]; then
/sbin/service matahari-service condrestart >/dev/null 2>&1 || :
fi
#== sysconfig
%post sysconfig
%if %{systemd}
systemctl --system daemon-reload
%else
/sbin/chkconfig --add matahari-sysconfig
%endif
%preun sysconfig
if [ $1 = 0 ]; then
/sbin/service matahari-sysconfig stop >/dev/null 2>&1 || :
%if !%{systemd}
chkconfig --del matahari-sysconfig
%endif
fi
%postun sysconfig
if [ "$1" -ge "1" ]; then
/sbin/service matahari-sysconfig condrestart >/dev/null 2>&1 || :
fi
#== Broker
%post broker
%if %{systemd}
systemctl --system daemon-reload
%else
/sbin/chkconfig --add matahari-broker
%endif
%preun broker
if [ $1 = 0 ]; then
/sbin/service matahari-broker stop >/dev/null 2>&1 || :
%if !%{systemd}
chkconfig --del matahari-broker
%endif
fi
%postun broker
if [ "$1" -ge "1" ]; then
/sbin/service matahari-broker condrestart >/dev/null 2>&1 || :
fi
#== Vios Proxy Host
%post vios-proxy-host
%if %{systemd}
systemctl --system daemon-reload
%endif
%preun vios-proxy-host
if [ $1 = 0 ]; then
/sbin/service matahari-vios-proxy-host stop >/dev/null 2>&1 || :
%if !%{systemd}
chkconfig --del matahari-vios-proxy-host
%endif
fi
%postun vios-proxy-host
if [ "$1" -ge "1" ]; then
/sbin/service matahari-vios-proxy-host condrestart >/dev/null 2>&1 || :
fi
#== Vios Proxy guest
%post vios-proxy-guest
%if %{systemd}
systemctl --system daemon-reload
%endif
%preun vios-proxy-guest
if [ $1 = 0 ]; then
/sbin/service matahari-vios-proxy-guest stop >/dev/null 2>&1 || :
%if !%{systemd}
chkconfig --del matahari-vios-proxy-guest
%endif
fi
%postun vios-proxy-guest
if [ "$1" -ge "1" ]; then
/sbin/service matahari-vios-proxy-guest condrestart >/dev/null 2>&1 || :
fi
#== Core
%pre core
getent group qpidd >/dev/null || groupadd -r qpidd
exit 0
%endif
%clean
test "x%{buildroot}" != "x" && rm -rf %{buildroot}
%files
%defattr(644, root, root, 755)
%doc AUTHORS COPYING
%files agent-lib
%defattr(644, root, root)
%attr(755, -, -) %dir %{_datadir}/matahari/
%doc AUTHORS COPYING
%if %{with qmf}
%{_libdir}/libmcommon_qmf.so.*
%endif
%if %{with dbus}
%{_libdir}/libmcommon_dbus.so.*
%endif
%files lib
%defattr(644, root, root, 755)
%{_libdir}/libmcommon.so.*
%{_libdir}/libmhost.so.*
%{_libdir}/libmnetwork.so.*
%{_libdir}/libmrpc.so.*
%{_libdir}/libmservice.so.*
%{_libdir}/libmsysconfig.so.*
%doc AUTHORS COPYING
%files core
%defattr(644, root, root, 755)
%doc AUTHORS COPYING
%config(noreplace) %{_sysconfdir}/sysconfig/matahari
%if %{with qmf}
%dir %attr(0770, root, qpidd) %{_localstatedir}/lib/%{name}
%endif
%files python
%defattr(644, root, root, 755)
%doc AUTHORS COPYING
%dir %{python_sitelib}/matahari/
%{python_sitelib}/matahari/*.py
%{python_sitelib}/matahari/*.pyc
%{python_sitelib}/matahari/*.pyo
%files shell
%defattr(644, root, root, 755)
%doc AUTHORS COPYING
%attr(755, -, -) %{_bindir}/mhsh
%{python_sitelib}/matahari/shell/*.py
%{python_sitelib}/matahari/shell/*.pyc
%{python_sitelib}/matahari/shell/*.pyo
%{python_sitelib}/matahari/shell/interpreter/*.py
%{python_sitelib}/matahari/shell/interpreter/*.pyc
%{python_sitelib}/matahari/shell/interpreter/*.pyo
%files dbus-bridge
%defattr(644, root, root, 755)
%doc AUTHORS COPYING
%if %{systemd}
%{_unitdir}/matahari-dbus-bridge.service
%endif
%if %{with qmf}
%if !%{systemd}
%attr(755, root, root) %{_initddir}/matahari-dbus-bridge
%endif
%attr(755, root, root) %{_sbindir}/matahari-qmf-dbus-bridged
%{_mandir}/man8/matahari-qmf-dbus-bridged.8*
%endif
%files network
%defattr(644, root, root, 755)
%doc AUTHORS COPYING
%if %{systemd}
%{_unitdir}/matahari-network.service
%endif
%if %{with qmf}
%if !%{systemd}
%attr(755, root, root) %{_initddir}/matahari-network
%endif
%attr(755, root, root) %{_sbindir}/matahari-qmf-networkd
%{_mandir}/man8/matahari-qmf-networkd.8*
%endif
%if %{with dbus}
%attr(755, root, root) %{_sbindir}/matahari-dbus-networkd
%config %{_sysconfdir}/dbus-1/system.d/org.matahariproject.Network.conf
%{_datadir}/dbus-1/interfaces/org.matahariproject.Network.xml
%{_datadir}/dbus-1/system-services/org.matahariproject.Network.service
%{_datadir}/polkit-1/actions/org.matahariproject.Network.policy
%endif
%files host
%defattr(644, root, root, 755)
%doc AUTHORS COPYING
%if %{systemd}
%{_unitdir}/matahari-host.service
%endif
%if %{with qmf}
%if !%{systemd}
%attr(755, root, root) %{_initddir}/matahari-host
%endif
%attr(755, root, root) %{_sbindir}/matahari-qmf-hostd
%{_mandir}/man8/matahari-qmf-hostd.8*
%endif
%if %{with dbus}
%attr(755, root, root) %{_sbindir}/matahari-dbus-hostd
%config %{_sysconfdir}/dbus-1/system.d/org.matahariproject.Host.conf
%{_datadir}/polkit-1/actions/org.matahariproject.Host.policy
%{_datadir}/dbus-1/interfaces/org.matahariproject.Host.xml
%{_datadir}/dbus-1/system-services/org.matahariproject.Host.service
%endif
%files rpc
%defattr(644, root, root, 755)
%doc AUTHORS COPYING
%attr(0755, -, -) %dir /usr/lib/matahari/plugins
%if %{systemd}
%{_unitdir}/matahari-rpc.service
%endif
%if %{with qmf}
%if !%{systemd}
%attr(755, root, root) %{_initddir}/matahari-rpc
%endif
%attr(755, root, root) %{_sbindir}/matahari-qmf-rpcd
%{_mandir}/man8/matahari-qmf-rpcd.8*
%endif
%files service
%defattr(644, root, root, 755)
%doc AUTHORS COPYING
%if %{systemd}
%{_unitdir}/matahari-service.service
%endif
%if %{with qmf}
%if !%{systemd}
%attr(755, root, root) %{_initddir}/matahari-service
%endif
%attr(755, root, root) %{_sbindir}/matahari-qmf-serviced
%{_mandir}/man8/matahari-qmf-serviced.8*
%endif
%if %{with dbus}
%attr(755, root, root) %{_sbindir}/matahari-dbus-serviced
%config %{_sysconfdir}/dbus-1/system.d/org.matahariproject.Services.conf
%{_datadir}/dbus-1/interfaces/org.matahariproject.Services.xml
%{_datadir}/dbus-1/system-services/org.matahariproject.Services.service
%{_datadir}/polkit-1/actions/org.matahariproject.Services.policy
%{_datadir}/polkit-1/actions/org.matahariproject.Resources.policy
%endif
%files sysconfig
%defattr(644, root, root, 755)
%doc AUTHORS COPYING
%if %{systemd}
%{_unitdir}/matahari-sysconfig.service
%endif
%if %{with qmf}
%if !%{systemd}
%attr(755, root, root) %{_initddir}/matahari-sysconfig
%endif
%attr(755, root, root) %{_sbindir}/matahari-qmf-sysconfigd
%{_mandir}/man8/matahari-qmf-sysconfigd.8*
%endif
%if %{with dbus}
%attr(755, root, root) %{_sbindir}/matahari-dbus-sysconfigd
%config %{_sysconfdir}/dbus-1/system.d/org.matahariproject.Sysconfig.conf
%{_datadir}/dbus-1/interfaces/org.matahariproject.Sysconfig.xml
%{_datadir}/dbus-1/system-services/org.matahariproject.Sysconfig.service
%{_datadir}/polkit-1/actions/org.matahariproject.Sysconfig.policy
%endif
%files consoles
%defattr(644, root, root, 755)
%doc AUTHORS COPYING
%if %{with qmf}
%if !%{systemd}
%attr(755, root, root) %{_initddir}/matahari-sysconfig-console
%endif
%attr(755, root, root) %{_sbindir}/matahari-qmf-sysconfig-consoled
%{_mandir}/man8/matahari-qmf-sysconfig-consoled.8*
%attr(755, root, root) %{_sbindir}/matahari-qmf-service-cli
%{_mandir}/man8/matahari-qmf-service-cli.8*
%if %{systemd}
%{_unitdir}/matahari-sysconfig-console.service
%endif
%endif
%if %{with qmf}
%files broker
%defattr(644, root, root, 755)
%if !%{systemd}
%attr(755, root, root) %{_initddir}/matahari-broker
%endif
%config(noreplace) %{_sysconfdir}/sysconfig/matahari-broker
%config(noreplace) %{_sysconfdir}/matahari-broker.conf
%attr(755, root, root) %{_sbindir}/matahari-brokerd
%{_mandir}/man8/matahari-brokerd.8*
%doc AUTHORS COPYING
%if %{systemd}
%{_unitdir}/matahari-broker.service
%else
%ghost %dir %attr(0775, root, qpidd) %{_localstatedir}/run/%{name}
%endif
%else
%exclude %{_sysconfdir}/matahari-broker.conf
%endif
%files vios-proxy-host
%defattr(644, root, root, 755)
%config(noreplace) %{_sysconfdir}/sysconfig/matahari-vios-proxy
%if %{systemd}
%{_unitdir}/matahari-vios-proxy-host.service
%endif
%if %{with qmf}
%if !%{systemd}
%attr(755, root, root) %{_initddir}/matahari-vios-proxy-host
%endif
%endif
%files vios-proxy-guest
%defattr(644, root, root, 755)
%{_sysconfdir}/udev/rules.d/99-matahari-guest-agent.rules
%config(noreplace) %{_sysconfdir}/sysconfig/matahari-vios-proxy
%if %{systemd}
%{_unitdir}/matahari-vios-proxy-guest.service
%endif
%if %{with qmf}
%if !%{systemd}
%attr(755, root, root) %{_initddir}/matahari-vios-proxy-guest
%endif
%endif
%files devel
%defattr(644, root, root, 755)
%doc AUTHORS COPYING
%{_libdir}/libm*.so
%{_includedir}/matahari.h
%{_includedir}/matahari/config.h
%{_includedir}/matahari/logging.h
%{_includedir}/matahari/utilities.h
%{_includedir}/matahari/errors.h
%{_includedir}/matahari/dnssrv.h
%{_includedir}/matahari/host.h
%{_includedir}/matahari/network.h
%{_includedir}/matahari/rpc.h
%{_includedir}/matahari/sysconfig.h
%{_includedir}/matahari/services.h
%{_datadir}/cmake/Modules/FindMatahari.cmake
%{_datadir}/cmake/Modules/MatahariMacros.cmake
%if %{with qmf}
%{_includedir}/matahari/agent.h
%{_includedir}/matahari/object.h
%{_includedir}/matahari/mainloop.h
%{_datadir}/cmake/Modules/FindQPID.cmake
%endif
%if %{with dbus}
%{_includedir}/matahari/dbus_common.h
%{_includedir}/matahari/gobject_class.h
%{_datadir}/matahari/schema-to-dbus.xsl
%{_datadir}/matahari/dbus-to-c.xsl
%{_datadir}/matahari/check-policy.xsl
%endif
%changelog
* Wed Oct 12 2010 Andrew Beekhof <andrew@beekhof.net> - 0.4.0-0.8.ad8b81b.git
- Added the Network agent
- Removed unnecessary OO-ness from existing Host agent/schema
* Fri Oct 01 2010 Adam Stokes <astokes@fedoraproject.org> - 0.4.0-0.1.5e26232.git
- Add schema-net for network api
* Tue Sep 21 2010 Andrew Beekhof <andrew@beekhof.net> - 0.4.0-0.1.9fc30e4.git
- Pre-release of the new cross platform version of Matahari
- Add matahari broker scripts
* Thu Oct 08 2009 Arjun Roy <arroy@redhat.com> - 0.0.4-7
- Refactored for new version of qpidc.
* Fri Oct 02 2009 Kevin Kofler <Kevin@tigcc.ticalc.org> - 0.0.4-6
- Rebuild for new qpidc.
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.4-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
* Thu Jul 16 2009 Arjun Roy <arroy@redhat.com> - 0.0.4-4
- Changed buildroot value to meet fedora packaging guidelines
- Updated project website
* Mon Jul 13 2009 Arjun Roy <arroy@redhat.com> - 0.0.4-3
- Quietened rpmlint errors and warnings.
- Fixed most gcc warnings.
- Changed init script so it doesn't run by default
- Now rpm specfile makes it so service runs by default instead
* Thu Jul 9 2009 Arjun Roy <arroy@redhat.com> - 0.0.4-2
- Bumped qpidc and qmf version requirements to 0.5.790661.
* Thu Jul 9 2009 Arjun Roy <arroy@redhat.com> - 0.0.4-1
- Removed dependency on boost. Added dependency on pcre.
* Thu Jul 2 2009 Arjun Roy <arroy@redhat.com> - 0.0.3-2
- Fixed bug with not publishing host hypervisor and arch to broker
- Updated aclocal.m4 to match new version of automake
* Tue Jun 30 2009 Arjun Roy <arroy@redhat.com> - 0.0.3-1
- Added getopt and daemonize support
- Added sysV init script support
* Mon Jun 29 2009 Arjun Roy <arroy@redhat.com> - 0.0.2-1
- Now tracks hypervisor and arch using libvirt
* Tue Jun 23 2009 Arjun Roy <arroy@redhat.com> - 0.0.1-1
- Initial rpmspec packaging