update to 1.1 [release 1.1-1mamba;Tue Dec 08 2020]

This commit is contained in:
Silvan Calarco 2024-01-06 08:09:11 +01:00
parent e9df0218bd
commit 9474e2e135

View File

@ -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 <silvan.calarco@mambasoft.it>
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 <silvan.calarco@mambasoft.it> 1.1-1mamba
- update to 1.1
* Mon Jun 23 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 0.9.46-1mamba
- package created using the webbuild interface