OBS User unknown 2009-03-24 17:40:34 +00:00 committed by Git OBS Bridge
parent a9000ef0b8
commit 559f6c1423
2 changed files with 16 additions and 18 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Mar 24 15:28:47 CET 2009 - crrodriguez@suse.de
- remove static libraries
-------------------------------------------------------------------
Wed Jan 7 12:34:56 CET 2009 - olh@suse.de

View File

@ -21,7 +21,7 @@
Name: sysfsutils
Summary: System Utilities Package / Libsysfs
Version: 2.1.0
Release: 127
Release: 129
License: LGPL v2.1 or later
Group: System/Libraries
Url: http://linux-diag.sourceforge.net
@ -49,25 +49,19 @@ Authors:
Mohan Kumar <mohan@in.ibm.com>
%prep
%setup
%setup -q
%build
CFLAGS="-fPIC $RPM_OPT_FLAGS" \
./configure \
--prefix=%{_prefix} \
--libdir=/%{_lib} \
--infodir=%{_infodir} \
--mandir=%{_mandir}
make
%configure --disable-static --with-pic --libdir=/%{_lib}
%{__make} %{?jobs:-j%jobs}
%install
make install DESTDIR=%{buildroot}
# create devel symlink in /usr
mkdir -p %{buildroot}%{_libdir}
(cd %{buildroot}%{_libdir} && ln -s ../../%{_lib}/libsysfs.so.? libsysfs.so)
(cd %{buildroot} && mv %{_lib}/libsysfs.a %{buildroot}%{_libdir})
(cd %{buildroot} && rm -f %{_lib}/libsysfs.la)
(cd %{buildroot} && rm -f %{_lib}/libsysfs.so)
%{__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
# don't install the tools
rm -f %{buildroot}/%{_bindir}/dlist_test
rm -f %{buildroot}/%{_bindir}/get_device
@ -75,11 +69,9 @@ rm -f %{buildroot}/%{_bindir}/get_driver
rm -f %{buildroot}/%{_bindir}/get_module
rm -f %{buildroot}/%{_bindir}/testlibsysfs
%post
/sbin/ldconfig
%post -p /sbin/ldconfig
%postun
/sbin/ldconfig
%postun -p /sbin/ldconfig
%clean
rm -rf $RPM_BUILD_ROOT
@ -93,10 +85,11 @@ rm -rf $RPM_BUILD_ROOT
%dir %{_includedir}/sysfs
%{_includedir}/sysfs/libsysfs.h
%{_includedir}/sysfs/dlist.h
%{_libdir}/libsysfs.a
%{_libdir}/libsysfs.so
%changelog
* Tue Mar 24 2009 crrodriguez@suse.de
- remove static libraries
* Wed Jan 07 2009 olh@suse.de
- obsolete old -XXbit packages (bnc#437293)
* Tue May 27 2008 hare@suse.de