From 9474e2e135669186b80ed927c023643fadaf6067 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 08:09:11 +0100 Subject: [PATCH] update to 1.1 [release 1.1-1mamba;Tue Dec 08 2020] --- open-lldp.spec | 43 ++++++++++++++++++++++++++++++------------- 1 file changed, 30 insertions(+), 13 deletions(-) diff --git a/open-lldp.spec b/open-lldp.spec index 5d92e8f..994cd7f 100644 --- a/open-lldp.spec +++ b/open-lldp.spec @@ -1,19 +1,21 @@ Name: open-lldp -Version: 0.9.46 +Version: 1.1 Release: 1mamba Summary: A core lldp engine for implementing TLVs -Group: System/Networking +Group: Applications/Networking Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: http://www.open-lldp.org/ -Source: http://ftp-osl.osuosl.org/pub/open-lldp/open-lldp-%{version}.tar.gz +Source: https://github.com/intel/openlldp.git/v%{version}/openlldp-%{version}.tar.bz2 +#Source: http://ftp-osl.osuosl.org/pub/open-lldp/open-lldp-%{version}.tar.gz Patch0: open-lldp-0.9.46-bootstrap.patch License: GPL ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel +BuildRequires: ldconfig BuildRequires: libconfig-devel -BuildRequires: libnl1-devel +BuildRequires: libnl-devel ## AUTOBUILDREQ-END Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} BuildRoot: %{_tmppath}/%{name}-%{version}-root @@ -56,28 +58,36 @@ This package contains libraries and header files for developing applications tha %debug_package %prep -%setup -q -%patch0 -p1 +%setup -q -n openlldp-%{version} +#%patch0 -p1 +./bootstrap.sh %build -./bootstrap.sh %configure + %make %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" -%makeinstall +%makeinstall \ + systemdsystemunitdir=%{_unitdir} -install -D -m0644 lldpad.service %{buildroot}%{_unitdir}/lldpad.service -rm -f %{buildroot}%{_sysconfdir}/init.d/lldpad +#install -D -m0644 lldpad.service %{buildroot}%{_unitdir}/lldpad.service +#rm -f %{buildroot}%{_sysconfdir}/init.d/lldpad %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %post -if [ $1 -ge 1 ]; then - systemctl -q daemon-reload -fi +%systemd_post lldpad.socket +: + +%preun +%systemd_preun lldpad.socket +: + +%postun +%systemd_postun lldpad.socket : %post -n lib%{name} -p /sbin/ldconfig @@ -90,7 +100,9 @@ fi %{_sbindir}/dcbtool %{_sbindir}/lldpad %{_sbindir}/lldptool +%{_sbindir}/vdptool %{_unitdir}/lldpad.service +%{_unitdir}/lldpad.socket %{_mandir}/man8/dcbtool.8* %{_mandir}/man8/lldpad.8* %{_mandir}/man8/lldptool-app.8* @@ -102,6 +114,8 @@ fi %{_mandir}/man8/lldptool-pfc.8* %{_mandir}/man8/lldptool-vdp.8* %{_mandir}/man8/lldptool.8* +%{_mandir}/man3/liblldp_clif-vdp22.3* +%{_mandir}/man8/vdptool.8* %files -n lib%{name} %defattr(-,root,root) @@ -120,5 +134,8 @@ fi %doc ChangeLog README %changelog +* Tue Dec 08 2020 Silvan Calarco 1.1-1mamba +- update to 1.1 + * Mon Jun 23 2014 Silvan Calarco 0.9.46-1mamba - package created using the webbuild interface