]>
Commit | Line | Data |
---|---|---|
fd72915b SS |
1 | ############################################################################### |
2 | # IPFire.org - An Open Source Firewall Solution # | |
3 | # Copyright (C) - IPFire Development Team <info@ipfire.org> # | |
4 | ############################################################################### | |
5 | ||
6 | name = checkpolicy | |
706b926b | 7 | version = 2.1.8 |
3ee66939 | 8 | release = 2 |
fd72915b SS |
9 | |
10 | groups = Development/System | |
11 | url = http://userspace.selinuxproject.org | |
12 | license = GPLv2 | |
13 | summary = SELinux policy compiler. | |
14 | ||
15 | description | |
16 | This package contains checkpolicy, the SELinux policy compiler and | |
17 | is required for building policies. | |
18 | end | |
19 | ||
20 | sources = %{thisapp}.tgz | |
21 | ||
22 | build | |
23 | requires | |
24 | bison | |
25 | flex | |
26 | flex-devel | |
27 | libselinux-devel | |
28 | libsepol-devel | |
29 | libsepol-static | |
30 | end | |
31 | ||
32 | prepare_cmds | |
33 | # Link against -lfl_pic instead of -lfl. | |
34 | sed -i -e "s/lfl/&_pic/g" Makefile */Makefile | |
35 | end | |
36 | ||
37 | make_build_targets += \ | |
3ee66939 | 38 | LIBDIR="%{libdir}" \ |
fd72915b SS |
39 | CFLAGS="%{CFLAGS}" \ |
40 | LEX=flex | |
41 | ||
42 | # build all binaries. | |
43 | build_cmds | |
44 | make -C test %{make_build_targets} | |
45 | end | |
46 | ||
47 | make_install_cmds += \ | |
3ee66939 | 48 | LIBDIR=%{BUILDROOT}%{libdir} |
fd72915b SS |
49 | |
50 | install_cmds | |
51 | install test/dismod %{BULDROOT}/usr/bin | |
52 | install test/dispol %{BUILDROOT}/usr/bin | |
53 | end | |
54 | end | |
55 | ||
56 | packages | |
57 | package %{name} | |
58 | end |