]> git.ipfire.org Git - people/amarx/ipfire-3.x.git/blame - libsepol/libsepol.nm
libsepol: Keep static libsepol.a, ship it as libsepol-static.
[people/amarx/ipfire-3.x.git] / libsepol / libsepol.nm
CommitLineData
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 6name = libsepol
657ed8b2 7version = 2.1.4
020b6e0d 8release = 2
b7b53e02 9
802ea3af
MT
10groups = System/Libraries
11url = http://www.selinuxproject.org
12license = LGPLv2+
13summary = SELinux binary policy manipulation library.
b7b53e02 14
802ea3af 15description
657ed8b2 16 libsepol provides an API for the manipulation of SELinux binary
b7b53e02 17 policies.
802ea3af
MT
18end
19
802ea3af
MT
20sources = %{thisapp}.tgz
21
22build
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
42end
b7b53e02 43
802ea3af
MT
44packages
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 64end