2007-01-15 23:38:31 +00:00
|
|
|
#
|
|
|
|
# spec file for package sysfsutils (Version 2.1.0)
|
|
|
|
#
|
2007-01-16 16:34:51 +00:00
|
|
|
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-15 23:38:31 +00:00
|
|
|
# This file and all modifications and additions to the pristine
|
|
|
|
# package are under the same license as the package itself.
|
|
|
|
#
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
|
|
|
Name: sysfsutils
|
|
|
|
Summary: System Utilities Package / Libsysfs
|
|
|
|
Version: 2.1.0
|
2007-01-16 16:34:51 +00:00
|
|
|
Release: 23
|
|
|
|
License: GNU Library General Public License v. 2.0 and 2.1 (LGPL)
|
2007-01-15 23:38:31 +00:00
|
|
|
Group: System/Libraries
|
|
|
|
URL: http://linux-diag.sourceforge.net
|
|
|
|
Source: http://aleron.dl.sourceforge.net/sourceforge/linux-diag/%{name}-%{version}.tar.gz
|
|
|
|
Provides: libsysfs
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
|
|
|
This package's purpose is to provide a library for interfacing with the
|
|
|
|
kernel's sys filesystem mounted at /sys. The libray 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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Ananth Mavinakayanahalli <ananth@in.ibm.com>
|
|
|
|
Daniel Stekloff <dsteklof@us.ibm.com>
|
|
|
|
Mohan Kumar <mohan@in.ibm.com>
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup
|
|
|
|
|
|
|
|
%build
|
|
|
|
CFLAGS="-fPIC $RPM_OPT_FLAGS" \
|
|
|
|
./configure \
|
|
|
|
--prefix=%{_prefix} \
|
|
|
|
--libdir=/%{_lib} \
|
|
|
|
--infodir=%{_infodir} \
|
|
|
|
--mandir=%{_mandir}
|
|
|
|
make
|
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
make install DESTDIR=%{buildroot}
|
|
|
|
# create devel symlink in /usr
|
|
|
|
mkdir -p %{buildroot}%{_libdir}
|
2007-01-16 16:34:51 +00:00
|
|
|
(cd %{buildroot}%{_libdir} && ln -s ../../%{_lib}/libsysfs.so.? libsysfs.so)
|
2007-01-15 23:38:31 +00:00
|
|
|
# don't install the tools
|
|
|
|
rm -rf %{buildroot}/%{_bindir}
|
|
|
|
rm -rf %{buildroot}/%{_mandir}
|
|
|
|
# don't install static lib
|
2007-01-16 16:34:51 +00:00
|
|
|
rm -f %{buildroot}/%{_lib}/libsysfs.{a,la,so}
|
|
|
|
|
|
|
|
%post
|
|
|
|
%run_ldconfig
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%run_ldconfig
|
2007-01-15 23:38:31 +00:00
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%dir %{_includedir}/sysfs
|
|
|
|
%{_includedir}/sysfs/libsysfs.h
|
|
|
|
%{_includedir}/sysfs/dlist.h
|
|
|
|
%{_libdir}/libsysfs.so
|
2007-01-16 16:34:51 +00:00
|
|
|
/%{_lib}/libsysfs.so.*
|
2007-01-15 23:38:31 +00:00
|
|
|
%doc README ChangeLog
|
|
|
|
|
|
|
|
%changelog -n sysfsutils
|
2007-01-16 16:34:51 +00:00
|
|
|
* Tue Jan 16 2007 - hare@suse.de
|
|
|
|
- Run ldconfig on %%post (#204063)
|
|
|
|
- Do not duplicate .so symlink (#235332)
|
2007-01-15 23:38:31 +00:00
|
|
|
* Thu Aug 31 2006 - kay.sievers@suse.de
|
|
|
|
- update to version 2.1.0
|
|
|
|
- provide only the shared lib, not the static lib, not the tools
|
|
|
|
* Thu Mar 09 2006 - hare@suse.de
|
|
|
|
- Do not install testlibsysfs (#149981 - LTC21580)
|
|
|
|
* Wed Jan 25 2006 - mls@suse.de
|
|
|
|
- converted neededforbuild to BuildRequires
|
|
|
|
* Thu Jan 12 2006 - hmacht@suse.de
|
|
|
|
- also substitude libtool path in *.la file when moving libraries
|
|
|
|
(bug #141161)
|
|
|
|
* Fri Jun 24 2005 - snwint@suse.de
|
|
|
|
- move shared libs to /lib
|
|
|
|
* Fri Jun 10 2005 - hare@suse.de
|
|
|
|
- initial release 1.3.0; split off from udev rpm.
|