]> git.pld-linux.org Git - packages/bcfg2.git/blame - bcfg2.spec
- more Requires and BuildRequires
[packages/bcfg2.git] / bcfg2.spec
CommitLineData
067578a9
SP
1Summary: Configuration management system
2Name: bcfg2
3Version: 1.0.1
4Release: 0.1
5License: BSD
6Group: Applications/System
7URL: http://trac.mcs.anl.gov/projects/bcfg2
8Source0: ftp://ftp.mcs.anl.gov/pub/bcfg/%{name}-%{version}.tar.gz
9# Source0-md5: 6fbf36acc5cc58b2504a25c25cad3921
22d7678a
SP
10BuildRequires: python-devel
11BuildRequires: rpm-pythonprov
12BuildRequires: rpmbuild(macros) >= 1.219
13Requires: python-modules
14BuildArch: noarch
15BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16
067578a9
SP
17%description
18Bcfg2 helps system administrators produce a consistent, reproducible,
19and verifiable description of their environment, and offers
20visualization and reporting tools to aid in day-to-day administrative
21tasks. It is the fifth generation of configuration management tools
22developed in the Mathematics and Computer Science Division of Argonne
23National Laboratory.
24
25It is based on an operational model in which the specification can be
26used to validate and optionally change the state of clients, but in a
27feature unique to bcfg2 the client's response to the specification can
28also be used to assess the completeness of the specification. Using
29this feature, bcfg2 provides an objective measure of how good a job an
30administrator has done in specifying the configuration of client
31systems. Bcfg2 is therefore built to help administrators construct an
32accurate, comprehensive specification.
33
34Bcfg2 has been designed from the ground up to support gentle
35reconciliation between the specification and current client states. It
36is designed to gracefully cope with manual system modifications.
37
38Finally, due to the rapid pace of updates on modern networks, client
39systems are constantly changing; if required in your environment,
40Bcfg2 can enable the construction of complex change management and
41deployment strategies.
42
43%package -n bcfg2-server
44Summary: Bcfg2 Server
45Group: Networking/Daemons
46Requires: bcfg2
22d7678a
SP
47Requires: pydoc
48Requires: python-lxml
2aed06e6 49Requires: python-pyOpenSSL
067578a9
SP
50
51%description -n bcfg2-server
52Bcfg2 helps system administrators produce a consistent, reproducible,
53and verifiable description of their environment, and offers
54visualization and reporting tools to aid in day-to-day administrative
55tasks. It is the fifth generation of configuration management tools
56developed in the Mathematics and Computer Science Division of Argonne
57National Laboratory.
58
59It is based on an operational model in which the specification can be
60used to validate and optionally change the state of clients, but in a
61feature unique to bcfg2 the client's response to the specification can
62also be used to assess the completeness of the specification. Using
63this feature, bcfg2 provides an objective measure of how good a job an
64administrator has done in specifying the configuration of client
65systems. Bcfg2 is therefore built to help administrators construct an
66accurate, comprehensive specification.
67
68Bcfg2 has been designed from the ground up to support gentle
69reconciliation between the specification and current client states. It
70is designed to gracefully cope with manual system modifications.
71
72Finally, due to the rapid pace of updates on modern networks, client
73systems are constantly changing; if required in your environment,
74Bcfg2 can enable the construction of complex change management and
75deployment strategies.
76
77%prep
78%setup -q
79
80%build
81export CFLAGS="%{rpmcflags}"
82%{__python} setup.py build
83
84%install
85rm -rf $RPM_BUILD_ROOT
86%{__python} setup.py install \
87 --optimize=2 \
88 --root=$RPM_BUILD_ROOT
89
90%py_ocomp $RPM_BUILD_ROOT%{py_sitescriptdir}
91%py_comp $RPM_BUILD_ROOT%{py_sitescriptdir}
92%py_postclean
93
94install -d $RPM_BUILD_ROOT%{_bindir}
95install -d $RPM_BUILD_ROOT%{_sbindir}
96install -d $RPM_BUILD_ROOT%{_initrddir}
97install -d $RPM_BUILD_ROOT%{_sysconfdir}/default
98install -d $RPM_BUILD_ROOT%{_sysconfdir}/cron.daily
99install -d $RPM_BUILD_ROOT%{_sysconfdir}/cron.hourly
100install -d $RPM_BUILD_ROOT%{_libdir}/bcfg2
101%{__mv} $RPM_BUILD_ROOT%{_bindir}/bcfg2* $RPM_BUILD_ROOT%{_sbindir}
22d7678a
SP
102install debian/bcfg2.init $RPM_BUILD_ROOT/etc/rc.d/init.d/bcfg2
103install debian/bcfg2-server.init $RPM_BUILD_ROOT/etc/rc.d/init.d/bcfg2-server
067578a9
SP
104install debian/bcfg2.default $RPM_BUILD_ROOT%{_sysconfdir}/default/bcfg2
105install debian/bcfg2-server.default $RPM_BUILD_ROOT%{_sysconfdir}/default/bcfg2-server
106install debian/bcfg2.cron.daily $RPM_BUILD_ROOT%{_sysconfdir}/cron.daily/bcfg2
107install debian/bcfg2.cron.hourly $RPM_BUILD_ROOT%{_sysconfdir}/cron.hourly/bcfg2
108install tools/bcfg2-cron $RPM_BUILD_ROOT%{_libdir}/bcfg2/bcfg2-cron
109
110%clean
2aed06e6 111rm -rf $RPM_BUILD_ROOT
067578a9 112
22d7678a
SP
113%post -n bcfg2-server
114/sbin/chkconfig --add bcfg2-server
115
067578a9
SP
116%files -n bcfg2
117%defattr(644,root,root,755)
118%attr(755,root,root) %{_sbindir}/bcfg2
2aed06e6
SP
119%dir %{py_sitescriptdir}/Bcfg2
120%{py_sitescriptdir}/Bcfg2/*.py[co]
22d7678a 121%dir %{py_sitescriptdir}/Bcfg2/Client
067578a9
SP
122%{py_sitescriptdir}/Bcfg2/Client/*
123%{_mandir}/man1/*
124%{_mandir}/man5/*
125%{_initrddir}/bcfg2
126%config(noreplace) %{_sysconfdir}/default/bcfg2
127%{_sysconfdir}/cron.hourly/bcfg2
128/etc/cron.daily/bcfg2
129%{_libdir}/bcfg2/bcfg2-cron
130
067578a9
SP
131%files -n bcfg2-server
132%defattr(644,root,root,755)
22d7678a 133%attr(754,root,root) /etc/rc.d/init.d/bcfg2-server
067578a9 134%{py_sitescriptdir}/Bcfg2/Server
067578a9
SP
135%{_datadir}/bcfg2
136%config(noreplace) %{_sysconfdir}/default/bcfg2-server
137%attr(755,root,root) %{_sbindir}/bcfg2-admin
138%attr(755,root,root) %{_sbindir}/bcfg2-build-reports
139%attr(755,root,root) %{_sbindir}/bcfg2-info
140%attr(755,root,root) %{_sbindir}/bcfg2-ping-sweep
141%attr(755,root,root) %{_sbindir}/bcfg2-repo-validate
142%attr(755,root,root) %{_sbindir}/bcfg2-reports
143%attr(755,root,root) %{_sbindir}/bcfg2-server
067578a9
SP
144%{_mandir}/man8/*.8*
145%dir %{_libdir}/bcfg2
This page took 0.076969 seconds and 4 git commands to generate.