]> git.pld-linux.org Git - packages/bcfg2.git/blame - bcfg2.spec
BR: rpmbuild(macros) >= 1.710
[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
55c687a7 12BuildRequires: rpmbuild(macros) >= 1.710
22d7678a
SP
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
a605c379 81%py_build
067578a9
SP
82
83%install
84rm -rf $RPM_BUILD_ROOT
a605c379 85%py_install
067578a9
SP
86
87%py_ocomp $RPM_BUILD_ROOT%{py_sitescriptdir}
88%py_comp $RPM_BUILD_ROOT%{py_sitescriptdir}
89%py_postclean
90
91install -d $RPM_BUILD_ROOT%{_bindir}
92install -d $RPM_BUILD_ROOT%{_sbindir}
93install -d $RPM_BUILD_ROOT%{_initrddir}
94install -d $RPM_BUILD_ROOT%{_sysconfdir}/default
95install -d $RPM_BUILD_ROOT%{_sysconfdir}/cron.daily
96install -d $RPM_BUILD_ROOT%{_sysconfdir}/cron.hourly
97install -d $RPM_BUILD_ROOT%{_libdir}/bcfg2
98%{__mv} $RPM_BUILD_ROOT%{_bindir}/bcfg2* $RPM_BUILD_ROOT%{_sbindir}
5c089970
SP
99install redhat/scripts/bcfg2.init $RPM_BUILD_ROOT/etc/rc.d/init.d/bcfg2
100install redhat/scripts/bcfg2-server.init $RPM_BUILD_ROOT/etc/rc.d/init.d/bcfg2-server
067578a9
SP
101install debian/bcfg2.default $RPM_BUILD_ROOT%{_sysconfdir}/default/bcfg2
102install debian/bcfg2-server.default $RPM_BUILD_ROOT%{_sysconfdir}/default/bcfg2-server
103install debian/bcfg2.cron.daily $RPM_BUILD_ROOT%{_sysconfdir}/cron.daily/bcfg2
104install debian/bcfg2.cron.hourly $RPM_BUILD_ROOT%{_sysconfdir}/cron.hourly/bcfg2
105install tools/bcfg2-cron $RPM_BUILD_ROOT%{_libdir}/bcfg2/bcfg2-cron
106
107%clean
2aed06e6 108rm -rf $RPM_BUILD_ROOT
067578a9 109
22d7678a
SP
110%post -n bcfg2-server
111/sbin/chkconfig --add bcfg2-server
112
a3d0fe03 113%files
067578a9
SP
114%defattr(644,root,root,755)
115%attr(755,root,root) %{_sbindir}/bcfg2
2aed06e6
SP
116%dir %{py_sitescriptdir}/Bcfg2
117%{py_sitescriptdir}/Bcfg2/*.py[co]
22d7678a 118%dir %{py_sitescriptdir}/Bcfg2/Client
067578a9
SP
119%{py_sitescriptdir}/Bcfg2/Client/*
120%{_mandir}/man1/*
121%{_mandir}/man5/*
122%{_initrddir}/bcfg2
123%config(noreplace) %{_sysconfdir}/default/bcfg2
124%{_sysconfdir}/cron.hourly/bcfg2
125/etc/cron.daily/bcfg2
126%{_libdir}/bcfg2/bcfg2-cron
127
067578a9
SP
128%files -n bcfg2-server
129%defattr(644,root,root,755)
22d7678a 130%attr(754,root,root) /etc/rc.d/init.d/bcfg2-server
067578a9 131%{py_sitescriptdir}/Bcfg2/Server
067578a9
SP
132%{_datadir}/bcfg2
133%config(noreplace) %{_sysconfdir}/default/bcfg2-server
134%attr(755,root,root) %{_sbindir}/bcfg2-admin
135%attr(755,root,root) %{_sbindir}/bcfg2-build-reports
136%attr(755,root,root) %{_sbindir}/bcfg2-info
137%attr(755,root,root) %{_sbindir}/bcfg2-ping-sweep
138%attr(755,root,root) %{_sbindir}/bcfg2-repo-validate
139%attr(755,root,root) %{_sbindir}/bcfg2-reports
140%attr(755,root,root) %{_sbindir}/bcfg2-server
067578a9
SP
141%{_mandir}/man8/*.8*
142%dir %{_libdir}/bcfg2
This page took 0.112341 seconds and 4 git commands to generate.