update to 2.6 [release 2.6-1mamba;Wed Nov 16 2016]
This commit is contained in:
parent
ce6e4f4d10
commit
ab6fd58c2e
20
libsepol-2.6-flex-2.6.2.patch
Normal file
20
libsepol-2.6-flex-2.6.2.patch
Normal file
@ -0,0 +1,20 @@
|
||||
--- selinux-libselinux-2.6/libsepol/cil/src/cil_lexer.l.orig 2016-11-16 17:52:41.490786500 +0100
|
||||
+++ selinux-libselinux-2.6/libsepol/cil/src/cil_lexer.l 2016-11-16 17:51:43.890953733 +0100
|
||||
@@ -69,7 +69,7 @@
|
||||
int cil_lexer_setup(char *buffer, uint32_t size)
|
||||
{
|
||||
size = (yy_size_t)size;
|
||||
- if (yy_scan_buffer(buffer, size) == NULL) {
|
||||
+ if (cil_yy_scan_buffer(buffer, size) == NULL) {
|
||||
cil_log(CIL_INFO, "Lexer failed to setup buffer\n");
|
||||
return SEPOL_ERR;
|
||||
}
|
||||
@@ -81,7 +81,7 @@
|
||||
|
||||
void cil_lexer_destroy(void)
|
||||
{
|
||||
- yylex_destroy();
|
||||
+ cil_yylex_destroy();
|
||||
}
|
||||
|
||||
int cil_lexer_next(struct token *tok)
|
@ -1,5 +1,5 @@
|
||||
Name: libsepol
|
||||
Version: 2.1.4
|
||||
Version: 2.6
|
||||
Release: 1mamba
|
||||
Summary: Security Enhanced Linux policy manipulation library
|
||||
Group: System/Libraries
|
||||
@ -7,7 +7,11 @@ Vendor: openmamba
|
||||
Distribution: openmamba
|
||||
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
||||
URL: http://userspace.selinuxproject.org/trac
|
||||
Source: http://userspace.selinuxproject.org/releases/20120216/%{name}-%{version}.tar.gz
|
||||
Source: https://github.com/SELinuxProject/selinux/archive/libselinux-%{version}.tar.gz
|
||||
Patch0: libsepol-2.6-flex-2.6.2.patch
|
||||
## AUTOBUILDREQ-BEGIN
|
||||
BuildRequires: glibc-devel
|
||||
## AUTOBUILDREQ-END
|
||||
License: LGPL
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
||||
|
||||
@ -40,13 +44,16 @@ This package contains the Security Enhanced Linux policy utility programs.
|
||||
%debug_package
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%setup -q -n selinux-libselinux-%{version}
|
||||
%patch0 -p1
|
||||
|
||||
%build
|
||||
cd libsepol
|
||||
%make CC=%{_host}-gcc
|
||||
|
||||
%install
|
||||
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
|
||||
cd libsepol
|
||||
%makeinstall \
|
||||
LIBDIR=%{buildroot}%{_libdir} \
|
||||
SHLIBDIR=%{buildroot}/%{_lib}
|
||||
@ -62,16 +69,19 @@ rm -f %{buildroot}%{_mandir}/man8/genpolusers.*
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
/%{_lib}/*.so.*
|
||||
%doc COPYING ChangeLog
|
||||
/%{_lib}/libsepol.so.*
|
||||
%doc libsepol/COPYING libsepol/ChangeLog
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root)
|
||||
%dir %{_includedir}/sepol
|
||||
%{_includedir}/sepol/*.h
|
||||
%dir %{_includedir}/sepol/policydb
|
||||
%{_includedir}/sepol/policydb/*.h
|
||||
%{_libdir}/*.a
|
||||
%{_libdir}/*.so
|
||||
%dir %{_includedir}/sepol/cil
|
||||
%{_includedir}/sepol/cil/cil.h
|
||||
%{_libdir}/libsepol.a
|
||||
%{_libdir}/libsepol.so
|
||||
%{_libdir}/pkgconfig/libsepol.pc
|
||||
%{_mandir}/man3/*
|
||||
|
||||
@ -81,6 +91,9 @@ rm -f %{buildroot}%{_mandir}/man8/genpolusers.*
|
||||
%{_mandir}/man8/chkcon.*
|
||||
|
||||
%changelog
|
||||
* Wed Nov 16 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 2.6-1mamba
|
||||
- update to 2.6
|
||||
|
||||
* Sat May 19 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 2.1.4-1mamba
|
||||
- update to 2.1.4
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user