public inbox for development@lists.ipfire.org
 help / color / mirror / Atom feed
* [PATCH] libsepol: Update to 2.5.
@ 2016-10-04  9:34 Stefan Schantl
  0 siblings, 0 replies; only message in thread
From: Stefan Schantl @ 2016-10-04  9:34 UTC (permalink / raw)
  To: development

[-- Attachment #1: Type: text/plain, Size: 1470 bytes --]

This is a major update to the latest stable version of libsepol.

* New build dependency: flex.

Signed-off-by: Stefan Schantl <stefan.schantl(a)ipfire.org>
---
 libsepol/libsepol.nm | 14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)

diff --git a/libsepol/libsepol.nm b/libsepol/libsepol.nm
index ac64781..951f76e 100644
--- a/libsepol/libsepol.nm
+++ b/libsepol/libsepol.nm
@@ -4,7 +4,7 @@
 ###############################################################################
 
 name       = libsepol
-version    = 2.1.5
+version    = 2.5
 release    = 1
 
 groups     = System/Libraries
@@ -17,16 +17,21 @@ description
 	policies.
 end
 
-sources    = %{thisapp}.tgz
+source_dl  = https://raw.githubusercontent.com/wiki/SELinuxProject/selinux/files/releases/20160223/
+sources    = %{thisapp}.tar.gz
 
 build
 	# Keep static libsepol.a for some selinux tools, that needs to link 
 	# against it. We will put it into an own package.
 	keep_libraries = %{libdir}/libsepol.a
 
+	requires
+		flex
+	end
+
 	build
 		make clean
-		make CFLAGS="%{CFLAGS}" %{PARALLELISMFLAGS}
+		make CFLAGS="%{CFLAGS}" LDFLAGS="%{LDFLAGS}" %{PARALLELISMFLAGS}
 	end
 
 	# Install libraries to correct place.
@@ -40,9 +45,6 @@ build
 
 		# Remove manpages for binaries
 		rm -rf %{BUILDROOT}/usr/share/man/man8
-
-		# Fix bad symlink.
-		ln -svf libsepol.so.1 %{BUILDROOT}%{libdir}/libsepol.so
 	end
 end
 
-- 
2.7.4


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-10-04  9:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-10-04  9:34 [PATCH] libsepol: Update to 2.5 Stefan Schantl

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox