open-lldp/open-lldp.spec

142 lines
3.9 KiB
RPMSpec

Name: open-lldp
Version: 1.1
Release: 1mamba
Summary: A core lldp engine for implementing TLVs
Group: Applications/Networking
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://www.open-lldp.org/
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: libnl-devel
## AUTOBUILDREQ-END
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
lldpad provides a core lldp engine for implementing TLVs currently supporting:
LLDP Basic Management TLV set
Data Center Bridging Exchange Protocol (DCBX)
Version 1 - pre-CEE version
Version 2 - CEE version
IEEE 802.1Qaz
LLDP-MED (media endpoint discovery)
802.3 LAN interface extensions
802.1 VLAN extensions
802.1AB Organizational Specific TLVs
Cisco specific TLVs (OUI 0x000142)
draft0 support for Edge Virtual Bridging (EVB) - IEEE 802.1Qbg standard is under development
Edge Control Protocol (ECP)
Virtual Station Interface (VSI) Discovery and Configuration Protocol (VDP)
The lldpad package comes with utilities to manage an LLDP interface with support for reading and configuring TLVs. TLVs and interfaces are individual controlled allowing flexible configuration for TX only, RX only, or TX/RX modes per TLV.
%package -n lib%{name}
Group: System/Libraries
Summary: Shared libraries for %{name}
%description -n lib%{name}
This package contains shared libraries for %{name}.
%package -n lib%{name}-devel
Group: Development/Libraries
Summary: Development files for %{name}
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
Requires: pkg-config
%description -n lib%{name}-devel
This package contains libraries and header files for developing applications that use %{name}.
%debug_package
%prep
%setup -q -n openlldp-%{version}
#%patch0 -p1
./bootstrap.sh
%build
%configure
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall \
systemdsystemunitdir=%{_unitdir}
#install -D -m0644 lldpad.service %{buildroot}%{_unitdir}/lldpad.service
#rm -f %{buildroot}%{_sysconfdir}/init.d/lldpad
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post
%systemd_post lldpad.socket
:
%preun
%systemd_preun lldpad.socket
:
%postun
%systemd_postun lldpad.socket
:
%post -n lib%{name} -p /sbin/ldconfig
%postun -n lib%{name} -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_sysconfdir}/bash_completion.d/lldpad
%{_sysconfdir}/bash_completion.d/lldptool
%{_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*
%{_mandir}/man8/lldptool-dcbx.8*
%{_mandir}/man8/lldptool-ets.8*
%{_mandir}/man8/lldptool-evb.8*
%{_mandir}/man8/lldptool-evb22.8*
%{_mandir}/man8/lldptool-med.8*
%{_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)
%{_libdir}/liblldp_clif.so.*
%doc COPYING
%files -n lib%{name}-devel
%defattr(-,root,root)
%dir %{_includedir}/lldpad
%{_includedir}/lldpad/*.h
%{_libdir}/liblldp_clif.a
%{_libdir}/liblldp_clif.la
%{_libdir}/liblldp_clif.so
%{_libdir}/pkgconfig/liblldp_clif.pc
%{_libdir}/pkgconfig/lldpad.pc
%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