add daxctl-libs + daxctl-devel packages
- add bash completion
This commit is contained in:
parent
f74c1dd6ea
commit
434a03fecb
1
.gitignore
vendored
1
.gitignore
vendored
@ -1 +1,2 @@
|
|||||||
/v52.tar.gz
|
/v52.tar.gz
|
||||||
|
/ndctl-53.tar.gz
|
||||||
|
57
ndctl.spec
57
ndctl.spec
@ -1,11 +1,11 @@
|
|||||||
Name: ndctl
|
Name: ndctl
|
||||||
Version: 52
|
Version: 53
|
||||||
Release: 1%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: Manage "libnvdimm" subsystem devices (Non-volatile Memory)
|
Summary: Manage "libnvdimm" subsystem devices (Non-volatile Memory)
|
||||||
License: GPLv2
|
License: GPLv2
|
||||||
Group: System Environment/Base
|
Group: System Environment/Base
|
||||||
Url: https://github.com/pmem/ndctl
|
Url: https://github.com/pmem/ndctl
|
||||||
Source0: https://github.com/pmem/ndctl/archive/v%{version}.tar.gz
|
Source0: https://github.com/pmem/ndctl/releases/download/ndctl-%{version}/ndctl-%{version}.tar.gz
|
||||||
|
|
||||||
BuildRequires: autoconf
|
BuildRequires: autoconf
|
||||||
BuildRequires: asciidoc
|
BuildRequires: asciidoc
|
||||||
@ -17,6 +17,7 @@ BuildRequires: pkgconfig(libkmod)
|
|||||||
BuildRequires: pkgconfig(libudev)
|
BuildRequires: pkgconfig(libudev)
|
||||||
BuildRequires: pkgconfig(uuid)
|
BuildRequires: pkgconfig(uuid)
|
||||||
BuildRequires: pkgconfig(json-c)
|
BuildRequires: pkgconfig(json-c)
|
||||||
|
BuildRequires: pkgconfig(bash-completion)
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Utility library for managing the "libnvdimm" subsystem. The "libnvdimm"
|
Utility library for managing the "libnvdimm" subsystem. The "libnvdimm"
|
||||||
@ -35,20 +36,45 @@ Requires: ndctl-libs%{?_isa} = %{version}-%{release}
|
|||||||
The %{name}-devel package contains libraries and header files for
|
The %{name}-devel package contains libraries and header files for
|
||||||
developing applications that use %{name}.
|
developing applications that use %{name}.
|
||||||
|
|
||||||
|
%package -n daxctl-devel
|
||||||
|
Summary: Development files for libdaxctl
|
||||||
|
License: LGPLv2
|
||||||
|
Group: Development/Libraries
|
||||||
|
Requires: daxctl-libs%{?_isa} = %{version}-%{release}
|
||||||
|
|
||||||
|
%description -n daxctl-devel
|
||||||
|
The %{name}-devel package contains libraries and header files for
|
||||||
|
developing applications that use %{name}, a library for enumerating
|
||||||
|
"Device DAX" devices. Device DAX is a facility for establishing DAX
|
||||||
|
mappings of performance / feature-differentiated memory.
|
||||||
|
|
||||||
|
|
||||||
%package -n ndctl-libs
|
%package -n ndctl-libs
|
||||||
Summary: Management library for "libnvdimm" subsystem devices (Non-volatile Memory)
|
Summary: Management library for "libnvdimm" subsystem devices (Non-volatile Memory)
|
||||||
License: LGPLv2
|
License: LGPLv2
|
||||||
Group: System Environment/Libraries
|
Group: System Environment/Libraries
|
||||||
|
Requires: daxctl-libs%{?_isa} = %{version}-%{release}
|
||||||
|
|
||||||
|
|
||||||
%description -n ndctl-libs
|
%description -n ndctl-libs
|
||||||
Libraries for %{name}.
|
Libraries for %{name}.
|
||||||
|
|
||||||
|
%package -n daxctl-libs
|
||||||
|
Summary: Management library for "Device DAX" devices
|
||||||
|
License: LGPLv2
|
||||||
|
Group: System Environment/Libraries
|
||||||
|
|
||||||
|
%description -n daxctl-libs
|
||||||
|
Device DAX is a facility for establishing DAX mappings of performance /
|
||||||
|
feature-differentiated memory. daxctl-libs provides an enumeration /
|
||||||
|
control API for these devices.
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q v%{version}
|
%setup -q ndctl-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
echo "52" > version
|
echo "53" > version
|
||||||
./autogen.sh
|
./autogen.sh
|
||||||
%configure --disable-static --enable-local --disable-silent-rules
|
%configure --disable-static --enable-local --disable-silent-rules
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
@ -64,22 +90,45 @@ make check
|
|||||||
|
|
||||||
%postun -n ndctl-libs -p /sbin/ldconfig
|
%postun -n ndctl-libs -p /sbin/ldconfig
|
||||||
|
|
||||||
|
%post -n daxctl-libs -p /sbin/ldconfig
|
||||||
|
|
||||||
|
%postun -n daxctl-libs -p /sbin/ldconfig
|
||||||
|
|
||||||
|
%define bashcompdir %(pkg-config --variable=completionsdir bash-completion)
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%license licenses/GPLv2 licenses/BSD-MIT licenses/CC0
|
%license licenses/GPLv2 licenses/BSD-MIT licenses/CC0
|
||||||
%{_bindir}/ndctl
|
%{_bindir}/ndctl
|
||||||
%{_mandir}/man1/*
|
%{_mandir}/man1/*
|
||||||
|
%{bashcompdir}/
|
||||||
|
|
||||||
%files -n ndctl-libs
|
%files -n ndctl-libs
|
||||||
%doc README.md
|
%doc README.md
|
||||||
%license COPYING licenses/BSD-MIT licenses/CC0
|
%license COPYING licenses/BSD-MIT licenses/CC0
|
||||||
%{_libdir}/libndctl.so.*
|
%{_libdir}/libndctl.so.*
|
||||||
|
|
||||||
|
%files -n daxctl-libs
|
||||||
|
%doc README.md
|
||||||
|
%license COPYING licenses/BSD-MIT licenses/CC0
|
||||||
|
%{_libdir}/libdaxctl.so.*
|
||||||
|
|
||||||
%files -n ndctl-devel
|
%files -n ndctl-devel
|
||||||
%license COPYING
|
%license COPYING
|
||||||
%{_includedir}/ndctl/
|
%{_includedir}/ndctl/
|
||||||
%{_libdir}/libndctl.so
|
%{_libdir}/libndctl.so
|
||||||
%{_libdir}/pkgconfig/libndctl.pc
|
%{_libdir}/pkgconfig/libndctl.pc
|
||||||
|
|
||||||
|
%files -n daxctl-devel
|
||||||
|
%license COPYING
|
||||||
|
%{_includedir}/daxctl/
|
||||||
|
%{_libdir}/libdaxctl.so
|
||||||
|
%{_libdir}/pkgconfig/libdaxctl.pc
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri May 27 2016 Dan Williams <dan.j.williams@intel.com> - 53-1
|
||||||
|
- add daxctl-libs + daxctl-devel packages
|
||||||
|
- add bash completion
|
||||||
|
|
||||||
* Mon Apr 04 2016 Dan Williams <dan.j.williams@intel.com> - 52-1
|
* Mon Apr 04 2016 Dan Williams <dan.j.williams@intel.com> - 52-1
|
||||||
- Initial rpm submission to Fedora
|
- Initial rpm submission to Fedora
|
||||||
|
Loading…
Reference in New Issue
Block a user