]> git.ipfire.org Git - people/amarx/ipfire-3.x.git/blob - libsepol/libsepol.nm
libsepol: Keep static libsepol.a, ship it as libsepol-static.
[people/amarx/ipfire-3.x.git] / libsepol / libsepol.nm
1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
5
6 name = libsepol
7 version = 2.1.4
8 release = 2
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 libsepol provides an API for the manipulation of SELinux binary
17 policies.
18 end
19
20 sources = %{thisapp}.tgz
21
22 build
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
27 build
28 make clean
29 make CFLAGS="%{CFLAGS}" %{PARALELLISMFLAGS}
30 end
31
32 make_install_targets += LIBDIR="%{BUILDROOT}%{libdir}" \
33 SHLIBDIR="%{BUILDROOT}/%{lib}"
34
35 install_cmds
36 # Remove binaries
37 rm -rf %{BUILDROOT}/usr/bin
38
39 # Remove manpages for binaries
40 rm -rf %{BUILDROOT}/usr/share/man/man8
41 end
42 end
43
44 packages
45 package %{name}
46
47 package %{name}-devel
48 template DEVEL
49 end
50
51 package %{name}-debuginfo
52 template DEBUGINFO
53 end
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
64 end