Blame SPECS/ndctl.spec

4b20f0
Name:		ndctl
d212ca
Version:	71.1
e0018b
Release:	8.1%{?dist}
4b20f0
Summary:	Manage "libnvdimm" subsystem devices (Non-volatile Memory)
4b20f0
License:	GPLv2
4b20f0
Url:		https://github.com/pmem/ndctl
4b20f0
Source0:	https://github.com/pmem/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
0dc130
cb1869
%if 0%{?facebook}
cb1869
# https://github.com/elake/ndctl diff from 71.1 (ea014c0) to main (3ff031d)
cb1869
# This was generated with `git diff` because `git format-patch` doesn't handle the merges well
cb1869
Patch0:         elake-diff-ea014c0-3ff031d.patch
88d66a
# Normal patch generated from `git format-patch`
88d66a
Patch1:         elake-c5d4db-7fcbe3.patch
e0018b
# Another `git diff` patch
e0018b
Patch2:         elake-diff-bafc29a0-df411ebe.patch
cb1869
%else
e0018b
Patch0: 0003-ndctl-test-Fix-btt-expect-table-compile-warning.patch
e0018b
Patch1: 0004-ndctl-test-Cleanup-unnecessary-out-label.patch
e0018b
Patch2: 0005-ndctl-test-Fix-device-dax-mremap-test.patch
e0018b
Patch3: 0006-ndctl-test-Exercise-soft_offline_page-corner-cases.patch
e0018b
Patch4: 0007-msft-Add-xlat_firmware_status-for-JEDEC-Byte-Address.patch
e0018b
Patch5: 0008-ndctl-namespace-Fix-disable-namespace-accounting-rel.patch
e0018b
Patch6: 0009-zero_info_block-skip-seed-devices.patch
e0018b
Patch7: 0010-ndctl-update-.gitignore.patch
e0018b
Patch8: 0011-ndctl-test-add-checking-the-presence-of-jq-command-a.patch
e0018b
Patch9: 0012-Expose-ndctl_bus_nfit_translate_spa-as-a-public-func.patch
e0018b
Patch10: 0013-test-libndctl-Use-ndctl_region_set_ro-to-change-disk.patch
e0018b
Patch11: 0014-daxctl-fail-reconfigure-device-based-on-kernel-onlin.patch
e0018b
Patch12: 0015-libdaxctl-add-an-API-to-check-if-a-device-is-active.patch
e0018b
Patch13: 0016-libndctl-check-for-active-system-ram-before-disablin.patch
e0018b
Patch14: 0017-daxctl-emit-counts-of-total-and-online-memblocks.patch
e0018b
Patch15: 0018-libndctl-Unify-adding-dimms-for-papr-and-nfit-famili.patch
e0018b
Patch16: 0019-test-Don-t-skip-tests-if-nfit-modules-are-missing.patch
e0018b
Patch17: 0020-papr-Add-support-to-parse-save_fail-flag-for-dimm.patch
e0018b
Patch18: 0021-Use-page-size-as-alignment-value.patch
e0018b
Patch19: 0022-libndctl-Remove-redundant-checks-and-assignments.patch
e0018b
Patch20: 0023-ndctl-Update-nvdimm-mailing-list-address.patch
e0018b
Patch21: 0024-libndctl-papr-Fix-probe-for-papr-scm-compatible-nvdi.patch
e0018b
Patch22: 0025-ndctl-scrub-Stop-translating-return-values.patch
e0018b
Patch23: 0026-ndctl-scrub-Reread-scrub-engine-status-at-start.patch
e0018b
Patch24: 0027-ndctl-dimm-Fix-label-index-block-calculations.patch
e0018b
Patch25: 0028-ndctl-namespace-Skip-seed-namespaces-when-processing.patch
e0018b
Patch26: 0029-ndctl-namespace-Suppress-ENXIO-when-processing-all-n.patch
e0018b
Patch27: 0030-namespace-action-Drop-zero-namespace-checks.patch
e0018b
Patch28: 0031-ndctl-add-.clang-format.patch
e0018b
Patch29: 0032-cxl-add-a-cxl-utility-and-libcxl-library.patch
e0018b
Patch30: 0033-cxl-add-a-local-copy-of-the-cxl_mem-UAPI-header.patch
e0018b
Patch31: 0034-util-add-the-struct_size-helper-from-the-kernel.patch
e0018b
Patch32: 0035-libcxl-add-support-for-command-query-and-submission.patch
e0018b
Patch33: 0036-libcxl-add-support-for-the-Identify-Device-command.patch
e0018b
Patch34: 0037-libcxl-add-GET_HEALTH_INFO-mailbox-command-and-acces.patch
e0018b
Patch35: 0038-libcxl-add-support-for-the-GET_LSA-command.patch
e0018b
Patch36: 0039-libcxl-add-label_size-to-cxl_memdev-and-an-API-to-re.patch
e0018b
Patch37: 0040-libcxl-add-representation-for-an-nvdimm-bridge-objec.patch
e0018b
Patch38: 0041-libcxl-add-interfaces-for-label-operations.patch
e0018b
Patch39: 0042-cxl-add-commands-to-read-write-and-zero-labels.patch
e0018b
Patch40: 0043-Documentation-cxl-add-library-API-documentation.patch
e0018b
Patch41: 0044-ndctl-Add-CXL-packages-to-the-RPM-spec.patch
e0018b
Patch42: 0045-cxl-cli-add-bash-completion.patch
e0018b
Patch43: 0046-cxl-add-health-information-to-cxl-list.patch
e0018b
Patch44: 0047-ndctl-install-bash-completion-symlinks.patch
e0018b
Patch45: 0048-scripts-Add-a-man-page-template-generator.patch
e0018b
Patch46: 0049-daxctl-Add-Soft-Reservation-theory-of-operation.patch
e0018b
Patch47: 0061-libcxl-fix-potential-NULL-dereference-in-cxl_memdev_.patch
e0018b
Patch48: 0064-ndctl-release-v72.patch
e0018b
Patch49: 0067-ndctl-add-repology-graphic-to-README.md.patch
e0018b
Patch50: 0068-Documentation-ndctl-fix-self-reference-of-ndctl-disa.patch
e0018b
Patch51: 0069-ndctl-docs-Clarify-update-firwmware-activation-overf.patch
e0018b
Patch52: 0070-ndctl-test-Prepare-for-BLK-aperture-support-removal.patch
e0018b
Patch53: 0071-ndctl-test-Move-reset-to-function-in-common.patch
e0018b
Patch54: 0072-ndctl-test-Initialize-the-label-area-by-default.patch
e0018b
Patch55: 0073-ndctl-test-Skip-BLK-flags-checks.patch
e0018b
Patch56: 0074-ndctl-test-Move-sector-mode-to-a-different-region.patch
e0018b
Patch57: 0075-ndctl-Deprecate-BLK-aperture-support.patch
e0018b
Patch58: 0076-ndctl-test-Fix-support-for-missing-dax_pmem_compat-m.patch
e0018b
Patch59: 0077-util-Distribute-filter-and-json-helpers-to-per-tool-.patch
e0018b
Patch60: 0078-Documentation-Drop-attrs.adoc-include.patch
e0018b
Patch61: 0079-build-Drop-unnecessary-tool-config.h-includes.patch
e0018b
Patch62: 0080-test-Prepare-out-of-line-builds.patch
e0018b
Patch63: 0081-ndctl-Drop-executable-bit-for-bash-completion-script.patch
e0018b
Patch64: 0082-build-Add-meson-build-infrastructure.patch
e0018b
Patch65: 0083-build-Add-meson-rpmbuild-support.patch
e0018b
Patch66: 0084-ndctl-Jettison-autotools.patch
e0018b
Patch67: 0085-ndctl-build-Default-asciidoctor-to-enabled.patch
e0018b
Patch68: 0086-ndctl-update-README.md-for-meson-build.patch
e0018b
Patch69: 0087-test-Add-suite-identifiers-to-tests.patch
e0018b
Patch70: 0088-ndctl-Rename-util_filter-to-ndctl_filter.patch
e0018b
Patch71: 0089-build-Add-tags.patch
e0018b
Patch72: 0090-json-Add-support-for-json_object_new_uint64.patch
e0018b
Patch73: 0091-cxl-json-Cleanup-object-leak-false-positive.patch
e0018b
Patch74: 0092-cxl-list-Support-multiple-memdev-device-name-filter-.patch
e0018b
Patch75: 0093-cxl-list-Support-comma-separated-lists.patch
e0018b
Patch76: 0094-cxl-list-Introduce-cxl_filter_walk.patch
e0018b
Patch77: 0095-cxl-list-Emit-device-serial-numbers.patch
e0018b
Patch78: 0096-cxl-list-Add-filter-by-serial-support.patch
e0018b
Patch79: 0097-cxl-lib-Rename-nvdimm-bridge-to-pmem.patch
e0018b
Patch80: 0098-cxl-list-Cleanup-options-definitions.patch
e0018b
Patch81: 0099-Documentation-Enhance-libcxl-memdev-API-documentatio.patch
e0018b
Patch82: 0100-cxl-list-Add-bus-objects.patch
e0018b
Patch83: 0101-util-json-Warn-on-stderr-about-empty-list-results.patch
e0018b
Patch84: 0102-util-sysfs-Uplevel-modalias-lookup-helper-to-util.patch
e0018b
Patch85: 0103-cxl-list-Add-port-enumeration.patch
e0018b
Patch86: 0104-cxl-list-Add-debug-option.patch
e0018b
Patch87: 0105-cxl-list-Add-endpoints.patch
e0018b
Patch88: 0106-cxl-list-Add-host-entries-for-port-like-objects.patch
e0018b
Patch89: 0107-cxl-list-Add-host-entries-for-memdevs.patch
e0018b
Patch90: 0108-cxl-list-Move-enabled-memdevs-underneath-their-endpo.patch
e0018b
Patch91: 0109-cxl-list-Filter-memdev-by-ancestry.patch
e0018b
Patch92: 0110-cxl-memdev-Use-a-local-logger-for-debug.patch
e0018b
Patch93: 0111-cxl-memdev-Cleanup-memdev-filter.patch
e0018b
Patch94: 0112-cxl-memdev-Add-serial-support-for-memdev-related-com.patch
e0018b
Patch95: 0113-cxl-list-Add-numa_node-to-memdev-listings.patch
e0018b
Patch96: 0114-util-Implement-common-bind-unbind-helpers.patch
e0018b
Patch97: 0115-cxl-memdev-Enable-disable-support.patch
e0018b
Patch98: 0116-cxl-list-Add-decoder-support.patch
e0018b
Patch99: 0117-cxl-list-Extend-decoder-objects-with-target-informat.patch
e0018b
Patch100: 0118-cxl-list-Use-physical_node-for-root-port-attachment-.patch
e0018b
Patch101: 0119-cxl-list-Reuse-the-target-option-for-ports.patch
e0018b
Patch102: 0120-cxl-list-Support-filtering-memdevs-by-decoders.patch
e0018b
Patch103: 0121-cxl-list-Support-filtering-memdevs-by-ports.patch
e0018b
Patch104: 0122-cxl-port-Add-disable-enable-port-command.patch
e0018b
Patch105: 0123-cxl-list-Filter-dports-and-targets-by-memdevs.patch
e0018b
Patch106: 0124-ndctl-test-make-inject-smart.sh-more-tolerant-of-dec.patch
e0018b
Patch107: 0125-libndctl-papr-Add-support-for-reporting-shutdown-cou.patch
e0018b
Patch108: 0126-libndctl-intel-Indicate-supported-smart-inject-types.patch
e0018b
Patch109: 0127-libndctl-papr-Add-limited-support-for-inject-smart.patch
e0018b
Patch110: 0128-ndtest-ack-shutdown-count-Skip-the-test-on-ndtest.patch
e0018b
Patch111: 0129-ndctl-libndctl-Update-nvdimm-flags-after-smart-injec.patch
e0018b
Patch112: 0132-libcxl-add-GET_PARTITION_INFO-mailbox-command-and-ac.patch
e0018b
Patch113: 0133-libcxl-add-accessors-for-capacity-fields-of-the-IDEN.patch
e0018b
Patch114: 0134-libcxl-return-the-partition-alignment-field-in-bytes.patch
e0018b
Patch115: 0135-cxl-add-memdev-partition-information-to-cxl-list.patch
e0018b
Patch116: 0136-libcxl-add-interfaces-for-SET_PARTITION_INFO-mailbox.patch
e0018b
Patch117: 0137-cxl-add-command-cxl-set-partition.patch
e0018b
Patch118: 0138-Update-ndctl.spec-to-allow-flatpak-builds.patch
e0018b
Patch119: 0139-daxctl-provide-safe-versions-of-iteration-API.patch
e0018b
Patch120: 0140-util-size.h-fix-build-for-older-compilers.patch
e0018b
Patch121: 0141-build-Automate-rpmbuild.sh.patch
e0018b
Patch122: 0142-util-size.h-Fix-build-error-for-GCC-10.patch
e0018b
Patch123: 0143-libcxl-Remove-extraneous-NULL-checks-when-validating.patch
e0018b
Patch124: 0144-libdaxctl-free-resource-allocated-with-asprintf.patch
e0018b
Patch125: 0145-cxl-list-tidy-the-error-path-in-add_cxl_decoder.patch
e0018b
Patch126: 0146-cxl-list-always-free-the-path-var-in-add_cxl_decoder.patch
e0018b
Patch127: 0147-scripts-docsurgeon-Fix-document-header-for-section-1.patch
e0018b
Patch128: 0148-ndctl-release-v73.patch
e0018b
Patch130: 0150-build-Fix-Wall-and-O2-warnings.patch
e0018b
Patch131: 0151-build-Fix-test-timeouts.patch
e0018b
Patch132: 0155-build-Move-utility-helpers-to-libutil.a.patch
e0018b
Patch133: 0156-util-Use-SZ_-size-macros-in-display-size.patch
e0018b
Patch134: 0157-util-Pretty-print-terabytes.patch
e0018b
Patch135: 0158-cxl-port-Fix-disable-port-man-page.patch
e0018b
Patch136: 0159-cxl-bus-Add-bus-disable-support.patch
e0018b
Patch137: 0160-cxl-list-Auto-enable-single-mode-for-port-listings.patch
e0018b
Patch138: 0161-cxl-memdev-Fix-bus_invalidate-crash.patch
e0018b
Patch139: 0162-cxl-list-Add-support-for-filtering-by-host-identifie.patch
e0018b
Patch140: 0163-cxl-port-Relax-port-identifier-validation.patch
e0018b
Patch142: 0165-cxl-test-Add-topology-enumeration-and-hotplug-test.patch
e0018b
Patch143: 0167-daxctl-Fix-kernel-option-typo-in-Soft-Reservation-th.patch
e0018b
Patch144: 0168-meson-make-modprobedatadir-an-option.patch
e0018b
Patch145: 0169-namespace-action-Drop-more-zero-namespace-checks.patch
e0018b
Patch146: 0170-ndctl-dimm-Flush-invalidated-labels-after-overwrite.patch
e0018b
Patch147: 0171-libcxl-fix-a-segfault-when-memdev-pmem-is-absent.patch
e0018b
Patch148: 0172-ndctl-bus-Handle-missing-scrub-commands-more-gracefu.patch
e0018b
Patch149: 0173-util-wrapper.c-Fix-gcc-warning-in-xrealloc.patch
e0018b
Patch150: 0174-libcxl-Fix-memory-leakage-in-cxl_port_init.patch
e0018b
Patch151: 0175-cxl-list-Reformat-option-list.patch
e0018b
Patch152: 0176-cxl-list-Emit-endpoint-decoders-filtered-by-memdev.patch
e0018b
Patch153: 0177-cxl-list-Hide-0s-in-disabled-decoder-listings.patch
e0018b
Patch154: 0178-cxl-list-Add-DPA-span-to-endpoint-decoder-listings.patch
e0018b
Patch155: 0179-ccan-list-Import-latest-list-helpers.patch
e0018b
Patch156: 0180-cxl-lib-Maintain-decoders-in-id-order.patch
e0018b
Patch157: 0181-cxl-memdev-Fix-json-for-multi-device-partitioning.patch
e0018b
Patch158: 0182-cxl-list-Emit-mode-for-endpoint-decoder-objects.patch
e0018b
Patch159: 0183-cxl-set-partition-Accept-ram-as-an-alias-for-volatil.patch
e0018b
Patch160: 0184-cxl-memdev-Add-reserve-free-dpa-commands.patch
e0018b
Patch161: 0185-cxl-test-Update-CXL-memory-parameters.patch
e0018b
Patch162: 0186-cxl-test-Checkout-region-setup-teardown.patch
e0018b
Patch163: 0187-cxl-test-add-a-test-to-read-write-zero-labels.patch
e0018b
Patch164: 0188-cxl-list-Clarify-B-vs-P-p-root.patch
e0018b
Patch165: 0189-libcxl-add-a-depth-attribute-to-cxl_port.patch
e0018b
Patch166: 0190-cxl-port-Consolidate-the-debug-option-in-cxl-port-ma.patch
e0018b
Patch167: 0191-cxl-memdev-refactor-decoder-mode-string-parsing.patch
e0018b
Patch168: 0192-libcxl-Introduce-libcxl-region-and-mapping-objects.patch
e0018b
Patch169: 0193-cxl-cli-add-region-listing-support.patch
e0018b
Patch170: 0194-libcxl-add-low-level-APIs-for-region-creation.patch
e0018b
Patch171: 0195-cxl-add-a-create-region-command.patch
e0018b
Patch172: 0196-cxl-add-commands-to-enable-disable-destroy-region.patch
e0018b
Patch173: 0197-cxl-list-make-memdevs-and-regions-the-default-listin.patch
e0018b
Patch174: 0198-test-add-a-cxl-create-region-test.patch
e0018b
Patch175: 0199-cxl-decoder-add-a-max_available_extent-attribute.patch
e0018b
Patch176: 0200-cxl-Add-list-verbose-option-to-the-cxl-command.patch
e0018b
Patch177: 0201-cxl-test-Validate-endpoint-interleave-geometry.patch
e0018b
Patch178: 0202-cxl-list-Add-interleave-parameters-to-decoder-listin.patch
e0018b
Patch179: 0203-cxl-list-Add-region-to-decoder-listings.patch
e0018b
Patch180: 0204-cxl-list-Filter-decoders-by-region.patch
e0018b
Patch181: 0205-cxl-list-Add-depth-to-port-listings.patch
e0018b
Patch182: 0206-cxl-test-Validate-switch-port-settings-in-cxl-region.patch
e0018b
Patch183: 0207-meson-fix-modprobedatadir-default-value.patch
e0018b
Patch184: 0208-ndctl-move-developer-scripts-from-contrib-to-scripts.patch
e0018b
Patch185: 0209-ndctl-remove-obsolete-m4-directory.patch
e0018b
Patch186: 0210-ndctl-update-.gitignore.patch
e0018b
Patch187: 0211-scripts-fix-contrib-do_abidiff-for-updated-fedpkg.patch
e0018b
Patch188: 0212-scripts-update-release-helper-scripts-for-meson-and-.patch
e0018b
Patch189: 0213-meson.build-be-specific-for-library-path.patch
e0018b
Patch190: 0214-cxl-region-fix-a-dereferecnce-after-NULL-check.patch
e0018b
Patch191: 0215-libcxl-fox-a-resource-leak-and-a-forward-NULL-check.patch
e0018b
Patch192: 0216-cxl-filter-Fix-an-uninitialized-pointer-dereference.patch
e0018b
Patch193: 0217-ndctl-release-v74.patch
cb1869
%endif
4b20f0
4b20f0
Requires:	ndctl-libs%{?_isa} = %{version}-%{release}
4b20f0
Requires:	daxctl-libs%{?_isa} = %{version}-%{release}
cb1869
%if 0%{?facebook}
e0018b
Requires:       cxl-libs%{?_isa} = %{version}-%{release}
cb1869
%endif
e0018b
BuildRequires: make
4b20f0
BuildRequires:	autoconf
4b20f0
BuildRequires:	asciidoc
e0018b
%define asciidoc -Dasciidoctor=disabled
4b20f0
BuildRequires:	xmlto
e0018b
BuildRequires:	meson
e0018b
BuildRequires:	ninja-build
4b20f0
BuildRequires:	libtool
4b20f0
BuildRequires:	pkgconfig
4b20f0
BuildRequires:	pkgconfig(libkmod)
4b20f0
BuildRequires:	pkgconfig(libudev)
4b20f0
BuildRequires:	pkgconfig(uuid)
4b20f0
BuildRequires:	pkgconfig(json-c)
4b20f0
BuildRequires:	pkgconfig(bash-completion)
cb1869
BuildRequires:	pkgconfig(systemd)
4b20f0
BuildRequires:	keyutils-libs-devel
4b20f0
4b20f0
%description
4b20f0
Utility library for managing the "libnvdimm" subsystem.  The "libnvdimm"
4b20f0
subsystem defines a kernel device model and control message interface for
4b20f0
platform NVDIMM resources like those defined by the ACPI 6+ NFIT (NVDIMM
4b20f0
Firmware Interface Table).
4b20f0
4b20f0
4b20f0
%package -n ndctl-devel
4b20f0
Summary:	Development files for libndctl
4b20f0
License:	LGPLv2
4b20f0
Requires:	ndctl-libs%{?_isa} = %{version}-%{release}
4b20f0
4b20f0
%description -n ndctl-devel
4b20f0
The %{name}-devel package contains libraries and header files for
4b20f0
developing applications that use %{name}.
4b20f0
4b20f0
%package -n daxctl
4b20f0
Summary:	Manage Device-DAX instances
4b20f0
License:	GPLv2
4b20f0
Requires:	daxctl-libs%{?_isa} = %{version}-%{release}
4b20f0
4b20f0
%description -n daxctl
4b20f0
The daxctl utility provides enumeration and provisioning commands for
4b20f0
the Linux kernel Device-DAX facility. This facility enables DAX mappings
4b20f0
of performance / feature differentiated memory without need of a
4b20f0
filesystem.
4b20f0
e0018b
%package -n daxctl-devel
e0018b
Summary:	Development files for libdaxctl
e0018b
License:	LGPLv2
e0018b
Requires:	daxctl-libs%{?_isa} = %{version}-%{release}
e0018b
e0018b
%description -n daxctl-devel
e0018b
The %{name}-devel package contains libraries and header files for
e0018b
developing applications that use %{name}, a library for enumerating
e0018b
"Device DAX" devices.  Device DAX is a facility for establishing DAX
e0018b
mappings of performance / feature-differentiated memory.
e0018b
cb1869
%package -n cxl-cli
cb1869
Summary:	Manage CXL devices
cb1869
License:	GPLv2
cb1869
Requires:	cxl-libs%{?_isa} = %{version}-%{release}
cb1869
cb1869
%description -n cxl-cli
cb1869
The cxl utility provides enumeration and provisioning commands for
cb1869
the Linux kernel CXL devices.
cb1869
cb1869
%package -n cxl-devel
cb1869
Summary:	Development files for libcxl
cb1869
License:	LGPLv2
cb1869
Requires:	cxl-libs%{?_isa} = %{version}-%{release}
cb1869
cb1869
%description -n cxl-devel
cb1869
This package contains libraries and header files for developing applications
cb1869
that use libcxl, a library for enumerating and communicating with CXL devices.
4b20f0
4b20f0
%package -n ndctl-libs
4b20f0
Summary:	Management library for "libnvdimm" subsystem devices (Non-volatile Memory)
4b20f0
License:	LGPLv2
4b20f0
Requires:	daxctl-libs%{?_isa} = %{version}-%{release}
4b20f0
4b20f0
4b20f0
%description -n ndctl-libs
4b20f0
Libraries for %{name}.
4b20f0
4b20f0
%package -n daxctl-libs
4b20f0
Summary:	Management library for "Device DAX" devices
4b20f0
License:	LGPLv2
4b20f0
4b20f0
%description -n daxctl-libs
4b20f0
Device DAX is a facility for establishing DAX mappings of performance /
4b20f0
feature-differentiated memory. daxctl-libs provides an enumeration /
4b20f0
control API for these devices.
4b20f0
cb1869
%package -n cxl-libs
cb1869
Summary:	Management library for CXL devices
cb1869
License:	LGPLv2
cb1869
cb1869
%description -n cxl-libs
cb1869
libcxl is a library for enumerating and communicating with CXL devices.
cb1869
4b20f0
4b20f0
%prep
0dc130
%autosetup -p1 ndctl-%{version}
4b20f0
4b20f0
%build
e0018b
%if 0%{?facebook}
4b20f0
echo %{version} > version
4b20f0
./autogen.sh
4b20f0
%configure --disable-static --disable-silent-rules --disable-asciidoctor
4b20f0
make %{?_smp_mflags}
e0018b
%else
e0018b
%meson %{?asciidoc} -Dversion-tag=%{version}
e0018b
%meson_build
e0018b
%endif
4b20f0
4b20f0
%install
e0018b
%if 0%{?facebook}
4b20f0
%make_install
4b20f0
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
4b20f0
4b20f0
%check
4b20f0
make check
e0018b
%else
e0018b
%meson_install
e0018b
%endif
4b20f0
cb1869
%ldconfig_scriptlets -n ndctl-libs
4b20f0
cb1869
%ldconfig_scriptlets -n daxctl-libs
4b20f0
cb1869
%if 0%{?facebook}
cb1869
%ldconfig_scriptlets -n cxl-libs
cb1869
%endif
4b20f0
4b20f0
%define bashcompdir %(pkg-config --variable=completionsdir bash-completion)
4b20f0
4b20f0
%files
d212ca
%license LICENSES/preferred/GPL-2.0 LICENSES/other/MIT LICENSES/other/CC0-1.0
4b20f0
%{_bindir}/ndctl
4b20f0
%{_mandir}/man1/ndctl*
4b20f0
%{bashcompdir}/
4b20f0
%{_unitdir}/ndctl-monitor.service
4b20f0
%{_sysconfdir}/ndctl/keys/keys.readme
4b20f0
%{_sysconfdir}/modprobe.d/nvdimm-security.conf
4b20f0
4b20f0
%config(noreplace) %{_sysconfdir}/ndctl/monitor.conf
4b20f0
4b20f0
%files -n daxctl
d212ca
%license LICENSES/preferred/GPL-2.0 LICENSES/other/MIT LICENSES/other/CC0-1.0
4b20f0
%{_bindir}/daxctl
4b20f0
%{_mandir}/man1/daxctl*
4b20f0
%{_datadir}/daxctl/daxctl.conf
4b20f0
cb1869
%files -n cxl-cli
cb1869
%license LICENSES/preferred/GPL-2.0 LICENSES/other/MIT LICENSES/other/CC0-1.0
cb1869
%{_bindir}/cxl
cb1869
%{_mandir}/man1/cxl*
e0018b
%if 0%{?facebook} < 1
e0018b
%{bashcompdir}/cxl
cb1869
%endif
cb1869
4b20f0
%files -n ndctl-libs
4b20f0
%doc README.md
d212ca
%license LICENSES/preferred/LGPL-2.1 LICENSES/other/MIT LICENSES/other/CC0-1.0
4b20f0
%{_libdir}/libndctl.so.*
4b20f0
4b20f0
%files -n daxctl-libs
4b20f0
%doc README.md
d212ca
%license LICENSES/preferred/LGPL-2.1 LICENSES/other/MIT LICENSES/other/CC0-1.0
4b20f0
%{_libdir}/libdaxctl.so.*
4b20f0
cb1869
%files -n cxl-libs
cb1869
%doc README.md
cb1869
%license LICENSES/preferred/LGPL-2.1 LICENSES/other/MIT LICENSES/other/CC0-1.0
cb1869
%{_libdir}/libcxl.so.*
cb1869
4b20f0
%files -n ndctl-devel
d212ca
%license LICENSES/preferred/LGPL-2.1
4b20f0
%{_includedir}/ndctl/
4b20f0
%{_libdir}/libndctl.so
4b20f0
%{_libdir}/pkgconfig/libndctl.pc
4b20f0
4b20f0
%files -n daxctl-devel
d212ca
%license LICENSES/preferred/LGPL-2.1
4b20f0
%{_includedir}/daxctl/
4b20f0
%{_libdir}/libdaxctl.so
4b20f0
%{_libdir}/pkgconfig/libdaxctl.pc
4b20f0
cb1869
%files -n cxl-devel
cb1869
%license LICENSES/preferred/LGPL-2.1
cb1869
%{_includedir}/cxl/
cb1869
%{_libdir}/libcxl.so
cb1869
%{_libdir}/pkgconfig/libcxl.pc
cb1869
%{_mandir}/man3/cxl*
e0018b
%{_mandir}/man3/libcxl.3*
cb1869
4b20f0
4b20f0
%changelog
e0018b
* Fri Aug 04 2023 Anita Zhang <the.anitazha@gmail.com> - 71.1-8.1
e0018b
- Sync 71.1-8 from c9 branch.
e0018b
- Patch bafc29a0..df411ebe from elake/ndctl fork for hs+fb
e0018b
88d66a
* Thu Feb 23 2023 Anita Zhang <the.anitazha@gmail.com> - 71.1-4.2
88d66a
- Patch SPD decoding and dimm_slot_info CCI command support
88d66a
cb1869
* Fri Feb  3 2023 Anita Zhang <the.anitazha@gmail.com> - 71.1-4.1
cb1869
- Patch 71.1 with diff between ea014c0..3ff031d from elake/ndctl fork for hs+fb
cb1869
- Sync changes from rhel/ndctl.spec (autogenerated by the GitHub Makefile)
cb1869
e0018b
* Thu Oct 13 2022 Jeff Moyer <jmoyer@redhat.com> - 71.1-8
e0018b
- Backport changes up to v74, excluding the config file changes. (Jeff Moyer)
e0018b
  This includes support for the CXL commands, and adds the following
