diff --git a/README.md b/README.md deleted file mode 100644 index 7342728d557c602f51c6d278bba9f3dd9faaf356..0000000000000000000000000000000000000000 --- a/README.md +++ /dev/null @@ -1,11 +0,0 @@ -Anolis OS -======================================= -# 代码仓库说明 -## 分支说明 ->进行代码开发工作时,请注意选择当前版本对应的分支 -* aX分支为对应大版本的主分支,如a8分支对应当前最新版本 -* aX.Y分支为对应小版本的维护分支,如a8.2分支对应8.2版本 -## 开发流程 -1. 首先fork目标分支到自己的namespace -2. 在自己的fork分支上做出修改 -3. 向对应的仓库中提交merge request,源分支为fork分支 diff --git a/libnl-3.5.0.tar.gz b/libnl-3.5.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..049b1cae2c7d96555b881d223fc9e4ecda44a2ff Binary files /dev/null and b/libnl-3.5.0.tar.gz differ diff --git a/libnl-doc-3.5.0.tar.gz b/libnl-doc-3.5.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..dfc47ddf37b7caeaad468572bea0da76e4f0818b Binary files /dev/null and b/libnl-doc-3.5.0.tar.gz differ diff --git a/libnl3.spec b/libnl3.spec new file mode 100644 index 0000000000000000000000000000000000000000..ab3293dd45fceb1e7c688500372ff1f627807bd7 --- /dev/null +++ b/libnl3.spec @@ -0,0 +1,116 @@ +Name: libnl3 +Version: 3.5.0 +Release: 1%{?dist} +Summary: Convenience library for kernel netlink sockets + +License: LGPLv2 +URL: http://www.infradead.org/~tgr/libnl/ +Source0: https://github.com/thom311/libnl/releases/download/libnl3_5_0/libnl-%{version}.tar.gz +Source1: https://github.com/thom311/libnl/releases/download/libnl3_5_0/libnl-doc-%{version}.tar.gz + +BuildRequires: autoconf automake bison flex libtool swig + +%description +This package contains a convenience library to simplify +using the Linux kernel's netlink sockets interface for +network manipulation + +%package devel +Summary: Development files for %{name} +Requires: %{name}%{?_isa} = %{version}-%{release} + +%description devel +The %{name}-devel package contains libraries and header files for +developing applications that use %{name}. + +%package cli +Summary: Command line interface utils for libnl3 +Requires: %{name} = %{version}-%{release} + +%description cli +This package contains various libnl3 utils and additional +libraries on which they depend + + +%package doc +Summary: API documentation for libnl3 +Requires: %{name} = %{version}-%{release} + +%description doc +This package contains libnl3 API documentation + +%package -n python3-libnl3 +Summary: libnl3 binding for Python 3 +%{?python_provide:%python_provide python3-libnl3} +BuildRequires: python3-devel +BuildRequires: make +Requires: %{name} = %{version}-%{release} + +%description -n python3-libnl3 +Python 3 bindings for libnl3 + + +%prep +%autosetup -n libnl-%{version} +tar -xzf %SOURCE1 + +%build +autoreconf -vif +%configure --disable-static +%make_build + +pushd ./python/ +CFLAGS="$RPM_OPT_FLAGS" %py3_build +CFLAGS="$RPM_OPT_FLAGS" %py3_build +popd + +%install +rm -rf $RPM_BUILD_ROOT +%make_install +find $RPM_BUILD_ROOT -name '*.la' -print -delete +pushd ./python/ +%py3_install +popd + +%check +make check +pushd ./python/ +%{__python3} setup.py check +popd + +%ldconfig_scriptlets +%ldconfig_scriptlets cli + +%files +%doc COPYING +%exclude %{_libdir}/libnl-cli*.so.* +%{_libdir}/libnl-*.so.* +%config(noreplace) %{_sysconfdir}/* + +%files devel +%doc COPYING +%{_includedir}/libnl3/netlink/ +%dir %{_includedir}/libnl3/ +%{_libdir}/*.so +%{_libdir}/pkgconfig/*.pc + +%files cli +%doc COPYING +%{_libdir}/libnl-cli*.so.* +%{_libdir}/libnl/ +%{_bindir}/* +%{_mandir}/man8/* + +%files doc +%doc COPYING +%doc libnl-doc-%{version}/*.html +%doc libnl-doc-%{version}/*/* + +%files -n python3-libnl3 +%{python3_sitearch}/netlink +%{python3_sitearch}/netlink-*.egg-info + + +%changelog +* Thu Mar 10 2022 forrest_ly - 3.5.0-1 +- Init for Anolis OS 23