]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blame - libselinux/libselinux.nm
libselinux: Move everything to /usr.
[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
02274bb5 7version = 2.1.9
b945d857 8release = 2
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
b945d857
SS
38 # Install libraries to correct place.
39 make_install_targets += \
b38be7f7
MT
40 BINDIR="%{BUILDROOT}%{bindir}" \
41 SBINDIR="%{BUILDROOT}%{sbindir}" \
b945d857 42 LIBDIR="%{BUILDROOT}%{libdir}" \
b38be7f7 43 SHLIBDIR="%{BUILDROOT}%{libdir}"
e6375510 44
802ea3af 45 install_cmds
b945d857 46 make install-pywrap %{make_install_targets} DESTDIR=%{BUILDROOT}
802ea3af
MT
47
48 # Remove unwanted binaries
49 rm -f %{BUILDROOT}/usr/sbin/compute_*
50 rm -f %{BUILDROOT}/usr/sbin/deftype
51 rm -f %{BUILDROOT}/usr/sbin/execcon
52 rm -f %{BUILDROOT}/usr/sbin/getenforcemode
53 rm -f %{BUILDROOT}/usr/sbin/getfilecon
54 rm -f %{BUILDROOT}/usr/sbin/getpidcon
55 rm -f %{BUILDROOT}/usr/sbin/mkdircon
56 rm -f %{BUILDROOT}/usr/sbin/policyvers
57 rm -f %{BUILDROOT}/usr/sbin/setfilecon
58 rm -f %{BUILDROOT}/usr/sbin/selinuxconfig
59 rm -f %{BUILDROOT}/usr/sbin/selinuxdisable
60 rm -f %{BUILDROOT}/usr/sbin/getseuser
61 rm -f %{BUILDROOT}/usr/sbin/selinux_check_securetty_context
802ea3af
MT
62 end
63end
64
65packages
66 package %{name}
d73faf26 67
802ea3af
MT
68 package %{name}-devel
69 template DEVEL
70 end
1f9bc2f0 71
802ea3af
MT
72 package %{name}-utils
73 summary = SELinux libselinux utitlities.
74 description
75 The libselinux-utils package contains the utilities.
76 end
77
78 files
79 /usr/sbin/*
b38be7f7 80 /usr/share/man/man{5,8}
802ea3af
MT
81 end
82 end
d73faf26
SS
83
84 package python-selinux
85 summary = SELinux python bindings.
86 description = SELinux python bindings for libselinux.
87
88 def files
b945d857 89 %{libdir}/python*
d73faf26
SS
90 end
91 end
5994c727
SS
92
93 package %{name}-debuginfo
94 template DEBUGINFO
95 end
802ea3af 96end