-Patch5: sysvinit-sigint.patch
-Patch6: sysvinit-ai64.patch
-Patch7: sysvinit-halt.patch
-Patch8: sysvinit-blowfish.patch
-Patch9: sysvinit-notty.patch
-Patch10: sysvinit-wall-n.patch
-Patch11: sysvinit-owl-bound-format.patch
-Patch12: sysvinit-cread.patch
-Patch13: sysvinit-umask.patch
-BuildRequires: glibc-devel
-Prereq: shadow
-Prereq: make
-Prereq: /bin/awk
+Patch5: sysvinit-halt.patch
+Patch6: sysvinit-blowfish.patch
+Patch7: sysvinit-autofsck.patch
+Patch8: sysvinit-pidof.patch
+Patch9: sysvinit-killall5.patch
+# based on http://www.nsa.gov/selinux/patches/sysvinit-selinux.patch.gz
+Patch10: sysvinit-selinux.patch
+%if %{with selinux}
+BuildRequires: libselinux-devel >= 1.18
+BuildRequires: libsepol-devel
+%endif
+BuildRequires: rpmbuild(macros) >= 1.202
+Requires(pre): /usr/bin/getgid
+Requires(pre): /usr/sbin/groupadd
+Requires(post): fileutils
+Requires(postun): /usr/sbin/groupdel
+Requires: /bin/awk
+Requires: login
+%if %{with preconfigured}