]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blame - libselinux/libselinux.nm
libselinux: Update to 2.1.8.
[people/ms/ipfire-3.x.git] / libselinux / libselinux.nm
CommitLineData
72e67668 1###############################################################################
802ea3af
MT
2# IPFire.org - An Open Source Firewall Solution #
3# Copyright (C) - IPFire Development Team <info@ipfire.org> #
72e67668
SS
4###############################################################################
5
802ea3af 6name = libselinux
5994c727
SS
7version = 2.1.8
8release = 1
72e67668 9
802ea3af
MT
10groups = System/Libraries
11url = http://www.selinuxproject.org
12license = Public Domain
13summary = SELinux library and simple utilities.
72e67668 14
802ea3af 15description
397ea7dc
SS
16 libselinux provides an API for SELinux applications to get and set
17 process and file security contexts and to obtain security policy
72e67668 18 decisions.
802ea3af
MT
19end
20
802ea3af
MT
21sources = %{thisapp}.tgz
22
23build
24 requires
25 libsepol-devel
5994c727 26 libsepol-static
802ea3af
MT
27 python-devel
28 swig
29 end
30
31 build
32 make clean
e6375510
MT
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
802ea3af
MT
36 end
37
e6375510
MT
38 make_install_targets += LIBDIR="%{BUILDROOT}%{libdir}" \
39 SHLIBDIR="%{BUILDROOT}/%{lib}"
40
802ea3af 41 install_cmds
e6375510 42 make install-pywrap DESTDIR=%{BUILDROOT} LIBDIR="%{BUILDROOT}%{libdir}"
802ea3af
MT
43
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
58
59 # Move binaries from /sbin to /usr/sbin
60 mv %{BUILDROOT}/sbin/* %{BUILDROOT}/usr/sbin
802ea3af
MT
61 end
62end
63
64packages
65 package %{name}
d73faf26 66
802ea3af
MT
67 package %{name}-devel
68 template DEVEL
69 end
1f9bc2f0 70
802ea3af
MT
71 package %{name}-utils
72 summary = SELinux libselinux utitlities.
73 description
74 The libselinux-utils package contains the utilities.
75 end
76
77 files
78 /usr/sbin/*
79 /usr/share/man/man{5,8}/*
80 end
81 end
d73faf26
SS
82
83 package python-selinux
84 summary = SELinux python bindings.
85 description = SELinux python bindings for libselinux.
86
87 def files
88 /usr/lib/python*
89 end
90 end
5994c727
SS
91
92 package %{name}-debuginfo
93 template DEBUGINFO
94 end
802ea3af 95end