Accepting request 93989 from home:jengelh:branches:devel:libraries:c_c++

- Remove redundant/unwanted tags/section (cf. specfile guidelines)
- Employ shlib packaging

OBS-URL: https://build.opensuse.org/request/show/93989
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libaio?expand=0&rev=17
This commit is contained in:
Pavol Rusnak 2011-11-28 13:48:09 +00:00 committed by Git OBS Bridge
parent 06425b316e
commit 64e220f4c9
2 changed files with 26 additions and 9 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Nov 28 11:50:13 UTC 2011 - jengelh@medozas.de
- Remove redundant/unwanted tags/section (cf. specfile guidelines)
- Employ shlib packaging
-------------------------------------------------------------------
Mon Nov 28 01:36:31 CET 2011 - ro@suse.de

View File

@ -15,13 +15,12 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: libaio
%define lname libaio1
License: LGPLv2.1+
Group: System/Libraries
AutoReqProv: on
Group: Development/Libraries/C and C++
# bug437293
%ifarch ppc64
Obsoletes: libaio-64bit
@ -30,7 +29,7 @@ Obsoletes: libaio-64bit
Version: 0.3.109
Release: 1
Summary: Linux-Native Asynchronous I/O Access Library
Url: http://kernel.org/pub/linux/libs/aio/
URL: http://kernel.org/pub/linux/libs/aio/
Source: libaio-%{version}.tar.bz2
Source2: baselibs.conf
Patch2: libaio-optflags.diff
@ -49,13 +48,25 @@ POSIX async I/O facility requires this library to provide
kernel-accelerated async I/O capabilities, as do applications that
require the Linux-native async I/O API.
%package -n %lname
Summary: Linux-Native Asynchronous I/O Access Library
Group: System/Libraries
# O/P added 2011-11-27
Obsoletes: libaio < %version-%release
Provides: libaio = %version-%release
%description -n %lname
The Linux-native asynchronous I/O facility ("async I/O", or "aio") has
a richer API and capability set than the simple POSIX async I/O
facility. This library provides the Linux-native API for async I/O. The
POSIX async I/O facility requires this library to provide
kernel-accelerated async I/O capabilities, as do applications that
require the Linux-native async I/O API.
%package devel
License: LGPLv2.1+
Summary: Development Files for Linux-native Asynchronous I/O Access
Group: Development/Libraries/C and C++
Requires: libaio = %{version} glibc-devel
Requires: %lname = %versoin, glibc-devel
# bug437293
%ifarch ppc64
Obsoletes: libaio-devel-64bit
@ -89,11 +100,11 @@ ln -fs "${t##*/}" "%buildroot/%_lib/libaio.so.1"
t=$(readlink -f "%buildroot/%_libdir/libaio.so")
ln -fs "${t#%buildroot}" "%buildroot/%_libdir/libaio.so"
%post -p /sbin/ldconfig
%post -n %lname -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%postun -n %lname -p /sbin/ldconfig
%files
%files -n %lname
%defattr(644,root,root,755)
%doc COPYING TODO
%attr(0755,root,root) /%{_lib}/libaio.*