open-lldp/open-lldp.spec

125 lines
3.5 KiB
RPMSpec
Raw Normal View History

Name: open-lldp
Version: 0.9.46
Release: 1mamba
Summary: A core lldp engine for implementing TLVs
Group: System/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
Patch0: open-lldp-0.9.46-bootstrap.patch
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libconfig-devel
BuildRequires: libnl1-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
%patch0 -p1
%build
./bootstrap.sh
%configure
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall
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
:
%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
%{_unitdir}/lldpad.service
%{_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*
%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
* Mon Jun 23 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 0.9.46-1mamba
- package created using the webbuild interface