]>
Commit | Line | Data |
---|---|---|
b7b53e02 | 1 | ############################################################################### |
802ea3af MT |
2 | # IPFire.org - An Open Source Firewall Solution # |
3 | # Copyright (C) - IPFire Development Team <info@ipfire.org> # | |
b7b53e02 SS |
4 | ############################################################################### |
5 | ||
802ea3af | 6 | name = libsepol |
657ed8b2 | 7 | version = 2.1.4 |
6cce1fec | 8 | release = 4 |
b7b53e02 | 9 | |
802ea3af MT |
10 | groups = System/Libraries |
11 | url = http://www.selinuxproject.org | |
12 | license = LGPLv2+ | |
13 | summary = SELinux binary policy manipulation library. | |
b7b53e02 | 14 | |
802ea3af | 15 | description |
657ed8b2 | 16 | libsepol provides an API for the manipulation of SELinux binary |
b7b53e02 | 17 | policies. |
802ea3af MT |
18 | end |
19 | ||
802ea3af MT |
20 | sources = %{thisapp}.tgz |
21 | ||
22 | build | |
020b6e0d SS |
23 | # Keep static libsepol.a for some selinux tools, that needs to link |
24 | # against it. We will put it into an own package. | |
6cce1fec | 25 | keep_libraries = %{libdir}/libsepol.a |
020b6e0d | 26 | |
802ea3af MT |
27 | build |
28 | make clean | |
29 | make CFLAGS="%{CFLAGS}" %{PARALELLISMFLAGS} | |
30 | end | |
b7b53e02 | 31 | |
6cce1fec SS |
32 | # Install libraries to correct place. |
33 | make_install_targets += \ | |
34 | LIBDIR="%{BUILDROOT}%{libdir}" \ | |
e626536c MT |
35 | SHLIBDIR="%{BUILDROOT}/%{lib}" |
36 | ||
802ea3af MT |
37 | install_cmds |
38 | # Remove binaries | |
39 | rm -rf %{BUILDROOT}/usr/bin | |
b7b53e02 | 40 | |
657ed8b2 | 41 | # Remove manpages for binaries |
802ea3af MT |
42 | rm -rf %{BUILDROOT}/usr/share/man/man8 |
43 | end | |
44 | end | |
b7b53e02 | 45 | |
802ea3af MT |
46 | packages |
47 | package %{name} | |
657ed8b2 | 48 | |
802ea3af MT |
49 | package %{name}-devel |
50 | template DEVEL | |
51 | end | |
1f9bc2f0 MT |
52 | |
53 | package %{name}-debuginfo | |
54 | template DEBUGINFO | |
55 | end | |
020b6e0d SS |
56 | |
57 | package %{name}-static | |
58 | summary = Static libraries used to build policy manipulation tools. | |
59 | description = %{summary} | |
60 | groups = Development/Libraries | |
61 | ||
62 | files | |
6cce1fec | 63 | %{libdir}/libsepol.a |
020b6e0d SS |
64 | end |
65 | end | |
802ea3af | 66 | end |