]> git.ipfire.org Git - people/amarx/ipfire-3.x.git/blob - libselinux/libselinux.nm
Add a -debuginfo for every package that is not noarch.
[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 = 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 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="/usr/lib" CFLAGS="-g %{CFLAGS}" swigify
34 make CC=gcc LIBDIR="/usr/lib" CFLAGS="-g %{CFLAGS}" all
35 make CC=gcc LIBDIR="/usr/lib" CFLAGS="-g %{CFLAGS}" pywrap
36 end
37
38 install_cmds
39 make install-pywrap DESTDIR=%{BUILDROOT}
40
41 # Remove unwanted binaries
42 rm -f %{BUILDROOT}/usr/sbin/compute_*
43 rm -f %{BUILDROOT}/usr/sbin/deftype
44 rm -f %{BUILDROOT}/usr/sbin/execcon
45 rm -f %{BUILDROOT}/usr/sbin/getenforcemode
46 rm -f %{BUILDROOT}/usr/sbin/getfilecon
47 rm -f %{BUILDROOT}/usr/sbin/getpidcon
48 rm -f %{BUILDROOT}/usr/sbin/mkdircon
49 rm -f %{BUILDROOT}/usr/sbin/policyvers
50 rm -f %{BUILDROOT}/usr/sbin/setfilecon
51 rm -f %{BUILDROOT}/usr/sbin/selinuxconfig
52 rm -f %{BUILDROOT}/usr/sbin/selinuxdisable
53 rm -f %{BUILDROOT}/usr/sbin/getseuser
54 rm -f %{BUILDROOT}/usr/sbin/selinux_check_securetty_context
55
56 # Move binaries from /sbin to /usr/sbin
57 mv %{BUILDROOT}/sbin/* %{BUILDROOT}/usr/sbin
58
59 # Remove python module
60 rm -rvf %{BUILDROOT}/usr/lib/python*
61 end
62 end
63
64 packages
65 package %{name}
66 end
67
68 package %{name}-devel
69 template DEVEL
70 end
71
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/*
80 /usr/share/man/man{5,8}/*
81 end
82 end
83
84 #package python-selinux
85 # summary = SELinux python bindings.
86 # description = SELinux python bindings for libselinux.
87 #
88 # def files
89 # /usr/lib/python*
90 # end
91 #end
92
93
94
95 package %{name}-debuginfo
96 template DEBUGINFO
97 end
98 end