anitazha / rpms / ndctl

Forked from rpms/ndctl a year ago
Clone

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

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