]> git.ipfire.org Git - people/amarx/ipfire-3.x.git/blob - libselinux/libselinux.nm
openvswitch: Add service file for systemd.
[people/amarx/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.0.96
8 release = 2
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 source_dl =
22 sources = %{thisapp}.tgz
23
24 build
25 requires
26 libsepol-devel
27 python-devel
28 swig
29 end
30
31 build
32 make clean
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
36 end
37
38 make_install_targets += LIBDIR="%{BUILDROOT}%{libdir}" \
39 SHLIBDIR="%{BUILDROOT}/%{lib}"
40
41 install_cmds
42 make install-pywrap DESTDIR=%{BUILDROOT} LIBDIR="%{BUILDROOT}%{libdir}"
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
61
62 # Remove python module
63 rm -rvf %{BUILDROOT}/usr/lib/python*
64 end
65 end
66
67 packages
68 package %{name}
69 end
70
71 package %{name}-devel
72 template DEVEL
73 end
74
75 package %{name}-utils
76 summary = SELinux libselinux utitlities.
77 description
78 The libselinux-utils package contains the utilities.
79 end
80
81 files
82 /usr/sbin/*
83 /usr/share/man/man{5,8}/*
84 end
85 end
86
87 #package python-selinux
88 # summary = SELinux python bindings.
89 # description = SELinux python bindings for libselinux.
90 #
91 # def files
92 # /usr/lib/python*
93 # end
94 #end
95
96
97
98 package %{name}-debuginfo
99 template DEBUGINFO
100 end
101 end