]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: examples: Fixing haproxy.spec to remove references to .cfg files
authorChris Short <chris@chrisshort.net>
Mon, 18 Jan 2016 14:11:04 +0000 (09:11 -0500)
committerWilly Tarreau <w@1wt.eu>
Mon, 18 Jan 2016 15:00:20 +0000 (16:00 +0100)
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.

examples/haproxy.spec

index 58cea3cf215a2e1c82e089c3735f0c58ff41a6a9..a94d5496d84aeb74206f923da61afbcad731453f 100644 (file)
@@ -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