libatasmart/libatasmart.spec

101 lines
2.7 KiB
RPMSpec

#
# spec file for package libatasmart (Version 0.13)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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/
#
# norootforbuild
Name: libatasmart
Version: 0.13
Release: 2
License: LGPL v2.1 or later
Summary: ATA S.M.A.R.T. Disk Health Monitoring Library
Url: http://git.0pointer.de/?p=libatasmart.git;a=summary
Group: System/Libraries
Source: %{name}-%{version}.tar.bz2
BuildRequires: libudev-devel
BuildRequires: pkgconfig
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
A small and lightweight parser library for ATA S.M.A.R.T. hard disk
health monitoring.
%package -n libatasmart0
License: LGPL v2.1 or later
Summary: ATA S.M.A.R.T. Disk Health Monitoring Library
Group: System/Libraries
%description -n libatasmart0
A small and lightweight parser library for ATA S.M.A.R.T. hard disk
health monitoring.
%package utils
License: LGPL v2.1 or later
Summary: ATA S.M.A.R.T. Disk Health Monitoring Library - Utilities
Group: Hardware/Other
Requires: libatasmart0 = %{version}
%description utils
A small and lightweight parser library for ATA S.M.A.R.T. hard disk
health monitoring.
%package devel
License: LGPL v2.1 or later
Summary: ATA S.M.A.R.T. Disk Health Monitoring Library - Development Files
Group: Development/Libraries/C and C++
Requires: libatasmart0 = %{version}
%description devel
A small and lightweight parser library for ATA S.M.A.R.T. hard disk
health monitoring.
%prep
%setup -q
%build
%configure --disable-static
make %{?jobs:-j%jobs}
%install
%makeinstall
rm -f %{buildroot}%{_libdir}/*.la
%clean
rm -rf %{buildroot}
%post -n libatasmart0 -p /sbin/ldconfig
%postun -n libatasmart0 -p /sbin/ldconfig
%files -n libatasmart0
%defattr(-,root,root)
%doc README LGPL
%{_libdir}/libatasmart.so.*
%files utils
%defattr(-,root,root)
%{_sbindir}/sk*
%files devel
%defattr(-,root,root)
%doc blob-examples/
%{_includedir}/atasmart.h
%{_libdir}/libatasmart.so
%{_libdir}/pkgconfig/libatasmart.pc
%changelog