summaryrefslogtreecommitdiff
path: root/parted.spec.in
diff options
context:
space:
mode:
authorPetr Lautrbach <plautrba@redhat.com>2020-11-03 15:06:34 +0100
committerBrian C. Lane <bcl@redhat.com>2020-11-05 09:22:26 -0800
commit059200d50beb259c54469ae65f2d034af48ff849 (patch)
tree26e59209af8baf0ab601a34c2f9ea8eabe18de38 /parted.spec.in
parentdfc611bd5126840d68493ad0e761511a71325af7 (diff)
downloadparted-059200d50beb259c54469ae65f2d034af48ff849.tar.gz
Do not link to libsepol or libselinux
Given that there's no code which would use it there's no reason to link to libsepol or libselinux even when they are available. Signed-off-by: Brian C. Lane <bcl@redhat.com>
Diffstat (limited to 'parted.spec.in')
-rw-r--r--parted.spec.in15
1 files changed, 2 insertions, 13 deletions
diff --git a/parted.spec.in b/parted.spec.in
index bdbe218..d0e2b11 100644
--- a/parted.spec.in
+++ b/parted.spec.in
@@ -1,15 +1,9 @@
-# Default to disabling device-mapper and SELinux
+# Default to disabling device-mapper
%define use_devmapper 0
-%define use_selinux 0
-%define use_sepol 0
# Enable device-mapper support if we find devmapper
%define use_devmapper %(pkg-config --libs devmapper >/dev/null 2>&1; [ $? -eq 0 ] && echo 1)
-# Enable SELinux if we find libselinux and libsepol
-%define use_selinux %([ -r %{_libdir}/libselinux.a ] && echo 1)
-%define use_sepol %([ -r %{_libdir}/libsepol.so ] && echo 1)
-
Summary: The GNU disk partition manipulation program
Name: @PACKAGE@
Version: @VERSION@
@@ -22,7 +16,7 @@ Group: Applications/System
BuildRequires: e2fsprogs-devel readline-devel ncurses-devel gperf
BuildRequires: automake libtool gettext-devel texinfo pkgconfig
-BuildRequires: device-mapper-devel, libselinux-devel libsepol-devel
+BuildRequires: device-mapper-devel
Prereq: /sbin/install-info
@@ -53,11 +47,6 @@ Parted library, you need to install this package.
%else
--disable-devmapper \
%endif
-%if "%{use_selinux}" == "1" && "%{use_sepol}" == "1"
- --enable-selinux \
-%else
- --disable-selinux \
-%endif
--enable-part-static \
--enable-pc98=no \
--enable-Werror=no