2007-01-15 23:38:31 +00:00
|
|
|
#
|
|
|
|
# spec file for package sysfsutils (Version 2.1.0)
|
|
|
|
#
|
2010-01-14 15:38:03 +00:00
|
|
|
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-15 23:38:31 +00:00
|
|
|
#
|
2009-01-09 01:03:57 +00: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.
|
|
|
|
|
2007-01-15 23:38:31 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2008-04-10 13:33:41 +00:00
|
|
|
|
2007-01-15 23:38:31 +00:00
|
|
|
Name: sysfsutils
|
|
|
|
Summary: System Utilities Package / Libsysfs
|
|
|
|
Version: 2.1.0
|
2010-07-30 12:56:19 +00:00
|
|
|
Release: 137
|
|
|
|
License: LGPLv2.1+
|
2007-01-15 23:38:31 +00:00
|
|
|
Group: System/Libraries
|
2008-04-10 13:33:41 +00:00
|
|
|
Url: http://linux-diag.sourceforge.net
|
2007-01-15 23:38:31 +00:00
|
|
|
Source: http://aleron.dl.sourceforge.net/sourceforge/linux-diag/%{name}-%{version}.tar.gz
|
2010-01-14 15:38:03 +00:00
|
|
|
Source2: baselibs.conf
|
2007-01-15 23:38:31 +00:00
|
|
|
Provides: libsysfs
|
2009-01-09 01:03:57 +00:00
|
|
|
# bug437293
|
|
|
|
%ifarch ppc64
|
|
|
|
Obsoletes: sysfsutils-64bit
|
|
|
|
%endif
|
|
|
|
#
|
2007-01-15 23:38:31 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
|
|
|
This package's purpose is to provide a library for interfacing with the
|
2010-09-08 14:00:06 +00:00
|
|
|
kernel's sys filesystem mounted at /sys. The library was an attempt to
|
2007-01-15 23:38:31 +00:00
|
|
|
create a stable interface to sysfs, but it failed. It is still provided
|
|
|
|
for the current users, but no new software should use this library.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Ananth Mavinakayanahalli <ananth@in.ibm.com>
|
|
|
|
Daniel Stekloff <dsteklof@us.ibm.com>
|
|
|
|
Mohan Kumar <mohan@in.ibm.com>
|
|
|
|
|
2010-09-08 14:00:06 +00:00
|
|
|
%package devel
|
|
|
|
Summary: Development files for libsysfs
|
|
|
|
License: LGPLv2.1+
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
Libsysfs' purpose is to provide a library for interfacing with the
|
|
|
|
kernel's sys filesystem mounted at /sys. The library was an attempt to
|
|
|
|
create a stable interface to sysfs, but it failed. It is still provided
|
|
|
|
for the current users, but no new software should use this library.
|
|
|
|
|
|
|
|
This package contains the development files for libsysfs.
|
|
|
|
|
2007-01-15 23:38:31 +00:00
|
|
|
%prep
|
2009-03-24 17:40:34 +00:00
|
|
|
%setup -q
|
2007-01-15 23:38:31 +00:00
|
|
|
|
|
|
|
%build
|
2009-03-24 17:40:34 +00:00
|
|
|
%configure --disable-static --with-pic --libdir=/%{_lib}
|
2010-07-30 12:56:19 +00:00
|
|
|
%{__make} %{?_smp_mflags}
|
2007-01-15 23:38:31 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
make install DESTDIR=%{buildroot}
|
|
|
|
# create devel symlink in /usr
|
|
|
|
mkdir -p %{buildroot}%{_libdir}
|
2009-03-24 17:40:34 +00:00
|
|
|
%{__ln_s} -v /%{_lib}/$(readlink %{buildroot}/%{_lib}/libsysfs.so) %{buildroot}%{_libdir}/libsysfs.so
|
|
|
|
%{__rm} -v %{buildroot}/%{_lib}/libsysfs.so
|
|
|
|
%{__rm} -v %{buildroot}/%{_lib}/libsysfs.la
|
2007-01-15 23:38:31 +00:00
|
|
|
# don't install the tools
|
2008-06-25 21:54:17 +00:00
|
|
|
rm -f %{buildroot}/%{_bindir}/dlist_test
|
|
|
|
rm -f %{buildroot}/%{_bindir}/get_device
|
|
|
|
rm -f %{buildroot}/%{_bindir}/get_driver
|
|
|
|
rm -f %{buildroot}/%{_bindir}/get_module
|
|
|
|
rm -f %{buildroot}/%{_bindir}/testlibsysfs
|
2007-01-16 16:34:51 +00:00
|
|
|
|
2009-03-24 17:40:34 +00:00
|
|
|
%post -p /sbin/ldconfig
|
2007-01-16 16:34:51 +00:00
|
|
|
|
2009-03-24 17:40:34 +00:00
|
|
|
%postun -p /sbin/ldconfig
|
2007-01-15 23:38:31 +00:00
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2008-06-25 21:54:17 +00:00
|
|
|
/usr/bin/systool
|
|
|
|
%{_mandir}/man1/systool.1.gz
|
|
|
|
/%{_lib}/libsysfs.so.*
|
|
|
|
%doc README ChangeLog
|
2010-09-08 14:00:06 +00:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
2007-01-15 23:38:31 +00:00
|
|
|
%dir %{_includedir}/sysfs
|
|
|
|
%{_includedir}/sysfs/libsysfs.h
|
|
|
|
%{_includedir}/sysfs/dlist.h
|
|
|
|
%{_libdir}/libsysfs.so
|
|
|
|
|
2008-04-10 13:33:41 +00:00
|
|
|
%changelog
|