diff --git a/libndp-1.8.tar.gz b/libndp-1.8.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..4cee71dc9a80876826408735e860745a99cb2e92 Binary files /dev/null and b/libndp-1.8.tar.gz differ diff --git a/libndp.spec b/libndp.spec new file mode 100644 index 0000000000000000000000000000000000000000..77c1d3cd16d8f95912af9a85a9605d5fc39345b3 --- /dev/null +++ b/libndp.spec @@ -0,0 +1,51 @@ +%define anolis_release 1 +Name: libndp +Version: 1.8 +Release: %{anolis_release}%{?dist} +Summary: Library for Neighbor Discovery Protocol +License: LGPLv2+ +URL: http://www.libndp.org/ +Source: http://www.libndp.org/files/libndp-%{version}.tar.gz + +BuildRequires: gcc +BuildRequires: make +%description +This package contains a library which provides a wrapper +for IPv6 Neighbor Discovery Protocol. It also provides a tool +named ndptool for sending and receiving NDP messages. + +%package devel +Summary: Libraries and header files for libndp development +Requires: libndp = %{version}-%{release} + +%description devel +The libndp-devel package contains the header files and libraries +necessary for developing programs using libndp. + +%prep +%setup -q + +%build +%configure --disable-static +make %{?_smp_mflags} + +%install +make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p" +find $RPM_BUILD_ROOT -name \*.la -delete + +%ldconfig_scriptlets + +%files +%doc COPYING +%{_libdir}/*so.* +%{_bindir}/ndptool +%{_mandir}/man8/ndptool.8* + +%files devel +%{_includedir}/* +%{_libdir}/*.so +%{_libdir}/pkgconfig/*.pc + +%changelog +* Thu Mar 10 2022 DengXiewei - 1.8-1 +- Init from upstream 1.8