2024-01-06 05:44:55 +01:00
|
|
|
%define majver %(echo %version | cut -d. -f1-2)
|
2024-01-06 05:44:55 +01:00
|
|
|
Name: libselinux
|
2024-01-06 05:44:57 +01:00
|
|
|
Version: 3.5
|
2024-01-06 05:44:56 +01:00
|
|
|
Release: 1mamba
|
2024-01-06 05:44:55 +01:00
|
|
|
Summary: A security enhancement to Linux that allows users and administrators more control over resources access
|
|
|
|
Group: System/Libraries
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
2024-01-06 05:44:56 +01:00
|
|
|
URL: https://github.com/SELinuxProject/selinux/
|
2024-01-06 05:44:55 +01:00
|
|
|
Source: https://github.com/SELinuxProject/selinux/archive/libselinux-%{version}.tar.gz
|
2024-01-06 05:44:55 +01:00
|
|
|
Source1: selinux-config
|
|
|
|
Patch0: libselinux-2.2.1-pkgconfig.patch
|
|
|
|
License: Public Domain
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
BuildRequires: glibc-devel
|
|
|
|
BuildRequires: libpcre-devel
|
|
|
|
%if "%{stage1}" != "1"
|
2024-01-06 05:44:56 +01:00
|
|
|
BuildRequires: libpython3-devel
|
2024-01-06 05:44:55 +01:00
|
|
|
BuildRequires: libsepol-devel
|
2024-01-06 05:44:55 +01:00
|
|
|
%endif
|
|
|
|
## AUTOBUILDREQ-END
|
|
|
|
BuildRequires: libsepol-devel
|
2024-01-06 05:44:55 +01:00
|
|
|
Requires: libsepol >= %{majver}
|
2024-01-06 05:44:56 +01:00
|
|
|
Requires: libselinux-tools = %{version}-%{release}
|
2024-01-06 05:44:55 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
SELinux is a security enhancement to Linux that allows users and administrators more control over which users and applications can access which resources, such as files. Standard Linux access controls, such as file modes (-rwxr-xr-x) are modifiable by the user and applications that the user runs whereas SELinux access controls are determined by a policy loaded on the system and not changeable by careless users or misbehaving applications.
|
|
|
|
SELinux also adds finer granularity to access controls. Instead of only being able to specify who can read, write or execute a file, for example, SELinux lets you specify who can unlink, append only, move a file and so on. SELinux allows you to specify access to many resources other than files as well, such as network resources and interprocess communication (IPC).
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Group: Development/Libraries
|
|
|
|
Summary: Static libraries and headers for %{name}
|
|
|
|
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
SELinux is a security enhancement to Linux that allows users and administrators more control over which users and applications can access which resources, such as files. Standard Linux access controls, such as file modes (-rwxr-xr-x) are modifiable by the user and applications that the user runs whereas SELinux access controls are determined by a policy loaded on the system and not changeable by careless users or misbehaving applications.
|
|
|
|
SELinux also adds finer granularity to access controls. Instead of only being able to specify who can read, write or execute a file, for example, SELinux lets you specify who can unlink, append only, move a file and so on. SELinux allows you to specify access to many resources other than files as well, such as network resources and interprocess communication (IPC).
|
|
|
|
|
|
|
|
This package contains static libraries and header files need for development.
|
|
|
|
|
|
|
|
%if "%{stage1}" != "1"
|
2024-01-06 05:44:56 +01:00
|
|
|
%package -n python-selinux-py3
|
2024-01-06 05:44:55 +01:00
|
|
|
Group: System/Libraries
|
|
|
|
Summary: Python bindings for libselinux
|
|
|
|
Provides: python-libselinux = %{?epoch:%epoch:}%{version}-%{release}
|
2024-01-06 05:44:56 +01:00
|
|
|
Obsoletes: python-libselinux < 3.4
|
2024-01-06 05:44:56 +01:00
|
|
|
Provides: libselinux-python
|
2024-01-06 05:44:56 +01:00
|
|
|
Obsoletes: libselinux-python < 3.4
|
2024-01-06 05:44:55 +01:00
|
|
|
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
|
2024-01-06 05:44:56 +01:00
|
|
|
%{py3_requires}
|
2024-01-06 05:44:55 +01:00
|
|
|
|
2024-01-06 05:44:56 +01:00
|
|
|
%description -n python-selinux-py3
|
2024-01-06 05:44:55 +01:00
|
|
|
The libselinux-python package contains the python bindings for developing SELinux applications.
|
|
|
|
|
|
|
|
An interface for security-aware applications.
|
|
|
|
This package contains the python interface library to libselinux.
|
|
|
|
%endif
|
|
|
|
|
2024-01-06 05:44:56 +01:00
|
|
|
%package tools
|
|
|
|
Group: Development/Libraries
|
|
|
|
Summary: Security Enhanced Linux utility programs
|
|
|
|
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
|
|
|
|
|
|
|
|
%description tools
|
|
|
|
This package contains the Security Enhanced Linux utility programs.
|
|
|
|
|
2024-01-06 05:44:55 +01:00
|
|
|
%debug_package
|
|
|
|
|
|
|
|
%prep
|
2024-01-06 05:44:55 +01:00
|
|
|
%setup -q -n selinux-libselinux-%{version}
|
2024-01-06 05:44:56 +01:00
|
|
|
#cd libselinux
|
|
|
|
#%patch0 -p1
|
2024-01-06 05:44:55 +01:00
|
|
|
|
|
|
|
%build
|
2024-01-06 05:44:55 +01:00
|
|
|
cd libselinux
|
2024-01-06 05:44:55 +01:00
|
|
|
%if "%{_build}" != "%{_host}"
|
2024-01-06 05:44:56 +01:00
|
|
|
%make CC=%{_target_platform}-gcc TLSFLAGS= \
|
|
|
|
LIBDIR=%{_libdir} \
|
|
|
|
SHLIBDIR=%{_libdir}
|
2024-01-06 05:44:55 +01:00
|
|
|
%else
|
2024-01-06 05:44:56 +01:00
|
|
|
%make CC=%{_target_platform}-gcc \
|
|
|
|
LIBDIR=%{_libdir} \
|
|
|
|
SHLIBDIR=%{_libdir}
|
2024-01-06 05:44:55 +01:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%if "%{stage1}" != "1"
|
2024-01-06 05:44:56 +01:00
|
|
|
%make pywrap LIBDIR=%{_libdir} \
|
|
|
|
LIBDIR=%{_libdir} \
|
|
|
|
SHLIBDIR=%{_libdir}
|
2024-01-06 05:44:55 +01:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
|
2024-01-06 05:44:55 +01:00
|
|
|
cd libselinux
|
2024-01-06 05:44:56 +01:00
|
|
|
|
|
|
|
install -d -m0755 %{buildroot}%{python3_sitelib}/selinux
|
|
|
|
|
2024-01-06 05:44:55 +01:00
|
|
|
%makeinstall \
|
2024-01-06 05:44:56 +01:00
|
|
|
LIBDIR=%{_libdir} \
|
|
|
|
SHLIBDIR=%{_libdir} \
|
2024-01-06 05:44:55 +01:00
|
|
|
%if "%{stage1}" != "1"
|
2024-01-06 05:44:56 +01:00
|
|
|
PYTHON=%{__python3} \
|
2024-01-06 05:44:55 +01:00
|
|
|
install-pywrap
|
|
|
|
%endif
|
|
|
|
|
|
|
|
install -D -m0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/selinux/config
|
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
|
|
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2024-01-06 05:44:56 +01:00
|
|
|
%{_libdir}/libselinux.so.*
|
|
|
|
%doc libselinux/LICENSE
|
2024-01-06 05:44:55 +01:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%dir %{_includedir}/selinux/
|
|
|
|
%{_includedir}/selinux/*.h
|
|
|
|
%{_libdir}/libselinux.a
|
2024-01-06 05:44:56 +01:00
|
|
|
%{_libdir}/libselinux.so
|
2024-01-06 05:44:55 +01:00
|
|
|
%{_mandir}/man3/*
|
|
|
|
%{_mandir}/man5/*
|
2024-01-06 05:44:56 +01:00
|
|
|
%lang(ru) %{_mandir}/ru/man5/*
|
|
|
|
|
2024-01-06 05:44:55 +01:00
|
|
|
%{_libdir}/pkgconfig/libselinux.pc
|
|
|
|
|
2024-01-06 05:44:56 +01:00
|
|
|
%files tools
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%config(noreplace) %{_sysconfdir}/selinux/config
|
|
|
|
%{_sbindir}/*
|
|
|
|
%{_mandir}/man8/*
|
2024-01-06 05:44:56 +01:00
|
|
|
%lang(ru) %{_mandir}/ru/man8/*
|
2024-01-06 05:44:56 +01:00
|
|
|
|
2024-01-06 05:44:55 +01:00
|
|
|
%if "%{stage1}" != "1"
|
2024-01-06 05:44:56 +01:00
|
|
|
%files -n python-selinux-py3
|
2024-01-06 05:44:55 +01:00
|
|
|
%defattr(-,root,root)
|
2024-01-06 05:44:57 +01:00
|
|
|
%dir %{python3_sitearch}/selinux-%{version}.dist-info
|
|
|
|
%{python3_sitearch}/selinux-%{version}.dist-info/*
|
|
|
|
%{python3_sitearch}/_selinux.cpython-*.so
|
|
|
|
%dir %{python3_sitearch}/selinux
|
2024-01-06 05:44:56 +01:00
|
|
|
%{python3_sitearch}/selinux/*
|
2024-01-06 05:44:55 +01:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%changelog
|
2024-01-06 05:44:57 +01:00
|
|
|
* Sat Feb 25 2023 Automatic Build System <autodist@mambasoft.it> 3.5-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 05:44:56 +01:00
|
|
|
* Sat Jul 16 2022 Automatic Build System <autodist@mambasoft.it> 3.4-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 05:44:56 +01:00
|
|
|
* Thu Nov 18 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 3.3-1mamba
|
|
|
|
- update to 3.3
|
|
|
|
|
2024-01-06 05:44:56 +01:00
|
|
|
* Fri Mar 05 2021 Automatic Build System <autodist@mambasoft.it> 3.2-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 05:44:56 +01:00
|
|
|
* Fri Nov 27 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 3.1-2mamba
|
|
|
|
- rebuilt with python3
|
|
|
|
|
|
|
|
* Sat Jul 11 2020 Automatic Build System <autodist@mambasoft.it> 3.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 05:44:56 +01:00
|
|
|
* Wed Dec 11 2019 Automatic Build System <autodist@mambasoft.it> 3.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 05:44:56 +01:00
|
|
|
* Sun Mar 24 2019 Automatic Build System <autodist@mambasoft.it> 2.9-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 05:44:56 +01:00
|
|
|
* Tue Sep 11 2018 Silvan Calarco <silvan.calarco@mambasoft.it> 2.8-1mamba
|
|
|
|
- update to 2.8
|
|
|
|
|
2024-01-06 05:44:55 +01:00
|
|
|
* Wed Nov 16 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 2.6-1mamba
|
|
|
|
- update to 2.6
|
|
|
|
|
2024-01-06 05:44:55 +01:00
|
|
|
* Sat Feb 27 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 2.5-1mamba
|
|
|
|
- update to 2.5
|
|
|
|
|
2024-01-06 05:44:55 +01:00
|
|
|
* Thu Dec 03 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 2.4-1mamba
|
|
|
|
- update to 2.4
|
|
|
|
|
2024-01-06 05:44:55 +01:00
|
|
|
* Wed May 07 2014 Automatic Build System <autodist@mambasoft.it> 2.3-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Tue Dec 31 2013 Automatic Build System <autodist@mambasoft.it> 2.2.2-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Sun Dec 01 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 2.2.1-3mamba
|
|
|
|
- really restore pkgconfig patch
|
|
|
|
|
|
|
|
* Sat Nov 30 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 2.2.1-2mamba
|
|
|
|
- restore pkgconfig patch
|
|
|
|
|
|
|
|
* Thu Nov 07 2013 Automatic Build System <autodist@mambasoft.it> 2.2.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Thu Oct 31 2013 Automatic Build System <autodist@mambasoft.it> 2.2-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Wed Jul 24 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 2.1.13-3mamba
|
|
|
|
- fix pkg-config patch, don't use Requires.private and Libs.private
|
|
|
|
|
|
|
|
* Sat Jul 20 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 2.1.13-2mamba
|
|
|
|
- add libpthread and libpcre in pkg-config file (needed in x86_64)
|
|
|
|
|
|
|
|
* Wed Apr 24 2013 Automatic Build System <autodist@mambasoft.it> 2.1.13-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Tue Sep 25 2012 Automatic Build System <autodist@mambasoft.it> 2.1.12-1mamba
|
|
|
|
- update to 2.1.12
|
|
|
|
|
|
|
|
* Mon Mar 12 2012 Automatic Build System <autodist@mambasoft.it> 2.1.9-1mamba
|
|
|
|
- update to 2.1.9
|
|
|
|
|
|
|
|
* Sat Apr 30 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 2.0.94-2mamba
|
|
|
|
- added default /etc/selinux/config file with SELINUX=disabled and SELINUXTYPE=targeted
|
|
|
|
|
|
|
|
* Tue Jun 22 2010 Automatic Build System <autodist@mambasoft.it> 2.0.94-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Tue Mar 23 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 2.0.85-1mamba
|
|
|
|
- update to 2.0.85
|
|
|
|
|
|
|
|
* Fri Jan 09 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 2.0.65-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Wed Apr 04 2007 Davide Madrisan <davide.madrisan@gmail.com> 2.0.8-1mamba
|
|
|
|
- update to version 2.0.8 by autospec
|
|
|
|
|
|
|
|
* Fri Jan 06 2006 Silvan Calarco <silvan.calarco@mambasoft.it> 1.28-1qilnx
|
|
|
|
- update to version 1.28 by autospec
|
|
|
|
|
|
|
|
* Wed Nov 02 2005 Silvan Calarco <silvan.calarco@mambasoft.it> 1.26-1qilnx
|
|
|
|
- update to version 1.26 by autospec
|
|
|
|
|
|
|
|
* Sat Jun 04 2005 Silvan Calarco <silvan.calarco@mambasoft.it> 1.22-1qilnx
|
|
|
|
- package created by autospec
|