]> git.ipfire.org Git - people/arne_f/ipfire-3.x.git/blame - libselinux/libselinux.nm
Add a -debuginfo for every package that is not noarch.
[people/arne_f/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
MT
6name = libselinux
7version = 2.0.96
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
72e67668
SS
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.
802ea3af
MT
19end
20
21source_dl =
22sources = %{thisapp}.tgz
23
24build
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
62end
63
64packages
65 package %{name}
66 end
1f9bc2f0 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/*
80 /usr/share/man/man{5,8}/*
81 end
82 end
1f9bc2f0 83
802ea3af
MT
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
1f9bc2f0
MT
92
93
94
95 package %{name}-debuginfo
96 template DEBUGINFO
97 end
802ea3af 98end