From: Sébastien Barrier Date: Thu, 2 Apr 2009 13:09:35 +0000 (+0200) Subject: [BUILD] spec file: fix broken pipe during rpmbuild and add man file X-Git-Tag: v1.3.18~30 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f1a09bde577a5fe2ff8499a61e6ca26c5b0c6b49;p=thirdparty%2Fhaproxy.git [BUILD] spec file: fix broken pipe during rpmbuild and add man file --- diff --git a/examples/haproxy.spec b/examples/haproxy.spec index e25b3eef50..b176e96794 100644 --- a/examples/haproxy.spec +++ b/examples/haproxy.spec @@ -43,10 +43,12 @@ risking the system's stability. %{__install} -d %{buildroot}%{_sbindir} %{__install} -d %{buildroot}%{_sysconfdir}/rc.d/init.d %{__install} -d %{buildroot}%{_sysconfdir}/%{name} +%{__install} -d %{buildroot}%{_mandir}/man1/ %{__install} -s %{name} %{buildroot}%{_sbindir}/ %{__install} -c -m 644 examples/%{name}.cfg %{buildroot}%{_sysconfdir}/%{name}/ %{__install} -c -m 755 examples/%{name}.init %{buildroot}%{_sysconfdir}/rc.d/init.d/%{name} +%{__install} -c -m 755 doc/%{name}.1 %{buildroot}%{_mandir}/man1/ %clean [ "%{buildroot}" != "/" ] && %{__rm} -rf %{buildroot} @@ -67,7 +69,9 @@ fi %files %defattr(-,root,root) -%doc CHANGELOG TODO examples doc/haproxy-en.txt doc/haproxy-fr.txt doc/architecture.txt examples/url-switching.cfg +%doc CHANGELOG TODO examples/*.cfg doc/haproxy-en.txt doc/haproxy-fr.txt doc/architecture.txt doc/configuration.txt +%doc %{_mandir}/man1/%{name}.1* + %attr(0755,root,root) %{_sbindir}/%{name} %dir %{_sysconfdir}/%{name} %attr(0644,root,root) %config(noreplace) %{_sysconfdir}/%{name}/%{name}.cfg