]>
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 |
cc0a4653 | 8 | release = 3 |
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. | |
25 | keep_libraries = /usr/lib/libsepol.a | |
26 | ||
802ea3af MT |
27 | build |
28 | make clean | |
29 | make CFLAGS="%{CFLAGS}" %{PARALELLISMFLAGS} | |
30 | end | |
b7b53e02 | 31 | |
e626536c MT |
32 | make_install_targets += LIBDIR="%{BUILDROOT}%{libdir}" \ |
33 | SHLIBDIR="%{BUILDROOT}/%{lib}" | |
34 | ||
802ea3af MT |
35 | install_cmds |
36 | # Remove binaries | |
37 | rm -rf %{BUILDROOT}/usr/bin | |
b7b53e02 | 38 | |
657ed8b2 | 39 | # Remove manpages for binaries |
802ea3af MT |
40 | rm -rf %{BUILDROOT}/usr/share/man/man8 |
41 | end | |
42 | end | |
b7b53e02 | 43 | |
802ea3af MT |
44 | packages |
45 | package %{name} | |
657ed8b2 | 46 | |
802ea3af MT |
47 | package %{name}-devel |
48 | template DEVEL | |
49 | end | |
1f9bc2f0 MT |
50 | |
51 | package %{name}-debuginfo | |
52 | template DEBUGINFO | |
53 | end | |
020b6e0d SS |
54 | |
55 | package %{name}-static | |
56 | summary = Static libraries used to build policy manipulation tools. | |
57 | description = %{summary} | |
58 | groups = Development/Libraries | |
59 | ||
60 | files | |
61 | /usr/lib/libsepol.a | |
62 | end | |
63 | end | |
802ea3af | 64 | end |