]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blame - libsepol/libsepol.nm
libnl3: New package.
[people/ms/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
ef1fad1f
MT
7version = 2.1.5
8release = 1
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.
6cce1fec 25 keep_libraries = %{libdir}/libsepol.a
020b6e0d 26
802ea3af
MT
27 build
28 make clean
1429c856 29 make CFLAGS="%{CFLAGS}" %{PARALLELISMFLAGS}
802ea3af 30 end
b7b53e02 31
6cce1fec
SS
32 # Install libraries to correct place.
33 make_install_targets += \
34 LIBDIR="%{BUILDROOT}%{libdir}" \
0da54dea 35 SHLIBDIR="%{BUILDROOT}%{libdir}"
e626536c 36
802ea3af
MT
37 install_cmds
38 # Remove binaries
39 rm -rf %{BUILDROOT}/usr/bin
b7b53e02 40
657ed8b2 41 # Remove manpages for binaries
802ea3af 42 rm -rf %{BUILDROOT}/usr/share/man/man8
ef1fad1f
MT
43
44 # Fix bad symlink.
45 ln -svf libsepol.so.1 %{BUILDROOT}%{libdir}/libsepol.so
802ea3af
MT
46 end
47end
b7b53e02 48
802ea3af
MT
49packages
50 package %{name}
657ed8b2 51
802ea3af
MT
52 package %{name}-devel
53 template DEVEL
54 end
1f9bc2f0
MT
55
56 package %{name}-debuginfo
57 template DEBUGINFO
58 end
020b6e0d
SS
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
6cce1fec 66 %{libdir}/libsepol.a
020b6e0d
SS
67 end
68 end
802ea3af 69end