]> git.ipfire.org Git - people/arne_f/ipfire-3.x.git/blame - libsemanage/libsemanage.nm
libsemanage: Make package work on x86_64.
[people/arne_f/ipfire-3.x.git] / libsemanage / libsemanage.nm
CommitLineData
3002f9ae 1###############################################################################
802ea3af
MT
2# IPFire.org - An Open Source Firewall Solution #
3# Copyright (C) - IPFire Development Team <info@ipfire.org> #
3002f9ae
SS
4###############################################################################
5
802ea3af 6name = libsemanage
0a80ab86 7version = 2.1.5
afa1a4e6 8release = 3
3002f9ae 9
802ea3af
MT
10groups = System/Libraries
11url = http://www.selinuxproject.org
12license = LGPLv2+
13summary = SELinux binary policy manipulation library.
3002f9ae 14
802ea3af 15description
0a80ab86 16 libsemanage provides an API for the manipulation of SELinux
3002f9ae 17 binary policies.
802ea3af 18end
3002f9ae 19
802ea3af 20sources = %{thisapp}.tgz
3002f9ae 21
802ea3af
MT
22build
23 requires
24 bison
25 bzip2-devel
26 flex
27 libselinux-devel
afa1a4e6 28 libsepol-devel >= 2.1.4
802ea3af
MT
29 python-devel
30 swig
31 ustr-devel
32 end
3002f9ae 33
802ea3af
MT
34 build
35 make clean
afa1a4e6
SS
36 make CC=gcc LIBDIR="%{libdir}" CFLAGS="-g %{CFLAGS}" swigify
37 make CC=gcc LIBDIR="%{libdir}" CFLAGS="-g %{CFLAGS}" all
38 make CC=gcc LIBDIR="%{libdir}" CFLAGS="-g %{CFLAGS}" pywrap
802ea3af 39 end
3002f9ae 40
afa1a4e6
SS
41 # Install libraries to correct place.
42 make_install_targets += \
43 LIBDIR="%{BUILDROOT}%{libdir}" \
44 SHLIBDIR="%{BUILDROOT}%{libdir}"
45
802ea3af 46 install_cmds
afa1a4e6 47 make install-pywrap %{make_install_targets} DESTDIR=%{BUILDROOT}
3002f9ae 48
802ea3af
MT
49 # Install our config file
50 cp -vf %{DIR_SOURCE}/semanage.conf %{BUILDROOT}/etc/selinux/semanage.conf
51 end
52end
3002f9ae 53
802ea3af
MT
54packages
55 package %{name}
56 end
1f9bc2f0 57
802ea3af
MT
58 package %{name}-devel
59 template DEVEL
60 end
def61804
SS
61
62 package python-libsemanage
802ea3af
MT
63 summary = SELinux manage python bindings.
64 description = SELinux python bindings for libsemanage.
1f9bc2f0 65
802ea3af 66 files
afa1a4e6 67 %{libdir}/python*
802ea3af
MT
68 end
69 end
1f9bc2f0
MT
70
71 package %{name}-debuginfo
72 template DEBUGINFO
73 end
802ea3af 74end