2009-07-08 04:42:22 +02:00
|
|
|
#
|
2010-02-12 07:58:31 +01:00
|
|
|
# spec file for package libatasmart (Version 0.17)
|
2009-07-08 04:42:22 +02:00
|
|
|
#
|
2010-09-16 12:22:13 +02:00
|
|
|
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2009-07-08 04:42:22 +02:00
|
|
|
#
|
|
|
|
# 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
|
2010-02-12 07:58:31 +01:00
|
|
|
Version: 0.17
|
2010-09-16 12:22:13 +02:00
|
|
|
Release: 2
|
|
|
|
License: LGPLv2.1+
|
2009-07-08 04:42:22 +02:00
|
|
|
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
|
2010-09-16 12:22:13 +02:00
|
|
|
Patch0: libatasmart-initialize.patch
|
2009-07-08 04:42:22 +02:00
|
|
|
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.
|
|
|
|
|
2009-09-10 12:55:04 +02:00
|
|
|
%package -n libatasmart4
|
2010-09-16 12:22:13 +02:00
|
|
|
License: LGPLv2.1+
|
2009-07-08 04:42:22 +02:00
|
|
|
Summary: ATA S.M.A.R.T. Disk Health Monitoring Library
|
|
|
|
Group: System/Libraries
|
|
|
|
|
2009-09-10 12:55:04 +02:00
|
|
|
%description -n libatasmart4
|
2009-07-08 04:42:22 +02:00
|
|
|
A small and lightweight parser library for ATA S.M.A.R.T. hard disk
|
|
|
|
health monitoring.
|
|
|
|
|
|
|
|
%package utils
|
2010-09-16 12:22:13 +02:00
|
|
|
License: LGPLv2.1+
|
2009-07-08 04:42:22 +02:00
|
|
|
Summary: ATA S.M.A.R.T. Disk Health Monitoring Library - Utilities
|
|
|
|
Group: Hardware/Other
|
2009-09-10 12:55:04 +02:00
|
|
|
Requires: libatasmart4 = %{version}
|
2009-07-08 04:42:22 +02:00
|
|
|
|
|
|
|
%description utils
|
|
|
|
A small and lightweight parser library for ATA S.M.A.R.T. hard disk
|
|
|
|
health monitoring.
|
|
|
|
|
|
|
|
%package devel
|
2010-09-16 12:22:13 +02:00
|
|
|
License: LGPLv2.1+
|
2009-07-08 04:42:22 +02:00
|
|
|
Summary: ATA S.M.A.R.T. Disk Health Monitoring Library - Development Files
|
|
|
|
Group: Development/Libraries/C and C++
|
2009-09-10 12:55:04 +02:00
|
|
|
Requires: libatasmart4 = %{version}
|
2009-07-08 04:42:22 +02:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
A small and lightweight parser library for ATA S.M.A.R.T. hard disk
|
|
|
|
health monitoring.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2010-09-16 12:22:13 +02:00
|
|
|
%patch0
|
2009-07-08 04:42:22 +02:00
|
|
|
|
|
|
|
%build
|
|
|
|
%configure --disable-static
|
2010-10-31 17:41:26 +01:00
|
|
|
make %{?_smp_mflags}
|
2009-07-08 04:42:22 +02:00
|
|
|
|
|
|
|
%install
|
|
|
|
%makeinstall
|
|
|
|
rm -f %{buildroot}%{_libdir}/*.la
|
2010-02-12 07:58:31 +01:00
|
|
|
# We already package this
|
|
|
|
rm %{buildroot}%{_datadir}/doc/libatasmart/README
|
2009-07-08 04:42:22 +02:00
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
2009-09-10 12:55:04 +02:00
|
|
|
%post -n libatasmart4 -p /sbin/ldconfig
|
2009-07-08 04:42:22 +02:00
|
|
|
|
2009-09-10 12:55:04 +02:00
|
|
|
%postun -n libatasmart4 -p /sbin/ldconfig
|
2009-07-08 04:42:22 +02:00
|
|
|
|
2009-09-10 12:55:04 +02:00
|
|
|
%files -n libatasmart4
|
2009-07-08 04:42:22 +02:00
|
|
|
%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
|
2010-02-12 07:58:31 +01:00
|
|
|
%dir %{_datadir}/vala
|
|
|
|
%dir %{_datadir}/vala/vapi
|
|
|
|
%{_datadir}/vala/vapi/*.vapi
|
2009-07-08 04:42:22 +02:00
|
|
|
|
|
|
|
%changelog
|