anitazha / rpms / ndctl

Forked from rpms/ndctl 2 years ago
Clone
5a1f83
Name:		ndctl
5a1f83
Version:	62
5a1f83
Release:	2%{?dist}
5a1f83
Summary:	Manage "libnvdimm" subsystem devices (Non-volatile Memory)
5a1f83
License:	GPLv2
5a1f83
Group:		System Environment/Base
5a1f83
Url:		https://github.com/pmem/ndctl
5a1f83
Source0:	https://github.com/pmem/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
5a1f83
Patch0:		5c67ce4-ndctl-Revert-ndctl-Create-ndctl-udev-rules-for-dirty-shutdown.patch
5a1f83
5a1f83
Requires:	ndctl-libs%{?_isa} = %{version}-%{release}
5a1f83
Requires:	daxctl-libs%{?_isa} = %{version}-%{release}
5a1f83
BuildRequires:	autoconf
5a1f83
BuildRequires:	asciidoc
5a1f83
BuildRequires:	xmlto
5a1f83
BuildRequires:	automake
5a1f83
BuildRequires:	libtool
5a1f83
BuildRequires:	pkgconfig
5a1f83
BuildRequires:	pkgconfig(libkmod)
5a1f83
BuildRequires:	pkgconfig(libudev)
5a1f83
BuildRequires:	pkgconfig(uuid)
5a1f83
BuildRequires:	pkgconfig(json-c)
5a1f83
BuildRequires:	pkgconfig(bash-completion)
5a1f83
BuildRequires:	systemd
5a1f83
5a1f83
%description
5a1f83
Utility library for managing the "libnvdimm" subsystem.  The "libnvdimm"
5a1f83
subsystem defines a kernel device model and control message interface for
5a1f83
platform NVDIMM resources like those defined by the ACPI 6+ NFIT (NVDIMM
5a1f83
Firmware Interface Table).
5a1f83
5a1f83
5a1f83
%package -n ndctl-devel
5a1f83
Summary:	Development files for libndctl
5a1f83
License:	LGPLv2
5a1f83
Group:		Development/Libraries
5a1f83
Requires:	ndctl-libs%{?_isa} = %{version}-%{release}
5a1f83
5a1f83
%description -n ndctl-devel
5a1f83
The %{name}-devel package contains libraries and header files for
5a1f83
developing applications that use %{name}.
5a1f83
5a1f83
%package -n daxctl
5a1f83
Summary:	Manage Device-DAX instances
5a1f83
License:	GPLv2
5a1f83
Group:		System Environment/Base
5a1f83
Requires:	daxctl-libs%{?_isa} = %{version}-%{release}
5a1f83
5a1f83
%description -n daxctl
5a1f83
The daxctl utility provides enumeration and provisioning commands for
5a1f83
the Linux kernel Device-DAX facility. This facility enables DAX mappings
5a1f83
of performance / feature differentiated memory without need of a
5a1f83
filesystem.
5a1f83
5a1f83
%package -n daxctl-devel
5a1f83
Summary:	Development files for libdaxctl
5a1f83
License:	LGPLv2
5a1f83
Group:		Development/Libraries
5a1f83
Requires:	daxctl-libs%{?_isa} = %{version}-%{release}
5a1f83
5a1f83
%description -n daxctl-devel
5a1f83
The %{name}-devel package contains libraries and header files for
5a1f83
developing applications that use %{name}, a library for enumerating
5a1f83
"Device DAX" devices.  Device DAX is a facility for establishing DAX
5a1f83
mappings of performance / feature-differentiated memory.
5a1f83
5a1f83
5a1f83
%package -n ndctl-libs
5a1f83
Summary:	Management library for "libnvdimm" subsystem devices (Non-volatile Memory)
5a1f83
License:	LGPLv2
5a1f83
Group:		System Environment/Libraries
5a1f83
Requires:	daxctl-libs%{?_isa} = %{version}-%{release}
5a1f83
5a1f83
5a1f83
%description -n ndctl-libs
5a1f83
Libraries for %{name}.
5a1f83
5a1f83
%package -n daxctl-libs
5a1f83
Summary:	Management library for "Device DAX" devices
5a1f83
License:	LGPLv2
5a1f83
Group:		System Environment/Libraries
5a1f83
5a1f83
%description -n daxctl-libs
5a1f83
Device DAX is a facility for establishing DAX mappings of performance /
5a1f83
feature-differentiated memory. daxctl-libs provides an enumeration /
5a1f83
control API for these devices.
5a1f83
5a1f83
5a1f83
%prep
5a1f83
%setup -q ndctl-%{version}
5a1f83
%patch0 -p1
5a1f83
5a1f83
%build
5a1f83
echo %{version} > version
5a1f83
./autogen.sh
5a1f83
%configure --disable-static --disable-silent-rules
5a1f83
make %{?_smp_mflags}
5a1f83
5a1f83
%install
5a1f83
%make_install
5a1f83
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
5a1f83
5a1f83
%check
5a1f83
make check
5a1f83
5a1f83
%post -n ndctl-libs -p /sbin/ldconfig
5a1f83
5a1f83
%postun -n ndctl-libs -p /sbin/ldconfig
5a1f83
5a1f83
%post -n daxctl-libs -p /sbin/ldconfig
5a1f83
5a1f83
%postun -n daxctl-libs -p /sbin/ldconfig
5a1f83
5a1f83
%define bashcompdir %(pkg-config --variable=completionsdir bash-completion)
5a1f83
5a1f83
%files
5a1f83
%license util/COPYING licenses/BSD-MIT licenses/CC0
5a1f83
%{_bindir}/ndctl
5a1f83
%{_mandir}/man1/ndctl*
5a1f83
%{bashcompdir}/
5a1f83
%{_sysconfdir}/ndctl/monitor.conf
5a1f83
%{_unitdir}/ndctl-monitor.service
5a1f83
5a1f83
%files -n daxctl
5a1f83
%license util/COPYING licenses/BSD-MIT licenses/CC0
5a1f83
%{_bindir}/daxctl
5a1f83
%{_mandir}/man1/daxctl*
5a1f83
5a1f83
%files -n ndctl-libs
5a1f83
%doc README.md
5a1f83
%license COPYING licenses/BSD-MIT licenses/CC0
5a1f83
%{_libdir}/libndctl.so.*
5a1f83
5a1f83
%files -n daxctl-libs
5a1f83
%doc README.md
5a1f83
%license COPYING licenses/BSD-MIT licenses/CC0
5a1f83
%{_libdir}/libdaxctl.so.*
5a1f83
5a1f83
%files -n ndctl-devel
5a1f83
%license COPYING
5a1f83
%{_includedir}/ndctl/
5a1f83
%{_libdir}/libndctl.so
5a1f83
%{_libdir}/pkgconfig/libndctl.pc
5a1f83
5a1f83
%files -n daxctl-devel
5a1f83
%license COPYING
5a1f83
%{_includedir}/daxctl/
5a1f83
%{_libdir}/libdaxctl.so
5a1f83
%{_libdir}/pkgconfig/libdaxctl.pc
5a1f83
5a1f83
5a1f83
%changelog
5a1f83
* Tue Oct 09 2018 Jeff Moyer 
5a1f83
- Remove faulty udev rule
5a1f83
- Resolves: bz#1637624
5a1f83
5a1f83
* Thu Aug 23 2018 Jeff Moyer <jmoyer@redhat.com> - 62-1
5a1f83
- rebase to v62
5a1f83
- Resolves: bz#1567756 bz#1497651 bz#1610650 bz#1511774 bz#1570548
5a1f83
5a1f83
* Mon Apr 23 2018 Dan Williams <dan.j.williams@intel.com> - 60.1-1
5a1f83
- release v60.1
5a1f83
5a1f83
* Thu Apr 19 2018 Dan Williams <dan.j.williams@intel.com> - 60-1
5a1f83
- release v60
5a1f83
5a1f83
* Tue Mar 27 2018 Dan Williams <dan.j.williams@intel.com> - 59.3-1
5a1f83
- release v59.3
5a1f83
5a1f83
* Tue Mar 06 2018 Björn Esser <besser82@fedoraproject.org> - 59.2-2
5a1f83
- Rebuilt for libjson-c.so.4 (json-c v0.13.1)
5a1f83
5a1f83
* Fri Feb 09 2018 Dan Williams <dan.j.williams@intel.com> - 59.2-1
5a1f83
- release v59.2
5a1f83
5a1f83
* Fri Feb 09 2018 Dan Williams <dan.j.williams@intel.com> - 59.1-1
5a1f83
- release v59.1
5a1f83
5a1f83
* Fri Feb 09 2018 Dan Williams <dan.j.williams@intel.com> - 59-1
5a1f83
- release v59
5a1f83
5a1f83
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 58.4-3
5a1f83
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
5a1f83
5a1f83
* Sun Dec 10 2017 Björn Esser <besser82@fedoraproject.org> - 58.4-2
5a1f83
- Rebuilt for libjson-c.so.3
5a1f83
5a1f83
* Thu Nov 16 2017 Dan Williams <dan.j.williams@intel.com> - 58.4-1
5a1f83
- release v58.4
5a1f83
5a1f83
* Thu Sep 21 2017 Dan Williams <dan.j.williams@intel.com> - 58.2-1
5a1f83
- release v58.2
5a1f83
5a1f83
* Fri Sep 08 2017 Dan Williams <dan.j.williams@intel.com> - 58.1-2
5a1f83
- gate libpmem dependency on x86_64
5a1f83
5a1f83
* Fri Sep 08 2017 Dan Williams <dan.j.williams@intel.com> - 58.1-1
5a1f83
- add libpmem dependency
5a1f83
- release v58.1
5a1f83
5a1f83
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 57.1-3
5a1f83
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
5a1f83
5a1f83
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 57.1-2
5a1f83
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
5a1f83
5a1f83
* Fri Jun 30 2017 Dan Williams <dan.j.williams@intel.com> - 57.1-1
5a1f83
- Release v57.1
5a1f83
5a1f83
* Sat May 27 2017 Dan Williams <dan.j.williams@intel.com> - 57-1
5a1f83
- Release v57
5a1f83
5a1f83
* Fri Feb 10 2017 Dan Williams <dan.j.williams@intel.com> - 56-1
5a1f83
- Release v56
5a1f83
5a1f83
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 55-2
5a1f83
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
5a1f83
5a1f83
* Fri Oct 21 2016 Dan Williams <dan.j.williams@intel.com> - 55-1
5a1f83
- release v55
5a1f83
5a1f83
* Fri Aug 05 2016 Dan Williams <dan.j.williams@intel.com> - 54-1
5a1f83
- add explicit lib version dependencies
5a1f83
5a1f83
* Sat May 28 2016 Dan Williams <dan.j.williams@intel.com> - 53.1-1
5a1f83
- Fix up tag format vs source url confusion
5a1f83
5a1f83
* Fri May 27 2016 Dan Williams <dan.j.williams@intel.com> - 53-1
5a1f83
- add daxctl-libs + daxctl-devel packages
5a1f83
- add bash completion
5a1f83
5a1f83
* Mon Apr 04 2016 Dan Williams <dan.j.williams@intel.com> - 52-1
5a1f83
- Initial rpm submission to Fedora