fix build
OBS-URL: https://build.opensuse.org/package/show/systemsmanagement/cfengine?expand=0&rev=67
This commit is contained in:
parent
04203f2cf0
commit
404a42c4d2
@ -144,7 +144,7 @@ libpromises library.
|
|||||||
|
|
||||||
%package doc
|
%package doc
|
||||||
Summary: CFEngine automates large-scale IT computing infrastructure - documentation
|
Summary: CFEngine automates large-scale IT computing infrastructure - documentation
|
||||||
Group: Productivity/Networking/System
|
Group: Documentation/Other
|
||||||
%if 0%{?rhel_version} || 0%{?centos_version}
|
%if 0%{?rhel_version} || 0%{?centos_version}
|
||||||
BuildRequires: tetex
|
BuildRequires: tetex
|
||||||
BuildRequires: tetex-dvips
|
BuildRequires: tetex-dvips
|
||||||
@ -155,6 +155,13 @@ BuildRequires: texinfo
|
|||||||
%description doc
|
%description doc
|
||||||
Full documentation for cfengine
|
Full documentation for cfengine
|
||||||
|
|
||||||
|
%package examples
|
||||||
|
Summary: CFEngine example promises
|
||||||
|
Group: Documentation/Other
|
||||||
|
|
||||||
|
%description examples
|
||||||
|
Lots of examples promises for CFEngine.
|
||||||
|
|
||||||
%package server
|
%package server
|
||||||
Summary: CFEngine automates large-scale IT computing infrastructure - server
|
Summary: CFEngine automates large-scale IT computing infrastructure - server
|
||||||
Group: Productivity/Networking/System
|
Group: Productivity/Networking/System
|
||||||
@ -245,8 +252,8 @@ sed -i\
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
# install docs
|
# install docs
|
||||||
%{__install} -d %{buildroot}/%{_datadir}/doc/%{name}
|
%{__install} -d %{buildroot}/%{_docdir}/%{name}
|
||||||
%{__install} -m 0644 %{S:1} %{S:2} %{S:3} %{S:4} %{S:5} %{S:6} %{buildroot}/%{_datadir}/doc/%{name}
|
%{__install} -m 0644 %{S:1} %{S:2} %{S:3} %{S:4} %{S:5} %{S:6} %{buildroot}/%{_docdir}/%{name}
|
||||||
|
|
||||||
# create symlinks for sbin_PROGRAMS
|
# create symlinks for sbin_PROGRAMS
|
||||||
# because: cf-promises needs to be installed in /var/cfengine/work/bin for pre-validation of full configuration
|
# because: cf-promises needs to be installed in /var/cfengine/work/bin for pre-validation of full configuration
|
||||||
@ -303,11 +310,11 @@ fi
|
|||||||
%service_add_pre cf-serverd.service
|
%service_add_pre cf-serverd.service
|
||||||
|
|
||||||
%post server
|
%post server
|
||||||
if [ ${1:-0} -ne 1 ]; then
|
#if [ ${1:-0} -ne 1 ]; then
|
||||||
cp -a /usr/share/cfengine/CoreBase/controls /var/cfengine/inputs
|
# cp -a /usr/share/cfengine/CoreBase/controls /var/cfengine/inputs
|
||||||
cp -a /usr/share/cfengine/CoreBase/libraries /var/cfengine/inputs
|
# cp -a /usr/share/cfengine/CoreBase/libraries /var/cfengine/inputs
|
||||||
cp -a /usr/share/cfengine/CoreBase/services /var/cfengine/inputs
|
# cp -a /usr/share/cfengine/CoreBase/services /var/cfengine/inputs
|
||||||
fi
|
#fi
|
||||||
%service_add_post cf-serverd.service
|
%service_add_post cf-serverd.service
|
||||||
|
|
||||||
%preun server
|
%preun server
|
||||||
@ -382,6 +389,8 @@ fi
|
|||||||
%doc LICENSE
|
%doc LICENSE
|
||||||
# %doc README
|
# %doc README
|
||||||
%doc ChangeLog
|
%doc ChangeLog
|
||||||
|
%exclude %{_docdir}/%{name}/examples
|
||||||
|
%exclude %{_docdir}/%{name}/*.pdf
|
||||||
%{_sbindir}/cf-agent
|
%{_sbindir}/cf-agent
|
||||||
%{_sbindir}/cf-execd
|
%{_sbindir}/cf-execd
|
||||||
%{_sbindir}/cf-key
|
%{_sbindir}/cf-key
|
||||||
@ -430,8 +439,13 @@ fi
|
|||||||
|
|
||||||
%files doc
|
%files doc
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%dir %{_datadir}/doc/%{name}
|
%doc %{_docdir}/%{name}/*.pdf
|
||||||
%{_datadir}/doc/%{name}/*
|
%exclude %{_docdir}/%{name}/examples
|
||||||
|
|
||||||
|
%files examples
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%dir %{_docdir}/%{name}/examples
|
||||||
|
%doc %{_docdir}/%{name}/examples
|
||||||
|
|
||||||
%files server
|
%files server
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user