From 64e220f4c9bfc14596c7e7a539ba44e27df4091801575dae65fb39a19774dd11 Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Mon, 28 Nov 2011 13:48:09 +0000 Subject: [PATCH] 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 --- libaio.changes | 6 ++++++ libaio.spec | 29 ++++++++++++++++++++--------- 2 files changed, 26 insertions(+), 9 deletions(-) diff --git a/libaio.changes b/libaio.changes index 05198ac..e39da53 100644 --- a/libaio.changes +++ b/libaio.changes @@ -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 diff --git a/libaio.spec b/libaio.spec index d6ee04c..a44fd25 100644 --- a/libaio.spec +++ b/libaio.spec @@ -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.*