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/libnfnetlink-1.0.1.tar.bz2 b/libnfnetlink-1.0.1.tar.bz2 new file mode 100644 index 0000000000000000000000000000000000000000..cfa719b425c80d22c15640a9452f97f88b0da1b2 Binary files /dev/null and b/libnfnetlink-1.0.1.tar.bz2 differ diff --git a/libnfnetlink.spec b/libnfnetlink.spec new file mode 100644 index 0000000000000000000000000000000000000000..0cd064cd6f4b2f946a1fb028eecddea6e7198906 --- /dev/null +++ b/libnfnetlink.spec @@ -0,0 +1,60 @@ +%define anolis_release 1 + +Name: libnfnetlink +Version: 1.0.1 +Release: %{anolis_release}%{?dist} +Summary: Netfilter netlink userspace library +License: GPLv2+ +URL: http://netfilter.org +Source0: http://netfilter.org/projects/libnfnetlink/files/%{name}-%{version}.tar.bz2 +BuildRequires: kernel-headers +BuildRequires: automake autoconf libtool pkgconfig +BuildRequires: make + +%description +libnfnetlink is a userspace library that provides some low-level +nfnetlink handling functions. It is used as a foundation for other, netfilter +subsystem specific libraries such as libnfnetlink_conntrack, libnfnetlink_log +and libnfnetlink_queue. + +%package devel +Summary: Netfilter netlink userspace library +Requires: %{name} = %{version}-%{release} +Requires: kernel-headers + +%description devel +libnfnetlink is a userspace library that provides some low-level +nfnetlink handling functions. It is used as a foundation for other, netfilter +subsystem specific libraries such as libnfnetlink_conntrack, libnfnetlink_log +and libnfnetlink_queue. + +%prep +%setup -q + +%build +%configure --disable-static +make %{?_smp_mflags} + +%install +rm -rf $RPM_BUILD_ROOT +make install DESTDIR=$RPM_BUILD_ROOT +find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';' + +%ldconfig_scriptlets + +%files +%{!?_licensedir:%global license %%doc} +%license COPYING +%doc README +%{_libdir}/*.so.* + + +%files devel +%{_libdir}/*.so +%{_libdir}/pkgconfig/*.pc +%dir %{_includedir}/libnfnetlink +%{_includedir}/libnfnetlink/*.h + +%changelog +* Wed Mar 09 2022 Renbo - 1.0.1-1 +- Init for Anolis OS 23