1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
10 groups = System/Libraries
11 url = http://www.selinuxproject.org
12 license = Public Domain
13 summary = SELinux library and simple utilities.
16 libselinux provides an API for SELinux applications to get and set \
17 process and file security contexts and to obtain security policy \
22 sources = %{thisapp}.tgz
33 make CC=gcc LIBDIR="%{libdir}" CFLAGS="-g %{CFLAGS}" swigify
34 make CC=gcc LIBDIR="%{libdir}" CFLAGS="-g %{CFLAGS}" all
35 make CC=gcc LIBDIR="%{libdir}" CFLAGS="-g %{CFLAGS}" pywrap
38 make_install_targets += LIBDIR="%{BUILDROOT}%{libdir}" \
39 SHLIBDIR="%{BUILDROOT}/%{lib}"
42 make install-pywrap DESTDIR=%{BUILDROOT} LIBDIR="%{BUILDROOT}%{libdir}"
44 # Remove unwanted binaries
45 rm -f %{BUILDROOT}/usr/sbin/compute_*
46 rm -f %{BUILDROOT}/usr/sbin/deftype
47 rm -f %{BUILDROOT}/usr/sbin/execcon
48 rm -f %{BUILDROOT}/usr/sbin/getenforcemode
49 rm -f %{BUILDROOT}/usr/sbin/getfilecon
50 rm -f %{BUILDROOT}/usr/sbin/getpidcon
51 rm -f %{BUILDROOT}/usr/sbin/mkdircon
52 rm -f %{BUILDROOT}/usr/sbin/policyvers
53 rm -f %{BUILDROOT}/usr/sbin/setfilecon
54 rm -f %{BUILDROOT}/usr/sbin/selinuxconfig
55 rm -f %{BUILDROOT}/usr/sbin/selinuxdisable
56 rm -f %{BUILDROOT}/usr/sbin/getseuser
57 rm -f %{BUILDROOT}/usr/sbin/selinux_check_securetty_context
59 # Move binaries from /sbin to /usr/sbin
60 mv %{BUILDROOT}/sbin/* %{BUILDROOT}/usr/sbin
62 # Remove python module
63 rm -rvf %{BUILDROOT}/usr/lib/python*
76 summary = SELinux libselinux utitlities.
78 The libselinux-utils package contains the utilities.
83 /usr/share/man/man{5,8}/*
87 #package python-selinux
88 # summary = SELinux python bindings.
89 # description = SELinux python bindings for libselinux.
98 package %{name}-debuginfo