]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blob - libselinux/libselinux.nm
libnetfilter_queue: Update to 1.0.2.
[people/ms/ipfire-3.x.git] / libselinux / libselinux.nm
1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
5
6 name = libselinux
7 version = 2.1.10
8 release = 1
9
10 groups = System/Libraries
11 url = http://www.selinuxproject.org
12 license = Public Domain
13 summary = SELinux library and simple utilities.
14
15 description
16 libselinux provides an API for SELinux applications to get and set
17 process and file security contexts and to obtain security policy
18 decisions.
19 end
20
21 sources = %{thisapp}.tgz
22
23 build
24 requires
25 libsepol-devel
26 libsepol-static
27 python-devel
28 swig
29 end
30
31 build
32 make clean
33 make CC=gcc LIBDIR="%{libdir}" SHLIBDIR="%{libdir}" CFLAGS="-g %{CFLAGS}" swigify
34 make CC=gcc LIBDIR="%{libdir}" SHLIBDIR="%{libdir}" CFLAGS="-g %{CFLAGS}" all
35 make CC=gcc LIBDIR="%{libdir}" SHLIBDIR="%{libdir}" CFLAGS="-g %{CFLAGS}" pywrap
36 end
37
38 # Install libraries to correct place.
39 make_install_targets += install-pywrap \
40 BINDIR="%{BUILDROOT}%{bindir}" \
41 SBINDIR="%{BUILDROOT}%{sbindir}" \
42 LIBDIR="%{BUILDROOT}%{libdir}" \
43 SHLIBDIR="%{BUILDROOT}%{libdir}"
44
45 install_cmds
46 # Remove unwanted binaries
47 rm -f %{BUILDROOT}/usr/sbin/compute_*
48 rm -f %{BUILDROOT}/usr/sbin/deftype
49 rm -f %{BUILDROOT}/usr/sbin/execcon
50 rm -f %{BUILDROOT}/usr/sbin/getenforcemode
51 rm -f %{BUILDROOT}/usr/sbin/getfilecon
52 rm -f %{BUILDROOT}/usr/sbin/getpidcon
53 rm -f %{BUILDROOT}/usr/sbin/mkdircon
54 rm -f %{BUILDROOT}/usr/sbin/policyvers
55 rm -f %{BUILDROOT}/usr/sbin/setfilecon
56 rm -f %{BUILDROOT}/usr/sbin/selinuxconfig
57 rm -f %{BUILDROOT}/usr/sbin/selinuxdisable
58 rm -f %{BUILDROOT}/usr/sbin/getseuser
59 rm -f %{BUILDROOT}/usr/sbin/selinux_check_securetty_context
60
61 # Fix weird symlink.
62 ln -svf libselinux.so.1 %{BUILDROOT}%{libdir}/libselinux.so
63 end
64 end
65
66 packages
67 package %{name}
68
69 package %{name}-devel
70 template DEVEL
71 end
72
73 package %{name}-utils
74 summary = SELinux libselinux utitlities.
75 description
76 The libselinux-utils package contains the utilities.
77 end
78
79 files
80 /usr/sbin/*
81 /usr/share/man/man{5,8}
82 end
83 end
84
85 package python-selinux
86 summary = SELinux python bindings.
87 description = SELinux python bindings for libselinux.
88
89 def files
90 %{libdir}/python*
91 end
92 end
93
94 package %{name}-debuginfo
95 template DEBUGINFO
96 end
97 end