%ifarch %{ix86} x86_64 %bcond_without libseccomp %else %bcond_with libseccomp %endif Name: lldpd Version: 1.0.13 Release: 1%{?dist} Summary: ISC-licensed implementation of LLDP License: ISC URL: https://lldpd.github.io/%{name}/ Source0: https://media.luffy.cx/files/lldpd/%{name}-%{version}.tar.gz Source1: %{name}-fedora.service Source2: %{name}-tmpfiles Source3: %{name}-fedora.sysconfig # Backported from upstream Patch0: %{name}-1.0.14-backport-fixes.patch BuildRequires: autoconf BuildRequires: automake BuildRequires: pkgconfig(check) BuildRequires: gcc BuildRequires: pkgconfig(libevent) BuildRequires: libtool BuildRequires: pkgconfig(libxml-2.0) BuildRequires: make BuildRequires: pkgconfig(netsnmp) BuildRequires: pkgconfig(readline) BuildRequires: systemd %if %{with libseccomp} # Only available on certain architectures. BuildRequires: pkgconfig(libseccomp) %endif Requires(pre): shadow-utils %description LLDP is an industry standard protocol designed to supplant proprietary Link-Layer protocols such as EDP or CDP. The goal of LLDP is to provide an inter-vendor compatible mechanism to deliver Link-Layer notifications to adjacent network devices. %package devel Requires: %{name}%{?_isa} = %{version}-%{release} Summary: %{summary} %description devel %{name} development libraries and headers %prep %autosetup -p1 %build autoreconf -ivf %configure \ --disable-static \ --with-snmp \ --disable-silent-rules \ --with-privsep-user=%{name} \ --with-privsep-group=%{name} \ --with-privsep-chroot=%{_rundir}/%{name}/chroot \ --with-lldpd-ctl-socket=%{_rundir}/%{name}/%{name}.socket \ --with-systemdsystemunitdir=%{_unitdir} \ %if %{with libseccomp} --with-seccomp \ %endif --with-sysusersdir=no %make_build %install %make_install install -p -D -m644 %{SOURCE1} %{buildroot}%{_unitdir}/%{name}.service install -p -D -m644 %{SOURCE2} %{buildroot}%{_tmpfilesdir}/%{name}.conf install -p -D -m644 %{SOURCE3} %{buildroot}/etc/sysconfig/%{name} install -d -m 0755 %{buildroot}%{_sharedstatedir}/%{name} # remove the docs from buildroot rm -rf %{buildroot}/usr/share/doc/%{name} # don't include completion conf yet rm -f %{buildroot}/usr/share/bash-completion/completions/lldpcli rm -f %{buildroot}/usr/share/zsh/vendor-completions/_lldpcli rm -f %{buildroot}/usr/share/zsh/site-functions/_lldpcli # remove static libtool archive rm -f %{buildroot}%{_libdir}/liblldpctl.la %check make check %pre getent group %{name} >/dev/null || groupadd -r %{name} getent passwd %{name} >/dev/null || \ useradd -r -g %{name} -d %{_sharedstatedir}/%{name} -s /sbin/nologin \ -c "Used by the %{name} daemon" %{name} exit 0 %post %systemd_post %{name}.service %preun %systemd_preun %{name}.service %postun %systemd_postun_with_restart %{name}.service %files %doc NEWS README.md %license LICENSE %{_sbindir}/lldpcli %{_sbindir}/lldpctl %{_sbindir}/%{name} %config %{_sysconfdir}/%{name}.d %config(noreplace) %{_sysconfdir}/sysconfig/%{name} %{_mandir}/man8/lldpcli.8* %{_mandir}/man8/lldpctl.8* %{_mandir}/man8/%{name}.8* %{_libdir}/liblldpctl.so.4 %{_libdir}/liblldpctl.so.4.9.0 %{_unitdir}/%{name}.service %{_tmpfilesdir}/%{name}.conf %dir %attr(-,lldpd,lldpd) %{_sharedstatedir}/%{name} %files devel %{_includedir}/lldp-const.h %{_includedir}/lldpctl.h %{_libdir}/liblldpctl.so %{_libdir}/pkgconfig/lldpctl.pc %changelog * Mon Jan 10 2022 David Sastre Medina - 1.0.13-1 - Update to 1.0.13 - Closes rhbz#1797336 - Fixes CVE-2021-43612, CVE-2021-36980 and CVE-2020-27827 - Closes rhbz#1984478 - Enable experimental SECCOMP support on x86_64 - Backport fixes from upcoming upstream 1.0.14 - Drop ldconfig scriptlets as per https://fedoraproject.org/wiki/Changes/Removing_ldconfig_scriptlets - Drop el6 and el7 support - liblldpctl soname bump to 4.9.0 - Pkgconfig build dependencies notation * Thu Jul 22 2021 Fedora Release Engineering - 1.0.4-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Tue Mar 02 2021 Zbigniew Jędrzejewski-Szmek - 1.0.4-7 - Rebuilt for updated systemd-rpm-macros See https://pagure.io/fesco/issue/2583. * Tue Jan 26 2021 Fedora Release Engineering - 1.0.4-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Tue Sep 29 20:35:23 CEST 2020 Zbigniew Jędrzejewski-Szmek - 1.0.4-5 - Rebuilt for libevent 2.1.12 * Wed Sep 02 2020 Josef Ridky - 1.0.4-4 - Rebuilt for new net-snmp release * Tue Jul 28 2020 Fedora Release Engineering - 1.0.4-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Wed Jan 29 2020 Fedora Release Engineering - 1.0.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Tue Aug 13 2019 James Hogarth - 1.0.4-1 - Updated to new upstream release 1.0.4 * Thu Jul 25 2019 Fedora Release Engineering - 1.0.1-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sun Feb 17 2019 Igor Gnatenko - 1.0.1-5 - Rebuild for readline 8.0 * Fri Feb 01 2019 Fedora Release Engineering - 1.0.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Tue Jul 24 2018 Adam Williamson - 1.0.1-3 - Rebuild for new net-snmp * Fri Jul 13 2018 Fedora Release Engineering - 1.0.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Tue Apr 17 2018 James Hogarth - 1.0.1-1 - Update to 1.0.1 * Thu Feb 08 2018 Fedora Release Engineering - 0.9.8-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Mon Aug 21 2017 James Hogarth - 0.9.8-1 - Update to 0.9.8 * Fri Aug 11 2017 Igor Gnatenko - 0.9.7-10 - Rebuilt after RPM update (№ 3) * Thu Aug 10 2017 Igor Gnatenko - 0.9.7-9 - Rebuilt for RPM soname bump * Thu Aug 10 2017 Igor Gnatenko - 0.9.7-8 - Rebuilt for RPM soname bump * Thu Aug 03 2017 Fedora Release Engineering - 0.9.7-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Wed Jul 26 2017 Fedora Release Engineering - 0.9.7-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Thu Apr 06 2017 James Hogarth - 0.9.7-5 - Older fedora needs the older syntax matching EPEL7 * Wed Apr 05 2017 James Hogarth - 0.9.7-4 - EPEL7 systemd needs an older syntax * Wed Apr 05 2017 James Hogarth - 0.9.7-3 - Use the official release tarball rather than the github snapshot - Add EPEL6 conditionals * Wed Apr 05 2017 James Hogarth - 0.9.7-2 - Tweaks to spec requested in review * Tue Apr 04 2017 James Hogarth - 0.9.7-1 - Initial package