File syslog-ng.spec of Package syslog-ng
#
# spec file for package syslog-ng
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
#Compat macro for new _fillupdir macro introduced in Nov 2017
%if ! %{defined _fillupdir}
%define _fillupdir /var/adm/fillup-templates
%endif
Name: syslog-ng
%if %{defined _rundir}
%define syslog_ng_rundir %{_rundir}/syslog-ng
%else
%define syslog_ng_rundir %{_localstatedir}/run/syslog-ng
%endif
%define syslog_ng_sockets_cfg %{syslog_ng_rundir}/additional-log-sockets.conf
Version: 3.14.1
Release: 0
Summary: The new-generation syslog-daemon
License: GPL-2.0
Group: System/Daemons
Url: http://syslog-ng.org/
#Source0: https://github.com/balabit/syslog-ng/releases/download/syslog-ng-%{version}/%{name}-%{version}.tar.gz
Source0: syslog-ng-%{version}.tar.gz
Source1: syslog-ng.sysconfig
Source2: syslog-ng.conf.default
Source3: syslog-ng.service
Source4: syslog-ng-service-prepare
%if 0%{?suse_version} >= 1210
%bcond_without systemd
%bcond_without dbi
%bcond_without python
%bcond_with java
%bcond_with mongodb
%bcond_without curl
%if 0%{?suse_version} != 1320
%bcond_without redis
%endif
%endif
%if 0%{?suse_version} >= 1230
%bcond_with systemv
%else
%bcond_without systemv
%endif
%define with_smtp %suse_version >= 1210
%define with_geoip %suse_version >= 1210
%if %{with systemd}
Provides: syslog
Provides: sysvinit(syslog)
Conflicts: otherproviders(syslog)
Requires(pre): %fillup_prereq
%if %{with systemv}
Requires(pre): %insserv_prereq
Requires(pre): syslog-service < 2.0
Requires(pre): /etc/init.d/syslog
%else
Requires(pre): syslog-service >= 2.0
%endif
%{?systemd_requires}
BuildRequires: systemd-devel
%else
Requires(pre): %insserv_prereq %fillup_prereq /etc/init.d/syslog
BuildRequires: klogd
%endif
%if 0%{with_smtp}
BuildRequires: libesmtp-devel
%endif
BuildRequires: bison
BuildRequires: flex
BuildRequires: gcc-c++
BuildRequires: glib2-devel
%if %{with curl}
BuildRequires: libcurl-devel
%endif
%if 0%{?with_geoip}
BuildRequires: libGeoIP-devel
%if 0%{?leap_version} >= 420200
BuildRequires: libmaxminddb-devel
%endif
%if 0%{?suse_version} > 1320
BuildRequires: libmaxminddb-devel
%endif
%endif
%if %{with redis}
BuildRequires: hiredis-devel
%if 0%{?suse_version} == 1320
BuildRequires: libhiredis0_10
%endif
%endif
BuildRequires: libjson-devel
BuildRequires: libopenssl-devel
BuildRequires: libtool
BuildRequires: pcre-devel
BuildRequires: pkgconfig
BuildRequires: python
BuildRequires: tcpd-devel
%if %{with dbi}
BuildRequires: libdbi-devel
%endif
%if %{with java}
BuildRequires: java-devel = 1.7
%endif
%if %{with python}
BuildRequires: python-devel
%endif
%if 0%{?suse_version} >= 1210
BuildRequires: libcap-devel
BuildRequires: libnet-devel
%else
BuildRequires: libcap
BuildRequires: libnet
%endif
%if 0%{?suse_version} >= 1330
Requires(pre): user(news)
Requires(pre): group(news)
%endif
Requires: libevtlog-3_14-0
Obsoletes: syslog-ng-json
#!BuildIgnore: rsyslog
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
syslog-ng is an enhanced log daemon, supporting a wide range of input and
output methods: syslog, unstructured text, message queues, databases (SQL
and NoSQL alike) and more.
Key features:
* receive and send RFC3164 and RFC5424 style syslog messages
* work with any kind of unstructured data
* receive and send JSON formatted messages
* classify and structure logs with builtin parsers (csv-parser(),
db-parser(), ...)
* normalize, crunch and process logs as they flow through the system
* hand on messages for further processing using message queues (like
AMQP), files or databases (like PostgreSQL or MongoDB).
%package -n libevtlog-3_14-0
Summary: Syslog-ng event logger library runtime
Group: System/Libraries
%description -n libevtlog-3_14-0
The EventLog library aims to be a replacement of the simple syslog()
API provided on UNIX systems. The major difference between EventLog and
syslog is that EventLog tries to add structure to messages.
EventLog provides an interface to build, format and output an event
record. The exact format and output method can be customized by the
administrator via a configuration file.
This package provides the runtime part of the library.
%if %{with curl}
%package curl
Summary: HTTP destination support for syslog-ng
Group: System/Daemons
Requires: %{name} = %{version}
%description curl
This package provides HTTP destination support for syslog-ng by means
of libcurl.
%endif
%if %{with java}
%package java
Summary: Java destination support for syslog-ng
Group: System/Daemons
Requires: %{name} = %{version}
%description java
This package provides Java destination support for syslog-ng.
%endif
%if %{with dbi}
%package sql
Summary: SQL support using DBI for syslog-ng
Group: System/Daemons
Requires: %{name} = %{version}
%description sql
This package provides the libafsql module providing support for
logging into a SQL database using DBI.
%endif
%if 0%{?with_smtp}
%package smtp
Summary: SMTP output support for syslog-ng
Group: System/Daemons
Requires: %{name} = %{version}
%description smtp
This package provides the afsmtp module providing support for
logging into SMTP.
%endif
%if 0%{?with_geoip}
%package geoip
Summary: GeoIP support for syslog-ng
Group: System/Daemons
Requires: %{name} = %{version}
%description geoip
This package provides GeoIP modules providing support for
logging geo-location information.
%endif
%if %{with redis}
%package redis
Summary: Redis destination support for syslog-ng
Group: System/Daemons
Requires: %{name} = %{version}
%description redis
This package provides the libredis module providing support for
logging to a redis destination.
%endif
%if %{with python}
%package python
Summary: Python destination support for syslog-ng
Group: System/Daemons
Requires: %{name} = %{version}
%description python
This package provides Python destination support for syslog-ng.
%endif
%package devel
Summary: Development files for syslog-ng
Group: Development/Libraries/C and C++
Requires: %{name} = %{version}
Provides: libevtlog-devel = 0.2.13
Obsoletes: libevtlog-devel <= 0.2.13
%description devel
This package provides files necessary for syslog-ng development.
%prep
%setup -q -n syslog-ng-%{version}
# fill out placeholders in the config,
# systemd service and prepare script.
for file in \
syslog-ng.conf.default \
syslog-ng.service \
syslog-ng-service-prepare \
; do
sed \
-e 's;@sbindir@;%{_sbindir};g' \
-e 's;RUN_DIR;%{syslog_ng_rundir};g' \
-e 's;ADDITIONAL_SOCKETS;%{syslog_ng_sockets_cfg};g' \
"%{_sourcedir}/${file}" > "${file}"
done
%ifarch s390 s390x
sed -i -e 's/tty10/console/g' syslog-ng.conf.default
%endif
%build
##
## build ####################################################
##
export CFLAGS="%{optflags}"
%if 0%{?with_geoip}
export GEOIP_LIBS="-lGeoIP"
%endif
export AM_YFLAGS=-d
%configure \
--enable-ipv6 \
--enable-manpages \
--enable-tcp-wrapper \
--enable-spoof-source \
--sysconfdir=/etc/syslog-ng \
--localstatedir=%{_localstatedir}/lib/syslog-ng \
--with-pidfile-dir=%{_localstatedir}/run \
--with-module-dir="%{_libdir}/syslog-ng" \
--with-module-path="%{_libdir}/syslog-ng" \
--with-default-modules="affile,afprog,afsocket,afuser,basicfuncs,csvparser,dbparser,syslogformat" \
--datadir="%{_datadir}" \
--without-compile-date \
--enable-ssl \
%if 0%{?with_smtp}
--with-libesmtp=/usr/lib \
%endif
%if %{with systemd}
--enable-systemd \
--with-systemd-journal=system \
%endif
%if %{with dbi}
--enable-sql \
%endif
--enable-json \
--enable-capabilities \
--disable-amqp \
%if %{with mongodb}
--enable-mongodb \
%else
--disable-mongodb \
%endif
%if 0%{?with_geoip}
--enable-geoip \
%endif
%if %{with redis}
--enable-redis \
%endif
%if %{with java}
--enable-java \
%else
--disable-java \
%endif
--disable-java-modules \
%if %{with python}
--enable-python \
%else
--disable-python \
%endif
--enable-dynamic-linking
#
# - build syslog-ng
#
make %_smp_mflags
%install
##
## install ##################################################
##
export RPM_BUILD_ROOT
for dir in /sbin \
%{_sysconfdir}/syslog-ng \
%{_localstatedir}/lib/syslog-ng \
%{_localstatedir}/run/syslog-ng \
%{_fillupdir} ;
do
test -d ${RPM_BUILD_ROOT}${dir} || \
install -d -m755 ${RPM_BUILD_ROOT}${dir}
done
#
make DESTDIR=${RPM_BUILD_ROOT} install
#
%if %{with systemd} && ! %{with systemv}
install -d -m755 %{buildroot}%{_unitdir}/
install -c -m644 syslog-ng.service %{buildroot}%{_unitdir}/
install -c -m755 syslog-ng-service-prepare %{buildroot}%{_sbindir}/
%endif
# install config.h (bnc#982487)
install -p -m644 config.h %{buildroot}%{_includedir}/%{name}
# install configs
install -m644 syslog-ng.conf.default \
%{buildroot}/%{_sysconfdir}/syslog-ng/syslog-ng.conf
install -m644 %{_sourcedir}/syslog-ng.sysconfig \
%{buildroot}/%{_fillupdir}/sysconfig.syslog-ng
# create empty /etc/syslog-ng/conf.d/
install -d -m755 %{buildroot}%{_sysconfdir}/syslog-ng/conf.d/
# create a compatibility link in /sbin
ln -sf %{_sbindir}/syslog-ng %{buildroot}/sbin/
# don't package update-patterndb now
rm %{buildroot}/usr/bin/update-patterndb
# delete java destination related files
rm -fr %{buildroot}/usr/share/syslog-ng/include/scl/elasticsearch/
rm -fr %{buildroot}/usr/share/syslog-ng/include/scl/hdfs/
rm -fr %{buildroot}/usr/share/syslog-ng/include/scl/kafka/
# create ghosts
install -d -m755 %{buildroot}%{syslog_ng_rundir}
touch %{buildroot}%{syslog_ng_sockets_cfg}
chmod 644 %{buildroot}%{syslog_ng_sockets_cfg}
# remove some extra testing related files
rm %{buildroot}/%{_libdir}/pkgconfig/syslog-ng-test.pc
rm %{buildroot}/%{_libdir}/syslog-ng/libtest/libsyslog-ng-test.a
%if %{with systemd} && ! %{with systemv}
%pre
%{service_add_pre syslog-ng.service}
%endif
%post
##
## post install #############################################
##
/sbin/ldconfig
#
# remove obsolete variables
#
%{remove_and_set -n syslog SYSLOG_DAEMON SYSLOG_REQUIRES_NETWORK}
%if %{with systemv}
%{fillup_and_insserv -ny syslog syslog}
%endif
#
# add SYSLOG_NG_* variables if needed
#
%{fillup_only -ans syslog ng}
%if %{with systemv}
#
# switch SYSLOG_DAEMON to outself
#
if test -f etc/sysconfig/syslog ; then
sed -i \
-e 's/^SYSLOG_DAEMON=.*/SYSLOG_DAEMON="syslog-ng"/g' \
etc/sysconfig/syslog
fi
%endif
#
# create dirs, touch log default files
#
mkdir -p var/log
touch var/log/messages; chmod 640 var/log/messages
touch var/log/mail; chmod 640 var/log/mail
touch var/log/mail.info; chmod 640 var/log/mail.info
touch var/log/mail.warn; chmod 640 var/log/mail.warn
touch var/log/mail.err; chmod 640 var/log/mail.err
test -f var/log/news && mv -f var/log/news var/log/news.bak
mkdir -p -m 0750 var/log/news
chown news:news var/log/news
touch var/log/news/news.crit; chmod 640 var/log/news/news.crit
chown news:news var/log/news/news.crit
touch var/log/news/news.err; chmod 640 var/log/news/news.err
chown news:news var/log/news/news.err
touch var/log/news/news.notice; chmod 640 var/log/news/news.notice
chown news:news var/log/news/news.notice
#
# touch the additional log files we are using
#
touch var/log/acpid; chmod 640 var/log/acpid
touch var/log/firewall; chmod 640 var/log/firewall
touch var/log/NetworkManager; chmod 640 var/log/NetworkManager
#
# generate empty additional-log-sockets.conf file
# see also syslog-ng.conf.default in pkg src dir.
#
additional_sockets="%{syslog_ng_sockets_cfg}"
install -d -m750 ${additional_sockets%/*}
cat >$additional_sockets <<EOF
source chroots { };
EOF
chmod 640 "${additional_sockets#/}"
#
# Enable the syslog-ng systemd service
#
%if %{with systemd} && ! %{with systemv}
# This macro enables based on a systemctl preset config file only
%{service_add_post syslog-ng.service}
# But we want to enable a syslog-daemon regardless of the preset;
# force the creation of a syslog.service alias link (bnc#790805).
# We do not check the obsolete SYSLOG_DAEMON variable as we want
# to switch when installing it and there is a provider conflict.
/usr/bin/systemctl -f enable syslog-ng.service >/dev/null 2>&1 || :
%endif
%preun
##
## pre uninstall ############################################
##
%if %{with systemd} && ! %{with systemv}
%{service_del_preun syslog.socket}
%{service_del_preun syslog-ng.service}
%else
if test -x /etc/init.d/syslog ; then
%{stop_on_removal syslog}
fi
#
# reset SYSLOG_DAEMON variable on removal
#
if test "$1" = "0" -a -f etc/sysconfig/syslog ; then
sed -i \
-e 's/^SYSLOG_DAEMON=.*/SYSLOG_DAEMON=""/g' \
etc/sysconfig/syslog
fi
%endif
%postun
##
## post uninstall ###########################################
##
#
# update linker caches
#
/sbin/ldconfig
%if %{with systemd} && ! %{with systemv}
#
# cleanup init scripts
#
%{service_del_postun syslog-ng.service}
%else
#
# stop the rsyslogd daemon when it is running
#
if test -x /etc/init.d/syslog ; then
%{restart_on_update syslog}
fi
#
# cleanup init scripts
#
%{insserv_cleanup}
%endif
%post -n libevtlog-3_14-0 -p /sbin/ldconfig
%postun -n libevtlog-3_14-0 -p /sbin/ldconfig
%files
##
## file list ################################################
##
%defattr(-,root,root)
%doc COPYING AUTHORS NEWS.md
%doc syslog-ng.conf.default
/sbin/syslog-ng
%attr(755,root,root) %{_sbindir}/syslog-ng
%attr(755,root,root) %{_sbindir}/syslog-ng-ctl
%attr(755,root,root) %{_sbindir}/syslog-ng-debun
%if %{with systemd} && ! %{with systemv}
%attr(755,root,root) %{_sbindir}/syslog-ng-service-prepare
%endif
%attr(755,root,root) %{_bindir}/loggen
%attr(755,root,root) %{_bindir}/pdbtool
%attr(755,root,root) %{_bindir}/dqtool
%{_mandir}/man5/syslog-ng.conf.5*
%{_mandir}/man8/syslog-ng.8*
%{_mandir}/man1/pdbtool.1*
%{_mandir}/man1/loggen.1*
%{_mandir}/man1/syslog-ng-ctl.1*
%{_mandir}/man1/dqtool.1*
%{_mandir}/man1/syslog-ng-debun.1*
%dir %{_libdir}/syslog-ng
%dir %{_datadir}/syslog-ng
%dir %{_datadir}/syslog-ng/include
%dir %{_datadir}/syslog-ng/include/scl
%dir %{_datadir}/syslog-ng/include/scl/graphite
%dir %{_datadir}/syslog-ng/include/scl/nodejs
%dir %{_datadir}/syslog-ng/include/scl/pacct
%dir %{_datadir}/syslog-ng/include/scl/rewrite
%dir %{_datadir}/syslog-ng/include/scl/syslogconf
%dir %{_datadir}/syslog-ng/include/scl/system
%dir %{_datadir}/syslog-ng/include/scl/cim
%dir %{_datadir}/syslog-ng/include/scl/solaris
%dir %{_datadir}/syslog-ng/include/scl/mbox/
%dir %{_datadir}/syslog-ng/include/scl/apache/
%dir %{_datadir}/syslog-ng/include/scl/loggly/
%dir %{_datadir}/syslog-ng/include/scl/logmatic/
%dir %{_datadir}/syslog-ng/include/scl/cisco/
%dir %{_datadir}/syslog-ng/include/scl/snmptrap/
%dir %{_datadir}/syslog-ng/include/scl/osquery/
%dir %{_datadir}/syslog-ng/include/scl/windowseventlog/
%dir %{_datadir}/syslog-ng/include/scl/loadbalancer/
%dir %{_datadir}/syslog-ng/include/scl/cim/
%dir %{_datadir}/syslog-ng/include/scl/default-network-drivers/
%dir %{_datadir}/syslog-ng/include/scl/ewmm/
%dir %{_datadir}/syslog-ng/include/scl/iptables/
%dir %{_datadir}/syslog-ng/include/scl/sudo/
%dir %{_datadir}/syslog-ng/include/scl/graylog2/
%dir %{_datadir}/syslog-ng/xsd
%dir %{_sysconfdir}/syslog-ng
%dir %{_sysconfdir}/syslog-ng/conf.d
%config(noreplace) %{_sysconfdir}/syslog-ng/syslog-ng.conf
%config(noreplace) %{_sysconfdir}/syslog-ng/scl.conf
%if %{with systemd} && ! %{with systemv}
%{_unitdir}/syslog-ng.service
%endif
%dir %{_localstatedir}/lib/syslog-ng
%attr(0755,root,root) %dir %ghost %{syslog_ng_rundir}
%attr(0644,root,root) %ghost %{syslog_ng_sockets_cfg}
%{_fillupdir}/sysconfig.syslog-ng
%{_libdir}/libsyslog-ng-*.so.*
%{_libdir}/libsecret-storage.so.*
%attr(755,root,root) %{_libdir}/syslog-ng/libadd-contextual-data.so
#%attr(755,root,root) %{_libdir}/syslog-ng/libafamqp.so
%attr(755,root,root) %{_libdir}/syslog-ng/libaffile.so
%attr(755,root,root) %{_libdir}/syslog-ng/libafprog.so
%attr(755,root,root) %{_libdir}/syslog-ng/libappmodel.so
%if %{with mongodb}
%attr(755,root,root) %{_libdir}/syslog-ng/libafmongodb.so
%endif
%attr(755,root,root) %{_libdir}/syslog-ng/libafsocket.so
%attr(755,root,root) %{_libdir}/syslog-ng/libafstomp.so
%attr(755,root,root) %{_libdir}/syslog-ng/libafuser.so
%attr(755,root,root) %{_libdir}/syslog-ng/libbasicfuncs.so
%attr(755,root,root) %{_libdir}/syslog-ng/libconfgen.so
%attr(755,root,root) %{_libdir}/syslog-ng/libcsvparser.so
%attr(755,root,root) %{_libdir}/syslog-ng/libcryptofuncs.so
%attr(755,root,root) %{_libdir}/syslog-ng/libdbparser.so
%attr(755,root,root) %{_libdir}/syslog-ng/libgraphite.so
%attr(755,root,root) %{_libdir}/syslog-ng/libjson-plugin.so
%attr(755,root,root) %{_libdir}/syslog-ng/libkvformat.so
%attr(755,root,root) %{_libdir}/syslog-ng/liblinux-kmsg-format.so
%attr(755,root,root) %{_libdir}/syslog-ng/libpseudofile.so
%attr(755,root,root) %{_libdir}/syslog-ng/libcef.so
%attr(755,root,root) %{_libdir}/syslog-ng/libdate.so
%attr(755,root,root) %{_libdir}/syslog-ng/libdisk-buffer.so
%attr(755,root,root) %{_libdir}/syslog-ng/libtfgetent.so
%attr(755,root,root) %{_libdir}/syslog-ng/libmap-value-pairs.so
%attr(755,root,root) %{_libdir}/syslog-ng/libtags-parser.so
%attr(755,root,root) %{_libdir}/syslog-ng/libxml.so
%if %{with systemd} && ! %{with systemv}
%attr(755,root,root) %{_libdir}/syslog-ng/libsdjournal.so
%endif
%attr(755,root,root) %{_libdir}/syslog-ng/libsyslogformat.so
%attr(755,root,root) %{_libdir}/syslog-ng/libstardate.so
%attr(755,root,root) %{_libdir}/syslog-ng/libsystem-source.so
%attr(755,root,root) %{_libdir}/syslog-ng/libsnmptrapd-parser.so
%attr(644,root,root) %{_datadir}/syslog-ng/include/scl/graphite/README
%attr(644,root,root) %{_datadir}/syslog-ng/include/scl/graphite/plugin.conf
%attr(644,root,root) %{_datadir}/syslog-ng/include/scl/nodejs/plugin.conf
%attr(644,root,root) %{_datadir}/syslog-ng/include/scl/pacct/plugin.conf
%attr(644,root,root) %{_datadir}/syslog-ng/include/scl/rewrite/cc-mask.conf
%attr(644,root,root) %{_datadir}/syslog-ng/include/scl/system/plugin.conf
%attr(644,root,root) %{_datadir}/syslog-ng/include/scl/syslogconf/README
%attr(755,root,root) %{_datadir}/syslog-ng/include/scl/syslogconf/convert-syslogconf.awk
%attr(644,root,root) %{_datadir}/syslog-ng/include/scl/syslogconf/plugin.conf
%attr(644,root,root) %{_datadir}/syslog-ng/include/scl/cim/template.conf
%attr(644,root,root) %{_datadir}/syslog-ng/include/scl/solaris/plugin.conf
%attr(644,root,root) %{_datadir}/syslog-ng/include/scl/mbox/mbox.conf
%attr(644,root,root) %{_datadir}/syslog-ng/include/scl/apache/apache.conf
%attr(644,root,root) %{_datadir}/syslog-ng/include/scl/loggly/loggly.conf
%attr(644,root,root) %{_datadir}/syslog-ng/include/scl/logmatic/logmatic.conf
%attr(644,root,root) %{_datadir}/syslog-ng/include/scl/cisco/plugin.conf
%attr(644,root,root) %{_datadir}/syslog-ng/include/scl/snmptrap/snmptrapd-source.conf
%attr(644,root,root) %{_datadir}/syslog-ng/include/scl/osquery/plugin.conf
%attr(644,root,root) %{_datadir}/syslog-ng/include/scl/windowseventlog/plugin.conf
%attr(644,root,root) %{_datadir}/syslog-ng/include/scl/windowseventlog/windowseventlog.xml
%attr(644,root,root) %{_datadir}/syslog-ng/include/scl/loadbalancer/gen-loadbalancer.sh
%attr(644,root,root) %{_datadir}/syslog-ng/include/scl/loadbalancer/plugin.conf
%attr(644,root,root) %{_datadir}/syslog-ng/include/scl/cim/adapter.conf
%attr(644,root,root) %{_datadir}/syslog-ng/include/scl/default-network-drivers/plugin.conf
%attr(644,root,root) %{_datadir}/syslog-ng/include/scl/ewmm/ewmm.conf
%attr(644,root,root) %{_datadir}/syslog-ng/include/scl/iptables/iptables.conf
%attr(644,root,root) %{_datadir}/syslog-ng/include/scl/sudo/sudo.conf
%attr(644,root,root) %{_datadir}/syslog-ng/include/scl/graylog2/plugin.conf
%attr(644,root,root) %{_datadir}/syslog-ng/xsd/*
%files -n libevtlog-3_14-0
%{_libdir}/libevtlog-*.so.*
%if %{with curl}
%files curl
%attr(755,root,root) %{_libdir}/syslog-ng/libhttp.so
%endif
%if %{with dbi}
%files sql
%defattr(-,root,root)
%dir %{_libdir}/syslog-ng
%attr(755,root,root) %{_libdir}/syslog-ng/libafsql.so
%endif
%files devel
%defattr(-,root,root)
%attr(644,root,root) %{_libdir}/libsyslog-ng.la
%attr(644,root,root) %{_libdir}/syslog-ng/*.la
%attr(644,root,root) %{_libdir}/libevtlog.la
%attr(644,root,root) %{_libdir}/libsecret-storage.la
%{_libdir}/libsyslog-ng.so
%{_libdir}/libevtlog.so
%{_libdir}/libsecret-storage.so
%attr(644,root,root) %{_libdir}/pkgconfig/syslog-ng.pc
%dir %{_includedir}/syslog-ng
%attr(-,root,root) %{_includedir}/syslog-ng/*
%dir %{_datadir}/syslog-ng/tools
%attr(755,root,root) %{_datadir}/syslog-ng/tools/merge-grammar.py
%attr(644,root,root) %{_datadir}/syslog-ng/tools/cfg-grammar.y
%attr(644,root,root) %{_datadir}/syslog-ng/tools/lex-rules.am
%attr(755,root,root) %{_datadir}/syslog-ng/tools/system-expand.sh
%attr(644,root,root) %{_libdir}/libsyslog-ng-native-connector.a
%attr(644,root,root) %{_libdir}/pkgconfig/syslog-ng-native-connector.pc
%attr(644,root,root) %{_libdir}/pkgconfig/syslog-ng-add-contextual-data.pc
%if %{with python}
%files python
%attr(755,root,root) %{_libdir}/syslog-ng/libmod-python.so
%defattr(-,root,root)
/usr/lib/python2.7/site-packages/syslogng-1.0-py2.7.egg-info
%dir /usr/lib/python2.7/site-packages/syslogng
%dir /usr/lib/python2.7/site-packages/syslogng/debuggercli
/usr/lib/python2.7/site-packages/syslogng/*
/usr/lib/python2.7/site-packages/syslogng/debuggercli/*
%endif
%if %{with java}
%files java
%attr(755,root,root) %{_libdir}/syslog-ng/libmod-java.so
%dir %{_libdir}/syslog-ng/java-modules
%attr(755,root,root) %{_libdir}/syslog-ng/java-modules/syslog-ng-core.jar
%endif
%if 0%{?with_smtp}
%files smtp
%defattr(-,root,root)
%dir %{_libdir}/syslog-ng
%attr(755,root,root) %{_libdir}/syslog-ng/libafsmtp.so
%endif
%if 0%{?with_geoip}
%files geoip
%defattr(-,root,root)
%dir %{_libdir}/syslog-ng
%attr(755,root,root) %{_libdir}/syslog-ng/libgeoip-plugin.so
%if 0%{?leap_version} >= 420200
%attr(755,root,root) %{_libdir}/syslog-ng/libgeoip2-plugin.so
%endif
%if 0%{?suse_version} > 1320
%attr(755,root,root) %{_libdir}/syslog-ng/libgeoip2-plugin.so
%endif
%endif
%if %{with redis}
%files redis
%defattr(-,root,root)
%dir %{_libdir}/syslog-ng
%attr(755,root,root) %{_libdir}/syslog-ng/libredis.so
%endif
%changelog