]> git.ipfire.org Git - people/arne_f/ipfire-3.x.git/commitdiff
libuser: Drop SELinux support.
authorStefan Schantl <stefan.schantl@ipfire.org>
Sat, 29 Oct 2016 13:47:51 +0000 (15:47 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 12 Jan 2017 10:07:31 +0000 (10:07 +0000)
Fixes #11211.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
libuser/libuser.nm

index c0751dc5e863d106d541d1f220585a1388f68518..709d5eac4fe0bf8667b58e8a731131097aac6682 100644 (file)
@@ -5,7 +5,7 @@
 
 name       = libuser
 version    = 0.62
-release    = 1
+release    = 2
 
 groups     = System/Libraries
 url        = https://fedorahosted.org/libuser/
@@ -25,23 +25,30 @@ build
        requires
                cyrus-sasl-devel
                glib2-devel
-               libselinux-devel
                openldap-devel
                pam-devel
                pkg-config
                popt-devel
-               python-devel
+               python-devel >= 2.7.12-2
        end
 
+       export LD_LIBRARY_PATH = %{DIR_APP}/lib/.libs
+
        configure_options += \
-               --sysconfdir=/etc \
-               --with-ldap \
-               --with-selinux
+               --with-ldap
 
        prepare_cmds
                # Little hack that we don't build documentation that requires sgml2html
                sed -e "s/^SUBDIRS = .*/SUBDIRS = po/" -i Makefile.in
        end
+
+       test
+               # Disable tests which requires a running ldap server.
+               sed -e "s/tests\/default_pw_test//" -i Makefile
+               sed -e "s/tests\/ldap_test//" -i Makefile
+
+               make check
+       end
 end
 
 packages