]>
Commit | Line | Data |
---|---|---|
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.1.5 | |
8 | release = 3 | |
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 | sources = %{thisapp}.tgz | |
21 | ||
22 | build | |
23 | requires | |
24 | bison | |
25 | bzip2-devel | |
26 | flex | |
27 | libselinux-devel | |
28 | libsepol-devel >= 2.1.4 | |
29 | python-devel | |
30 | swig | |
31 | ustr-devel | |
32 | end | |
33 | ||
34 | build | |
35 | make clean | |
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 | |
39 | end | |
40 | ||
41 | # Install libraries to correct place. | |
42 | make_install_targets += \ | |
43 | LIBDIR="%{BUILDROOT}%{libdir}" \ | |
44 | SHLIBDIR="%{BUILDROOT}%{libdir}" | |
45 | ||
46 | install_cmds | |
47 | make install-pywrap %{make_install_targets} DESTDIR=%{BUILDROOT} | |
48 | ||
49 | # Install our config file | |
50 | cp -vf %{DIR_SOURCE}/semanage.conf %{BUILDROOT}/etc/selinux/semanage.conf | |
51 | end | |
52 | end | |
53 | ||
54 | packages | |
55 | package %{name} | |
56 | end | |
57 | ||
58 | package %{name}-devel | |
59 | template DEVEL | |
60 | end | |
61 | ||
62 | package python-libsemanage | |
63 | summary = SELinux manage python bindings. | |
64 | description = SELinux python bindings for libsemanage. | |
65 | ||
66 | files | |
67 | %{libdir}/python* | |
68 | end | |
69 | end | |
70 | ||
71 | package %{name}-debuginfo | |
72 | template DEBUGINFO | |
73 | end | |
74 | end |