Ticket #984: misc-spec.patch

File misc-spec.patch, 3.0 KB (added by https://www.google.com/accounts/o8/id?id=AItOawnSjgovXZr-_V3vGkvMSR0pc5LDykRc1Nc, 12 years ago)

Patch for misc/bcfg2.spec

  • misc/bcfg2.spec

    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) 
    2626BuildArch:        noarch 
    2727 
    2828BuildRequires:    python-devel 
     29BuildRequires:    %{lxmldep} 
     30 
     31%if 0%{?rhel} <= 5 
     32BuildRequires: 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 
     37BuildRequires: python-sphinx >= 0.6 
     38%endif 
     39 
    2940Requires:         %{lxmldep} >= 0.9 
    3041 
    3142%description 
    systems are constantly changing; if required in your environment, 
    93104Bcfg2 can enable the construction of complex change management and 
    94105deployment strategies. 
    95106 
     107%package -n bcfg2-doc 
     108Summary:          Configuration management system documentation 
     109Group:            Documentation 
     110 
     111%description -n bcfg2-doc 
     112Configuration management system documentation 
     113 
    96114%package -n bcfg2-web 
    97115Version: %{version} 
    98116Summary: Bcfg2 Web Reporting Interface 
    deployment strategies. 
    138156 
    139157%build 
    140158%{__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 
    141163 
    142164%install 
    143165%{__python}%{pythonversion} setup.py install --root=%{buildroot} --record=INSTALLED_FILES --prefix=/usr 
    deployment strategies. 
    148170%{__install} -d %{buildroot}%{_sysconfdir}/cron.daily 
    149171%{__install} -d %{buildroot}%{_sysconfdir}/cron.hourly 
    150172%{__install} -d %{buildroot}%{_prefix}/lib/bcfg2 
     173mkdir -p %{buildroot}%{_defaultdocdir}/bcfg2-doc-%{version} 
     174 
    151175%{__mv} %{buildroot}/usr/bin/bcfg2* %{buildroot}%{_sbindir} 
    152176%{__install} -m 755 debian/bcfg2.init %{buildroot}%{_initrddir}/bcfg2 
    153177%{__install} -m 755 debian/bcfg2-server.init %{buildroot}%{_initrddir}/bcfg2-server 
    deployment strategies. 
    157181%{__install} -m 755 debian/bcfg2.cron.hourly %{buildroot}%{_sysconfdir}/cron.hourly/bcfg2 
    158182%{__install} -m 755 tools/bcfg2-cron %{buildroot}%{_prefix}/lib/bcfg2/bcfg2-cron 
    159183 
     184mv build/sphinx/html/* %{buildroot}%{_defaultdocdir}/bcfg2-doc-%{version} 
     185mv build/dtd %{buildroot}%{_defaultdocdir}/bcfg2-doc-%{version}/ 
     186 
    160187%{__install} -d %{buildroot}%{apache_conf}/conf.d 
    161188%{__install} -m 644 misc/apache/bcfg2.conf %{buildroot}%{apache_conf}/conf.d/wsgi_bcfg2.conf 
    162189 
    deployment strategies. 
    206233%{_mandir}/man8/*.8* 
    207234%dir %{_prefix}/lib/bcfg2 
    208235 
     236%files doc 
     237%defattr(0644,root,root,-) 
     238%doc %{_defaultdocdir}/bcfg2-doc-%{version} 
     239 
    209240%files -n bcfg2-web 
    210241%defattr(-,root,root,-) 
    211242 
    deployment strategies. 
    215246%config(noreplace) %{apache_conf}/conf.d/wsgi_bcfg2.conf 
    216247 
    217248%changelog 
     249%changelog 
     250* Thu Jan 27 2011 Chris St. Pierre <[email protected]> 1.2.0pre1-0.0 
     251- Added -doc sub-package 
     252 
    218253* Mon Jun 21 2010 Fabian Affolter <[email protected]> - 1.1.0rc3-0.1 
    219254- Changed source0 in order that it works with spectool  
    220255