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

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