2017-04-05 15:42:11 +00:00
|
|
|
Name: lldpd
|
2024-04-24 03:10:54 +00:00
|
|
|
Version: 1.0.18
|
2024-06-24 16:00:34 +00:00
|
|
|
Release: 2%{?dist}
|
2017-04-05 15:42:11 +00:00
|
|
|
Summary: ISC-licensed implementation of LLDP
|
|
|
|
|
|
|
|
License: ISC
|
2024-04-24 03:10:54 +00:00
|
|
|
URL: https://%{name}.github.io/
|
|
|
|
Source0: %{name}-%{version}-free.tar.gz
|
2017-04-05 15:42:11 +00:00
|
|
|
Source1: %{name}-fedora.service
|
|
|
|
Source2: %{name}-tmpfiles
|
2017-04-05 21:49:06 +00:00
|
|
|
Source3: %{name}-fedora.sysconfig
|
2023-04-11 19:19:15 +00:00
|
|
|
Source4: %{name}-systemd-sysusers.conf
|
2024-04-24 03:10:54 +00:00
|
|
|
|
|
|
|
Source100: %{name}-cleanup.sh
|
2017-04-05 15:42:11 +00:00
|
|
|
|
|
|
|
BuildRequires: check-devel
|
2023-04-11 19:19:15 +00:00
|
|
|
BuildRequires: gcc
|
2017-04-05 15:42:11 +00:00
|
|
|
BuildRequires: libxml2-devel
|
2017-04-05 22:07:58 +00:00
|
|
|
BuildRequires: libevent-devel
|
2021-01-05 03:19:22 +00:00
|
|
|
BuildRequires: make
|
2023-04-11 19:19:15 +00:00
|
|
|
BuildRequires: net-snmp-devel
|
|
|
|
BuildRequires: readline-devel
|
|
|
|
BuildRequires: systemd-devel
|
2017-04-05 15:42:11 +00:00
|
|
|
%{?systemd_requires}
|
|
|
|
|
|
|
|
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
|
2022-12-08 12:07:01 +00:00
|
|
|
%autosetup -p1
|
2017-04-05 15:42:11 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
%configure --disable-static --with-snmp --disable-silent-rules \
|
|
|
|
--with-privsep-user=%{name} --with-privsep-group=%{name} \
|
2023-04-22 14:01:48 +00:00
|
|
|
--with-privsep-chroot=%{_rundir}/%{name}/chroot \
|
|
|
|
--with-lldpd-ctl-socket=%{_rundir}/%{name}/%{name}.socket \
|
2017-04-05 22:07:58 +00:00
|
|
|
--with-systemdsystemunitdir=%{_unitdir} --with-sysusersdir=no
|
2017-04-05 15:42:11 +00:00
|
|
|
|
2023-04-11 19:19:15 +00:00
|
|
|
%make_build
|
2017-04-05 15:42:11 +00:00
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%make_install
|
|
|
|
|
|
|
|
install -p -D -m644 %{SOURCE1} %{buildroot}%{_unitdir}/%{name}.service
|
|
|
|
install -p -D -m644 %{SOURCE2} %{buildroot}%{_tmpfilesdir}/%{name}.conf
|
2017-04-05 21:49:06 +00:00
|
|
|
install -p -D -m644 %{SOURCE3} %{buildroot}/etc/sysconfig/%{name}
|
2023-04-22 14:01:48 +00:00
|
|
|
install -p -D -m644 %{SOURCE4} %{buildroot}%{_sysusersdir}/%{name}.conf
|
2017-04-05 22:07:58 +00:00
|
|
|
|
2023-04-22 14:01:48 +00:00
|
|
|
install -d -D -m 0755 %{buildroot}%{_rundir}/%{name}/chroot
|
2017-04-05 15:42:11 +00:00
|
|
|
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
|
2017-08-21 08:32:56 +00:00
|
|
|
rm -f %{buildroot}/usr/share/zsh/site-functions/_lldpcli
|
2017-04-05 15:42:11 +00:00
|
|
|
|
|
|
|
# remove static libtool archive
|
2023-04-11 19:19:15 +00:00
|
|
|
find %{buildroot} -type f -name "*.la" -delete
|
|
|
|
|
|
|
|
%ldconfig_scriptlets
|
2017-04-05 15:42:11 +00:00
|
|
|
|
|
|
|
%pre
|
2023-04-11 19:19:15 +00:00
|
|
|
%sysusers_create_compat %{SOURCE4}
|
2017-04-05 15:42:11 +00:00
|
|
|
exit 0
|
|
|
|
|
|
|
|
%post
|
2023-04-11 19:19:15 +00:00
|
|
|
%systemd_post lldpd.service
|
2017-04-05 15:42:11 +00:00
|
|
|
|
|
|
|
%preun
|
2023-04-11 19:19:15 +00:00
|
|
|
%systemd_preun lldpd.service
|
2017-04-05 15:42:11 +00:00
|
|
|
|
|
|
|
%postun
|
2023-04-11 19:19:15 +00:00
|
|
|
%systemd_postun_with_restart lldpd.service
|
2017-04-05 15:42:11 +00:00
|
|
|
|
|
|
|
%files
|
|
|
|
%license LICENSE
|
2023-04-11 19:19:15 +00:00
|
|
|
%doc NEWS README.md
|
|
|
|
%config %{_sysconfdir}/%{name}.d
|
|
|
|
%config(noreplace) %{_sysconfdir}/sysconfig/%{name}
|
2017-04-05 15:42:11 +00:00
|
|
|
%{_sbindir}/lldpcli
|
|
|
|
%{_sbindir}/lldpctl
|
|
|
|
%{_sbindir}/%{name}
|
|
|
|
%{_mandir}/man8/lldpcli.8*
|
|
|
|
%{_mandir}/man8/lldpctl.8*
|
|
|
|
%{_mandir}/man8/%{name}.8*
|
2023-04-11 19:19:15 +00:00
|
|
|
%{_libdir}/liblldpctl.so.4*
|
2023-04-22 14:01:48 +00:00
|
|
|
%dir %{_rundir}/%{name}
|
|
|
|
%dir %{_rundir}/%{name}/chroot
|
2017-04-05 15:42:11 +00:00
|
|
|
%{_unitdir}/%{name}.service
|
|
|
|
%{_tmpfilesdir}/%{name}.conf
|
2023-04-22 14:01:48 +00:00
|
|
|
%{_sysusersdir}/%{name}.conf
|
2017-04-05 15:42:11 +00:00
|
|
|
%dir %attr(-,lldpd,lldpd) %{_sharedstatedir}/%{name}
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%{_includedir}/lldp-const.h
|
|
|
|
%{_includedir}/lldpctl.h
|
|
|
|
%{_libdir}/liblldpctl.so
|
|
|
|
%{_libdir}/pkgconfig/lldpctl.pc
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2024-06-24 16:00:34 +00:00
|
|
|
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 1.0.18-2
|
|
|
|
- Bump release for June 2024 mass rebuild
|
|
|
|
|
2024-04-24 03:10:54 +00:00
|
|
|
* Wed Arp 24 2024 Hangbin Liu <haliu@redhat.com> - 1.0.18-1
|
|
|
|
- Strip ASL/APSL components (RHELMISC-4345)
|
|
|
|
|
2024-01-25 04:29:39 +00:00
|
|
|
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.16-6
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
2024-01-21 06:04:49 +00:00
|
|
|
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.16-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
2023-11-28 17:53:40 +00:00
|
|
|
* Tue Nov 28 2023 Florian Weimer <fweimer@redhat.com> - 1.0.16-4
|
|
|
|
- Reapply C99 compatibility fix
|
|
|
|
|
2023-07-20 12:54:45 +00:00
|
|
|
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.16-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
|
2023-04-22 14:01:48 +00:00
|
|
|
* Tue May 2 2023 Peter Hjalmarsson <kanelxake@gmail.com> - 1.0.16-2
|
|
|
|
- Correcting usage of rundir macro
|
|
|
|
- Fix creation of sysuser
|
|
|
|
|
2023-04-11 19:19:15 +00:00
|
|
|
* Tue Apr 11 2023 Peter Robinson <pbrobinson@fedoraproject.org> - 1.0.16-1
|
|
|
|
- Update to 1.0.16
|
|
|
|
- Modernise spec file
|
|
|
|
- CVEs: CVE-2020-27827, CVE-2020-27827, CVE-2021-43612
|
|
|
|
|
2023-01-19 18:09:27 +00:00
|
|
|
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.4-12
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
2022-12-08 12:07:01 +00:00
|
|
|
* Thu Dec 8 2022 Florian Weimer <fweimer@redhat.com> - 1.0.4-11
|
|
|
|
- Port configure script to C99
|
|
|
|
|
2022-07-21 19:44:15 +00:00
|
|
|
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.4-10
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
2022-01-20 17:57:12 +00:00
|
|
|
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.4-9
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
2021-07-22 13:02:47 +00:00
|
|
|
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.4-8
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
2021-03-02 15:13:36 +00:00
|
|
|
* Tue Mar 02 2021 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.0.4-7
|
|
|
|
- Rebuilt for updated systemd-rpm-macros
|
|
|
|
See https://pagure.io/fesco/issue/2583.
|
|
|
|
|
2021-01-26 18:36:00 +00:00
|
|
|
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.4-6
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
2020-09-29 18:35:23 +00:00
|
|
|
* Tue Sep 29 20:35:23 CEST 2020 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.0.4-5
|
|
|
|
- Rebuilt for libevent 2.1.12
|
|
|
|
|
2020-09-02 07:38:31 +00:00
|
|
|
* Wed Sep 02 2020 Josef Ridky <jridky@redhat.com> - 1.0.4-4
|
|
|
|
- Rebuilt for new net-snmp release
|
|
|
|
|
2020-07-28 06:11:24 +00:00
|
|
|
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.4-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
2020-01-29 11:09:03 +00:00
|
|
|
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.4-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
2019-08-13 11:37:22 +00:00
|
|
|
* Tue Aug 13 2019 James Hogarth <james.hogarth@gmail.com> - 1.0.4-1
|
|
|
|
- Updated to new upstream release 1.0.4
|
|
|
|
|
2019-07-25 15:03:42 +00:00
|
|
|
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-6
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
2019-02-17 08:30:51 +00:00
|
|
|
* Sun Feb 17 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.0.1-5
|
|
|
|
- Rebuild for readline 8.0
|
|
|
|
|
2019-02-01 08:52:32 +00:00
|
|
|
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
2018-07-24 21:45:48 +00:00
|
|
|
* Tue Jul 24 2018 Adam Williamson <awilliam@redhat.com> - 1.0.1-3
|
|
|
|
- Rebuild for new net-snmp
|
|
|
|
|
2018-07-13 09:16:13 +00:00
|
|
|
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
2018-04-18 01:08:52 +00:00
|
|
|
* Tue Apr 17 2018 James Hogarth <james.hogarth@gmail.com> - 1.0.1-1
|
|
|
|
- Update to 1.0.1
|
|
|
|
|
2018-02-08 00:01:45 +00:00
|
|
|
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.8-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|
2017-08-21 08:32:56 +00:00
|
|
|
* Mon Aug 21 2017 James Hogarth <james.hogarth@gmail.com> - 0.9.8-1
|
|
|
|
- Update to 0.9.8
|
|
|
|
|
2017-08-11 09:09:50 +00:00
|
|
|
* Fri Aug 11 2017 Igor Gnatenko <ignatenko@redhat.com> - 0.9.7-10
|
|
|
|
- Rebuilt after RPM update (№ 3)
|
|
|
|
|
2017-08-10 20:10:05 +00:00
|
|
|
* Thu Aug 10 2017 Igor Gnatenko <ignatenko@redhat.com> - 0.9.7-9
|
|
|
|
- Rebuilt for RPM soname bump
|
|
|
|
|
2017-08-10 18:27:31 +00:00
|
|
|
* Thu Aug 10 2017 Igor Gnatenko <ignatenko@redhat.com> - 0.9.7-8
|
|
|
|
- Rebuilt for RPM soname bump
|
|
|
|
|
2017-08-03 02:41:22 +00:00
|
|
|
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.7-7
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
|
|
2017-07-26 20:13:34 +00:00
|
|
|
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.7-6
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
|
|
2017-04-06 00:02:13 +00:00
|
|
|
* Thu Apr 06 2017 James Hogarth <james.hogarth@gmail.com> - 0.9.7-5
|
|
|
|
- Older fedora needs the older syntax matching EPEL7
|
|
|
|
|
2017-04-05 23:27:13 +00:00
|
|
|
* Wed Apr 05 2017 James Hogarth <james.hogarth@gmail.com> - 0.9.7-4
|
|
|
|
- EPEL7 systemd needs an older syntax
|
|
|
|
|
2017-04-05 21:49:06 +00:00
|
|
|
* Wed Apr 05 2017 James Hogarth <james.hogarth@gmail.com> - 0.9.7-3
|
|
|
|
- Use the official release tarball rather than the github snapshot
|
2017-04-05 22:07:58 +00:00
|
|
|
- Add EPEL6 conditionals
|
2017-04-05 21:49:06 +00:00
|
|
|
|
2017-04-05 15:42:11 +00:00
|
|
|
* Wed Apr 05 2017 James Hogarth <james.hogarth@gmail.com> - 0.9.7-2
|
|
|
|
- Tweaks to spec requested in review
|
|
|
|
|
|
|
|
* Tue Apr 04 2017 James Hogarth <james.hogarth@gmail.com> - 0.9.7-1
|
|
|
|
- Initial package
|