]>
Commit | Line | Data |
---|---|---|
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 MT |
6 | name = libsemanage |
7 | version = 2.0.45 | |
8 | release = 1 | |
3002f9ae | 9 | |
802ea3af MT |
10 | groups = System/Libraries |
11 | url = http://www.selinuxproject.org | |
12 | license = LGPLv2+ | |
13 | summary = SELinux binary policy manipulation library. | |
3002f9ae | 14 | |
802ea3af | 15 | description |
3002f9ae SS |
16 | libsemanage provides an API for the manipulation of SELinux \ |
17 | binary policies. | |
802ea3af | 18 | end |
3002f9ae | 19 | |
802ea3af MT |
20 | source_dl = |
21 | sources = %{thisapp}.tgz | |
3002f9ae | 22 | |
802ea3af MT |
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 | |
3002f9ae | 34 | |
802ea3af MT |
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 | |
3002f9ae | 41 | |
802ea3af MT |
42 | install_cmds |
43 | make install-pywrap DESTDIR=%{BUILDROOT} | |
3002f9ae | 44 | |
802ea3af MT |
45 | # Install our config file |
46 | cp -vf %{DIR_SOURCE}/semanage.conf %{BUILDROOT}/etc/selinux/semanage.conf | |
47 | end | |
48 | end | |
3002f9ae | 49 | |
802ea3af MT |
50 | packages |
51 | package %{name} | |
52 | end | |
1f9bc2f0 | 53 | |
802ea3af MT |
54 | package %{name}-devel |
55 | template DEVEL | |
56 | end | |
1f9bc2f0 | 57 | |
802ea3af MT |
58 | package python-selinux-manage |
59 | summary = SELinux manage python bindings. | |
60 | description = SELinux python bindings for libsemanage. | |
1f9bc2f0 | 61 | |
802ea3af MT |
62 | files |
63 | /usr/lib/python* | |
64 | end | |
65 | end | |
1f9bc2f0 MT |
66 | |
67 | package %{name}-debuginfo | |
68 | template DEBUGINFO | |
69 | end | |
802ea3af | 70 | end |