File ndctl.spec of Package ndctl
#
# spec file for package ndctl
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2015 Intel Corporation
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%global gitcommit 46ed7cfc9ade
%define lname libndctl6
%define dname libndctl-devel
Name: ndctl
Version: 53.1
Release: 1
Summary: Manage "libnvdimm" subsystem devices (Non-volatile Memory)
License: GPL-2.0
Group: Hardware/Other
Url: https://github.com/pmem/ndctl
# Snapshot tarball can be created using: ./make-git-shapshot.sh [gitcommit]
Source0: %{name}-%{version}.tar.gz
ExclusiveArch: x86_64
BuildRequires: asciidoc
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: libjson-c-devel
BuildRequires: libtool
BuildRequires: pkgconfig
BuildRequires: xmlto
BuildRequires: pkgconfig(libkmod)
BuildRequires: pkgconfig(libudev)
BuildRequires: pkgconfig(uuid)
%description
Utility library for managing the "libnvdimm" subsystem, used for
platform NVDIMM resources like those defined by the ACPI 6.0 NFIT
(NVDIMM Firmware Interface Table).
%package -n %dname
Summary: Development files for libndctl
License: LGPL-2.1+
Group: Development/Libraries/C and C++
Requires: %lname = %version-%release
%description -n %dname
Utility library for managing the "libnvdimm" subsystem, which defines
a kernel device model and control message interface for platform
NVDIMM resources like those defined by the ACPI 6.0 NFIT (NVDIMM
Firmware Interface Table).
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.
%package -n %lname
Summary: Management library for "libnvdimm" subsystem devices (Non-volatile Memory)
License: LGPL-2.1+
Group: System/Libraries
%description -n %lname
Utility library for managing the "libnvdimm" subsystem, which defines
a kernel device model and control message interface for platform
NVDIMM resources like those defined by the ACPI 6.0 NFIT (NVDIMM
Firmware Interface Table).
%prep
%setup
%build
echo "v%{version}" > version
./autogen.sh
%configure --disable-static
make %{?_smp_mflags}
%install
%make_install
find "%buildroot" -type f -name "*.la" -delete
%check
make check
%post -n %lname -p /sbin/ldconfig
%postun -n %lname -p /sbin/ldconfig
%files
%defattr(-,root,root)
%doc licenses/GPLv2 licenses/BSD-MIT licenses/CC0
%{_bindir}/ndctl
%{_mandir}/man1/*
%dir %{_datadir}/bash-completion/
%dir %{_datadir}/bash-completion/completions/
%{_datadir}/bash-completion/completions/ndctl
%files -n %lname
%defattr(-,root,root)
%doc README.md
%doc COPYING licenses/BSD-MIT licenses/CC0
%{_libdir}/libndctl.so.*
%{_libdir}/libdaxctl.so.*
%files -n %dname
%defattr(-,root,root)
%doc COPYING
%{_includedir}/ndctl/
%{_libdir}/libndctl.so
%{_libdir}/pkgconfig/libndctl.pc
%{_includedir}/daxctl/
%{_libdir}/libdaxctl.so
%{_libdir}/pkgconfig/libdaxctl.pc
%changelog