e0018b
  packages: cxl-cli, cxl-devel, cxl-libs
e0018b
- Resolves: rhbz#2132167
0dc130
e0018b
* Tue Jun 14 2022 Bryan Gurney <bgurney@redhat.com> - 71.1-7
e0018b
- Pull in fixes from upstream v72 and v73 (Jeff Moyer)
e0018b
- Fix enable-namespace all reporting errors incorrectly
e0018b
- Add support for inject-smart on papr scm
e0018b
- Related: rhbz#2040075
e0018b
- Related: rhbz#1873851
e0018b
- Related: rhbz#1880578
e0018b
- Related: rhbz#1922538
e0018b
- Related: rhbz#2087707
e0018b
e0018b
* Wed Dec 1 2021 Bryan Gurney <bgurney@redhat.com> - 71.1-6
e0018b
- Add gating test
e0018b
- Related: rhbz#2028152
e0018b
e0018b
* Mon Nov 29 2021 Bryan Gurney <bgurney@redhat.com> - 71.1-5
4d8a7d
- Rebuild with latest json-c version
e0018b
- Related: rhbz#2023317
e0018b
e0018b
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 71.1-4
e0018b
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
e0018b
  Related: rhbz#1991688
e0018b
e0018b
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 71.1-3
e0018b
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
e0018b
e0018b
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 71.1-2
e0018b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
e0018b
e0018b
* Tue Dec 22 2020 Vishal Verma <vishal.l.verma@intel.com> - 71.1-1
e0018b
- release v71.1
e0018b
e0018b
* Sat Dec 19 2020 Vishal Verma <vishal.l.verma@intel.com> - 71-1
e0018b
- release v71
e0018b
e0018b
* Sat Oct 10 2020 Vishal Verma <vishal.l.verma@intel.com> - 70.1-1
e0018b
- release v70.1
e0018b
e0018b
* Tue Oct 06 2020 Vishal Verma <vishal@stellar.sh> - 70-1
e0018b
- release v70
e0018b
e0018b
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 69-2
e0018b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
e0018b
e0018b
* Thu Jul 23 2020 Vishal Verma <vishal.l.verma@intel.com> - 69-1
e0018b
- release v69
e0018b
e0018b
* Tue Apr 21 2020 Björn Esser <besser82@fedoraproject.org> - 68-2
e0018b
- Rebuild (json-c)
e0018b
e0018b
* Tue Mar 24 2020 Vishal Verma <vishal@stellar.sh> - 68-1
e0018b
- release v68
e0018b
e0018b
* Fri Jan 31 2020 Vishal Verma <vishal.l.verma@intel.com> - 67-3
e0018b
- Add fix for GCC10 builds
e0018b
e0018b
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 67-2
e0018b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
e0018b
e0018b
* Mon Oct 28 2019 Vishal Verma <vishal.l.verma@intel.com> - 67-1
e0018b
- release v67
e0018b
e0018b
* Wed Aug 07 2019 Vishal Verma <vishal.l.verma@intel.com> - 66-1
e0018b
- release v66
e0018b
e0018b
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 65-2
e0018b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
e0018b
e0018b
* Sat May 11 2019 Vishal Verma <vishal.l.verma@intel.com> - 65-1
e0018b
- release v65
e0018b
e0018b
* Wed Feb 06 2019 Vishal Verma <vishal.l.verma@intel.com> - 64.1-1
e0018b
- release v64.1
e0018b
e0018b
* Mon Feb 04 2019 Vishal Verma <vishal.l.verma@intel.com> - 64-1
e0018b
- release v64
e0018b
e0018b
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 63-2
e0018b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
e0018b
e0018b
* Fri Oct 05 2018 Vishal Verma <vishal.l.verma@intel.com> - 63-1
e0018b
- release v63
e0018b
- remove ndctl-udev and related files
e0018b
e0018b
* Tue Aug 14 2018 Vishal Verma <vishal@stellar.sh> - 62-1
e0018b
- release v62
e0018b
- Add files for udev and ndctl-monitor
e0018b
e0018b
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 61.2-2
e0018b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
e0018b
e0018b
* Wed Jul 11 2018 Vishal Verma <vishal.l.verma@intel.com> - 61.2-1
e0018b
- release v61.2
e0018b
e0018b
* Tue Jun 26 2018 Vishal Verma <vishal@stellar.sh> - 61.1-1
e0018b
- release v61.1
e0018b
e0018b
* Tue Jun 26 2018 Vishal Verma <vishal@stellar.sh> - 61-1
e0018b
- new version
e0018b
e0018b
* Thu May 17 2018 Dan Williams <dan.j.williams@intel.com> - 60.3-1
e0018b
- release v60.3
4b20f0
4b20f0
* Mon Apr 23 2018 Dan Williams <dan.j.williams@intel.com> - 60.1-1
4b20f0
- release v60.1
4b20f0
4b20f0
* Thu Apr 19 2018 Dan Williams <dan.j.williams@intel.com> - 60-1
4b20f0
- release v60
4b20f0
4b20f0
* Tue Mar 27 2018 Dan Williams <dan.j.williams@intel.com> - 59.3-1
4b20f0
- release v59.3
4b20f0
4b20f0
* Tue Mar 06 2018 Björn Esser <besser82@fedoraproject.org> - 59.2-2
4b20f0
- Rebuilt for libjson-c.so.4 (json-c v0.13.1)
4b20f0
4b20f0
* Fri Feb 09 2018 Dan Williams <dan.j.williams@intel.com> - 59.2-1
4b20f0
- release v59.2
4b20f0
4b20f0
* Fri Feb 09 2018 Dan Williams <dan.j.williams@intel.com> - 59.1-1
4b20f0
- release v59.1
4b20f0
4b20f0
* Fri Feb 09 2018 Dan Williams <dan.j.williams@intel.com> - 59-1
4b20f0
- release v59
4b20f0
4b20f0
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 58.4-3
4b20f0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
4b20f0
4b20f0
* Sun Dec 10 2017 Björn Esser <besser82@fedoraproject.org> - 58.4-2
4b20f0
- Rebuilt for libjson-c.so.3
4b20f0
4b20f0
* Thu Nov 16 2017 Dan Williams <dan.j.williams@intel.com> - 58.4-1
4b20f0
- release v58.4
4b20f0
4b20f0
* Thu Sep 21 2017 Dan Williams <dan.j.williams@intel.com> - 58.2-1
4b20f0
- release v58.2
4b20f0
4b20f0
* Fri Sep 08 2017 Dan Williams <dan.j.williams@intel.com> - 58.1-2
4b20f0
- gate libpmem dependency on x86_64
4b20f0
4b20f0
* Fri Sep 08 2017 Dan Williams <dan.j.williams@intel.com> - 58.1-1
4b20f0
- add libpmem dependency
4b20f0
- release v58.1
4b20f0
4b20f0
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 57.1-3
4b20f0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
4b20f0
4b20f0
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 57.1-2
4b20f0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
4b20f0
4b20f0
* Fri Jun 30 2017 Dan Williams <dan.j.williams@intel.com> - 57.1-1
4b20f0
- Release v57.1
4b20f0
4b20f0
* Sat May 27 2017 Dan Williams <dan.j.williams@intel.com> - 57-1
4b20f0
- Release v57
4b20f0
4b20f0
* Fri Feb 10 2017 Dan Williams <dan.j.williams@intel.com> - 56-1
4b20f0
- Release v56
4b20f0
4b20f0
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 55-2
4b20f0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
4b20f0
4b20f0
* Fri Oct 21 2016 Dan Williams <dan.j.williams@intel.com> - 55-1
4b20f0
- release v55
4b20f0
4b20f0
* Fri Aug 05 2016 Dan Williams <dan.j.williams@intel.com> - 54-1
4b20f0
- add explicit lib version dependencies
4b20f0
4b20f0
* Sat May 28 2016 Dan Williams <dan.j.williams@intel.com> - 53.1-1
4b20f0
- Fix up tag format vs source url confusion
4b20f0
4b20f0
* Fri May 27 2016 Dan Williams <dan.j.williams@intel.com> - 53-1
4b20f0
- add daxctl-libs + daxctl-devel packages
4b20f0
- add bash completion
4b20f0
4b20f0
* Mon Apr 04 2016 Dan Williams <dan.j.williams@intel.com> - 52-1
4b20f0
- Initial rpm submission to Fedora