BUG/MINOR: examples: Fixing haproxy.spec to remove references to .cfg files
Building RPMs from the provided haproxy.spec fails due to references to config files that do not exist. I should point out, this patch will inevitably create an empty /etc/haproxy dir and I'm not sure that's desirable/intended.
This commit is contained in:
parent
989222acff
commit
bb107185d1
@ -44,7 +44,6 @@ risking the system's stability.
|
||||
%{__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/
|
||||
|
||||
@ -67,12 +66,11 @@ fi
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%doc CHANGELOG README examples/*.cfg doc/architecture.txt doc/configuration.txt doc/intro.txt doc/management.txt doc/proxy-protocol.txt
|
||||
%doc CHANGELOG README doc/architecture.txt doc/configuration.txt doc/intro.txt doc/management.txt doc/proxy-protocol.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
|
||||
%attr(0755,root,root) %config %{_sysconfdir}/rc.d/init.d/%{name}
|
||||
|
||||
%changelog
|
||||
|
Loading…
x
Reference in New Issue
Block a user