]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blob - libsemanage/libsemanage.nm
Change file layout of the makefiles.
[people/ms/ipfire-3.x.git] / libsemanage / libsemanage.nm
1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
5
6 name = libsemanage
7 version = 2.0.45
8 release = 1
9
10 groups = System/Libraries
11 url = http://www.selinuxproject.org
12 license = LGPLv2+
13 summary = SELinux binary policy manipulation library.
14
15 description
16 libsemanage provides an API for the manipulation of SELinux \
17 binary policies.
18 end
19
20 source_dl =
21 sources = %{thisapp}.tgz
22
23 build
24 requires
25 bison
26 bzip2-devel
27 flex
28 libselinux-devel
29 libsepol-devel
30 python-devel
31 swig
32 ustr-devel
33 end
34
35 build
36 make clean
37 make CC=gcc LIBDIR="/usr/lib" CFLAGS="-g %{CFLAGS}" swigify
38 make CC=gcc LIBDIR="/usr/lib" CFLAGS="-g %{CFLAGS}" all
39 make CC=gcc LIBDIR="/usr/lib" CFLAGS="-g %{CFLAGS}" pywrap
40 end
41
42 install_cmds
43 make install-pywrap DESTDIR=%{BUILDROOT}
44
45 # Install our config file
46 cp -vf %{DIR_SOURCE}/semanage.conf %{BUILDROOT}/etc/selinux/semanage.conf
47 end
48 end
49
50 packages
51 package %{name}
52 end
53
54 package %{name}-devel
55 template DEVEL
56 end
57
58 package python-selinux-manage
59 summary = SELinux manage python bindings.
60 description = SELinux python bindings for libsemanage.
61
62 files
63 /usr/lib/python*
64 end
65 end
66 end