Blame SOURCES/0138-Update-ndctl.spec-to-allow-flatpak-builds.patch

26ccd9
From cd41a4dc6af9b48045b0aa46669d560faeb134e2 Mon Sep 17 00:00:00 2001
26ccd9
From: Jay W <git.jaydoubleu@gmail.com>
26ccd9
Date: Tue, 15 Feb 2022 00:45:00 +0000
26ccd9
Subject: [PATCH 138/217] Update ndctl.spec to allow flatpak builds
26ccd9
26ccd9
This will allow ndctl to be build as dependency for some flatpak builds
26ccd9
on fedora systems.
26ccd9
See also: https://docs.fedoraproject.org/en-US/flatpak/troubleshooting/#_uncompressed_manual_pages
26ccd9
26ccd9
Link: https://github.com/pmem/ndctl/pull/192
26ccd9
Signed-off-by: Vishal Verma <vishal.l.verma@intel.com>
26ccd9
---
26ccd9
 ndctl.spec.in | 5 ++++-
26ccd9
 1 file changed, 4 insertions(+), 1 deletion(-)
26ccd9
26ccd9
diff --git a/ndctl.spec.in b/ndctl.spec.in
26ccd9
index 9ca831e..cfcafa2 100644
26ccd9
--- a/ndctl.spec.in
26ccd9
+++ b/ndctl.spec.in
26ccd9
@@ -38,6 +38,9 @@ subsystem defines a kernel device model and control message interface for
26ccd9
 platform NVDIMM resources like those defined by the ACPI 6+ NFIT (NVDIMM
26ccd9
 Firmware Interface Table).
26ccd9
 
26ccd9
+%if 0%{?flatpak}
26ccd9
+%global _udevrulesdir %{_prefix}/lib/udev/rules.d
26ccd9
+%endif
26ccd9
 
26ccd9
 %package -n DNAME
26ccd9
 Summary:	Development files for libndctl
26ccd9
@@ -231,7 +234,7 @@ fi
26ccd9
 %{_libdir}/libcxl.so
26ccd9
 %{_libdir}/pkgconfig/libcxl.pc
26ccd9
 %{_mandir}/man3/cxl*
26ccd9
-%{_mandir}/man3/libcxl.3.gz
26ccd9
+%{_mandir}/man3/libcxl.3*
26ccd9
 
26ccd9
 
26ccd9
 %changelog
26ccd9
-- 
26ccd9
2.27.0
26ccd9