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/libcap-ng-0.8.2.tar.gz b/libcap-ng-0.8.2.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..9eb618e6661c0293eeb73a2e2e7103825d3aa8c3 Binary files /dev/null and b/libcap-ng-0.8.2.tar.gz differ diff --git a/libcap-ng.spec b/libcap-ng.spec new file mode 100644 index 0000000000000000000000000000000000000000..4d54bd5ef48e2c4a48fe6078eb63c3a98492ea07 --- /dev/null +++ b/libcap-ng.spec @@ -0,0 +1,89 @@ +Name: libcap-ng +Version: 0.8.2 +Release: 1%{?dist} +Summary: Alternate posix capabilities library + +License: LGPLv2+ +URL: https://people.redhat.com/sgrubb/libcap-ng/ +Source0: https://people.redhat.com/sgrubb/libcap-ng/%{name}-%{version}.tar.gz + +BuildRequires: make gcc kernel-headers libattr-devel + +%description +Libcap-ng is a library that makes using posix capabilities easier + +%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 python3 +Summary: Python3 bindings for libcap-ng library +License: LGPLv2+ +BuildRequires: python3-devel swig +BuildRequires: make +Requires: %{name}%{?_isa} = %{version}-%{release} + +%description python3 +The libcap-ng-python3 package contains the bindings so that libcap-ng +and can be used by python3 applications. + +%package utils +Summary: Utilities for analyzing and setting file capabilities +License: GPLv2+ +Requires: %{name}%{?_isa} = %{version}-%{release} + +%description utils +The libcap-ng-utils package contains applications to analyze the +posix capabilities of all the program running on a system. It also +lets you set the file system based capabilities. + +%prep +%autosetup + + +%build +%configure --disable-static --libdir=%{_libdir} --with-python=no --with-python3 +%make_build + + +%install +rm -rf $RPM_BUILD_ROOT +%make_install +find $RPM_BUILD_ROOT -name '*.la' -print -delete +find $RPM_BUILD_ROOT -name '*.a' -print -delete + + +%check +make check + +%ldconfig_scriptlets + + +%files +%license COPYING.LIB +%attr(0644,root,root) %{_mandir}/man7/* +%{_libdir}/*.so.* + +%files devel +%attr(0644,root,root) %{_mandir}/man3/* +%attr(0644,root,root) %{_includedir}/cap-ng.h +%attr(0644,root,root) %{_datadir}/aclocal/cap-ng.m4 +%{_libdir}/pkgconfig/libcap-ng.pc +%{_libdir}/*.so + +%files python3 +%attr(755,root,root) %{python3_sitearch}/* +%{python3_sitearch}/capng.py* + +%files utils +%license COPYING +%attr(0755,root,root) %{_bindir}/* +%attr(0644,root,root) %{_mandir}/man8/* + +%changelog +* Thu Mar 10 2022 forrest_ly - 0.8.2-1 +- Init for Anolis OS 23