OBS User unknown 2009-03-03 22:13:47 +00:00 committed by Git OBS Bridge
parent b50f3c0d54
commit 5408f346c0
2 changed files with 16 additions and 8 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Mar 3 21:53:44 CET 2009 - crrodriguez@suse.de
- remove static libraries
- fix -devel package dependencies
-------------------------------------------------------------------
Wed Dec 10 12:34:56 CET 2008 - olh@suse.de

View File

@ -1,7 +1,7 @@
#
# spec file for package libaio (Version 0.3.104)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# 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
@ -28,7 +28,7 @@ Obsoletes: libaio-64bit
%endif
#
Version: 0.3.104
Release: 140
Release: 141
Summary: Linux-Native Asynchronous I/O Access Library
Source: libaio-%{version}.tar.bz2
Patch1: libaio-%{version}.diff
@ -49,7 +49,7 @@ require the Linux-native async I/O API.
License: LGPL v2.1 or later
Summary: Development Files for Linux-native Asynchronous I/O Access
Group: Development/Libraries/C and C++
Requires: libaio = %{version}
Requires: libaio = %{version} glibc-devel
# bug437293
%ifarch ppc64
Obsoletes: libaio-devel-64bit
@ -69,14 +69,14 @@ with, for the Linux-native asynchronous I/O facility ("async I/O", or
%patch2 -p1
%build
make OPTFLAGS="$RPM_OPT_FLAGS"
%{__make} %{?jobs:-j%jobs} OPTFLAGS="$RPM_OPT_FLAGS"
%install
make install prefix=%{buildroot}/usr libdir=%{buildroot}/%{_lib}
mkdir -p %{buildroot}%{_libdir}
mv %{buildroot}/%{_lib}/libaio.a %{buildroot}%{_libdir}/libaio.a
rm %{buildroot}/%{_lib}/libaio.so
ln -s ../../%{_lib}/libaio.so.1 %{buildroot}%{_libdir}/libaio.so
%{__ln_s} -v /%{_lib}/$(readlink %{buildroot}/%{_lib}/%{name}.so) %{buildroot}%{_libdir}/%{name}.so
%{__rm} -v %{buildroot}/%{_lib}/%{name}.so
%{__rm} -v %{buildroot}/%{_lib}/%{name}.a
%post -p /sbin/ldconfig
@ -90,10 +90,12 @@ ln -s ../../%{_lib}/libaio.so.1 %{buildroot}%{_libdir}/libaio.so
%files devel
%defattr(644,root,root,755)
/usr/include/libaio.h
%_libdir/libaio.a
%_libdir/libaio.so
%changelog
* Tue Mar 03 2009 crrodriguez@suse.de
- remove static libraries
- fix -devel package dependencies
* Wed Dec 10 2008 olh@suse.de
- use Obsoletes: -XXbit only for ppc64 to help solver during distupgrade
(bnc#437293)