]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blob - libsepol/libsepol.nm
libnl3: New package.
[people/ms/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.5
8 release = 1
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 = %{libdir}/libsepol.a
26
27 build
28 make clean
29 make CFLAGS="%{CFLAGS}" %{PARALLELISMFLAGS}
30 end
31
32 # Install libraries to correct place.
33 make_install_targets += \
34 LIBDIR="%{BUILDROOT}%{libdir}" \
35 SHLIBDIR="%{BUILDROOT}%{libdir}"
36
37 install_cmds
38 # Remove binaries
39 rm -rf %{BUILDROOT}/usr/bin
40
41 # Remove manpages for binaries
42 rm -rf %{BUILDROOT}/usr/share/man/man8
43
44 # Fix bad symlink.
45 ln -svf libsepol.so.1 %{BUILDROOT}%{libdir}/libsepol.so
46 end
47 end
48
49 packages
50 package %{name}
51
52 package %{name}-devel
53 template DEVEL
54 end
55
56 package %{name}-debuginfo
57 template DEBUGINFO
58 end
59
60 package %{name}-static
61 summary = Static libraries used to build policy manipulation tools.
62 description = %{summary}
63 groups = Development/Libraries
64
65 files
66 %{libdir}/libsepol.a
67 end
68 end
69 end