3 |
|
|
4 |
%define name syslog-ng |
%define name syslog-ng |
5 |
%define version 3.3.8 |
%define version 3.3.8 |
6 |
%define release %mkrel 1 |
%define release %mkrel 2 |
7 |
|
|
8 |
%define major 0 |
%define major 0 |
9 |
%define libname %mklibname syslog-ng %{major} |
%define libname %mklibname syslog-ng %{major} |
34 |
BuildRequires: cap-devel |
BuildRequires: cap-devel |
35 |
Provides: syslog-daemon |
Provides: syslog-daemon |
36 |
Requires: %{libname} = %{version}-%{release} |
Requires: %{libname} = %{version}-%{release} |
37 |
|
Requires(post): systemd >= %{systemd_required_version} |
38 |
Requires(post): rpm-helper >= 0.24.8-1 |
Requires(post): rpm-helper >= 0.24.8-1 |
39 |
Requires(preun): rpm-helper >= 0.24.8-1 |
Requires(preun): rpm-helper >= 0.24.8-1 |
40 |
|
|
109 |
|
|
110 |
install -D -m 644 %{SOURCE4} %{buildroot}%{_sysconfdir}/logrotate.d/syslog-ng |
install -D -m 644 %{SOURCE4} %{buildroot}%{_sysconfdir}/logrotate.d/syslog-ng |
111 |
|
|
112 |
install -D -m 644 %{SOURCE5} %{buildroot}%{_prefix}/lib/tmpfiles.d/syslog-ng.conf |
install -D -m 644 %{SOURCE5} %{buildroot}%{_tmpfilesdir}/%{name}.conf |
113 |
|
|
114 |
install -d -m 755 %{buildroot}%{_localstatedir}/lib/syslog-ng |
install -d -m 755 %{buildroot}%{_localstatedir}/lib/syslog-ng |
115 |
|
|
122 |
rm -f %{buildroot}%{_libdir}/*.la |
rm -f %{buildroot}%{_libdir}/*.la |
123 |
|
|
124 |
%post |
%post |
125 |
systemd-tmpfiles --create %{name}.conf |
%_tmpfilescreate %{name} |
126 |
%_post_service %{name} |
%_post_service %{name} |
127 |
# (cg) Handle a quirk of syslog service installations |
# (cg) Handle a quirk of syslog service installations |
128 |
if [ -f %{_sysconfdir}/systemd/system/multi-user.target.wants/%{name}.service -a ! -f %{_sysconfdir}/systemd/system/syslog.service ]; then |
if [ -f %{_sysconfdir}/systemd/system/multi-user.target.wants/%{name}.service -a ! -f %{_sysconfdir}/systemd/system/syslog.service ]; then |
145 |
%config(noreplace) %{_sysconfdir}/sysconfig/syslog-ng |
%config(noreplace) %{_sysconfdir}/sysconfig/syslog-ng |
146 |
%config(noreplace) %{_sysconfdir}/logrotate.d/syslog-ng |
%config(noreplace) %{_sysconfdir}/logrotate.d/syslog-ng |
147 |
%{_unitdir}/syslog-ng.service |
%{_unitdir}/syslog-ng.service |
148 |
%{_prefix}/lib/tmpfiles.d/syslog-ng.conf |
%{_tmpfilesdir}/%{name}.conf |
149 |
%{_sysconfdir}/ld.so.conf.d/%{name}.conf |
%{_sysconfdir}/ld.so.conf.d/%{name}.conf |
150 |
%{_sbindir}/syslog-ng |
%{_sbindir}/syslog-ng |
151 |
%{_sbindir}/syslog-ng-ctl |
%{_sbindir}/syslog-ng-ctl |