]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blame_incremental - libselinux/libselinux.nm
xmlto: Update to upstream version 0.0.25.
[people/ms/ipfire-3.x.git] / libselinux / libselinux.nm
... / ...
CommitLineData
1###############################################################################
2# IPFire.org - An Open Source Firewall Solution #
3# Copyright (C) - IPFire Development Team <info@ipfire.org> #
4###############################################################################
5
6name = libselinux
7version = 2.1.9
8release = 2
9
10groups = System/Libraries
11url = http://www.selinuxproject.org
12license = Public Domain
13summary = SELinux library and simple utilities.
14
15description
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.
19end
20
21sources = %{thisapp}.tgz
22
23build
24 requires
25 libsepol-devel
26 libsepol-static
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 # Install libraries to correct place.
39 make_install_targets += \
40 BINDIR="%{BUILDROOT}%{bindir}" \
41 SBINDIR="%{BUILDROOT}%{sbindir}" \
42 LIBDIR="%{BUILDROOT}%{libdir}" \
43 SHLIBDIR="%{BUILDROOT}%{libdir}"
44
45 install_cmds
46 make install-pywrap %{make_install_targets} DESTDIR=%{BUILDROOT}
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
62 end
63end
64
65packages
66 package %{name}
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 %{libdir}/python*
90 end
91 end
92
93 package %{name}-debuginfo
94 template DEBUGINFO
95 end
96end