diff --git a/misc/bcfg2.spec b/misc/bcfg2.spec
index f0f5b56..a94b492 100644
a
|
b
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) |
26 | 26 | BuildArch: noarch |
27 | 27 | |
28 | 28 | BuildRequires: python-devel |
| 29 | BuildRequires: %{lxmldep} |
| 30 | |
| 31 | %if 0%{?rhel} <= 5 |
| 32 | BuildRequires: python-sphinx10 |
| 33 | # the python-sphinx10 package doesn't set sys.path correctly, so we |
| 34 | # have to do it for them |
| 35 | %define pythonpath %(rpm -ql python-sphinx10 | grep '\.egg$') |
| 36 | %else |
| 37 | BuildRequires: python-sphinx >= 0.6 |
| 38 | %endif |
| 39 | |
29 | 40 | Requires: %{lxmldep} >= 0.9 |
30 | 41 | |
31 | 42 | %description |
… |
… |
systems are constantly changing; if required in your environment, |
93 | 104 | Bcfg2 can enable the construction of complex change management and |
94 | 105 | deployment strategies. |
95 | 106 | |
| 107 | %package -n bcfg2-doc |
| 108 | Summary: Configuration management system documentation |
| 109 | Group: Documentation |
| 110 | |
| 111 | %description -n bcfg2-doc |
| 112 | Configuration management system documentation |
| 113 | |
96 | 114 | %package -n bcfg2-web |
97 | 115 | Version: %{version} |
98 | 116 | Summary: Bcfg2 Web Reporting Interface |
… |
… |
deployment strategies. |
138 | 156 | |
139 | 157 | %build |
140 | 158 | %{__python}%{pythonversion} setup.py build |
| 159 | %{__python}%{pythonversion} setup.py build_dtddoc |
| 160 | |
| 161 | %{?pythonpath: export PYTHONPATH="%{pythonpath}"} |
| 162 | %{__python}%{pythonversion} setup.py build_sphinx |
141 | 163 | |
142 | 164 | %install |
143 | 165 | %{__python}%{pythonversion} setup.py install --root=%{buildroot} --record=INSTALLED_FILES --prefix=/usr |
… |
… |
deployment strategies. |
148 | 170 | %{__install} -d %{buildroot}%{_sysconfdir}/cron.daily |
149 | 171 | %{__install} -d %{buildroot}%{_sysconfdir}/cron.hourly |
150 | 172 | %{__install} -d %{buildroot}%{_prefix}/lib/bcfg2 |
| 173 | mkdir -p %{buildroot}%{_defaultdocdir}/bcfg2-doc-%{version} |
| 174 | |
151 | 175 | %{__mv} %{buildroot}/usr/bin/bcfg2* %{buildroot}%{_sbindir} |
152 | 176 | %{__install} -m 755 debian/bcfg2.init %{buildroot}%{_initrddir}/bcfg2 |
153 | 177 | %{__install} -m 755 debian/bcfg2-server.init %{buildroot}%{_initrddir}/bcfg2-server |
… |
… |
deployment strategies. |
157 | 181 | %{__install} -m 755 debian/bcfg2.cron.hourly %{buildroot}%{_sysconfdir}/cron.hourly/bcfg2 |
158 | 182 | %{__install} -m 755 tools/bcfg2-cron %{buildroot}%{_prefix}/lib/bcfg2/bcfg2-cron |
159 | 183 | |
| 184 | mv build/sphinx/html/* %{buildroot}%{_defaultdocdir}/bcfg2-doc-%{version} |
| 185 | mv build/dtd %{buildroot}%{_defaultdocdir}/bcfg2-doc-%{version}/ |
| 186 | |
160 | 187 | %{__install} -d %{buildroot}%{apache_conf}/conf.d |
161 | 188 | %{__install} -m 644 misc/apache/bcfg2.conf %{buildroot}%{apache_conf}/conf.d/wsgi_bcfg2.conf |
162 | 189 | |
… |
… |
deployment strategies. |
206 | 233 | %{_mandir}/man8/*.8* |
207 | 234 | %dir %{_prefix}/lib/bcfg2 |
208 | 235 | |
| 236 | %files doc |
| 237 | %defattr(0644,root,root,-) |
| 238 | %doc %{_defaultdocdir}/bcfg2-doc-%{version} |
| 239 | |
209 | 240 | %files -n bcfg2-web |
210 | 241 | %defattr(-,root,root,-) |
211 | 242 | |
… |
… |
deployment strategies. |
215 | 246 | %config(noreplace) %{apache_conf}/conf.d/wsgi_bcfg2.conf |
216 | 247 | |
217 | 248 | %changelog |
| 249 | %changelog |
| 250 | * Thu Jan 27 2011 Chris St. Pierre <[email protected]> 1.2.0pre1-0.0 |
| 251 | - Added -doc sub-package |
| 252 | |
218 | 253 | * Mon Jun 21 2010 Fabian Affolter <[email protected]> - 1.1.0rc3-0.1 |
219 | 254 | - Changed source0 in order that it works with spectool |
220 | 255 | |