Accepting request 105387 from devel:libraries:c_c++

- fix typo versoin/version 

- patch license to follow spdx.org standard

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

OBS-URL: https://build.opensuse.org/request/show/105387
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libaio?expand=0&rev=23
This commit is contained in:
Stephan Kulow 2012-02-17 11:00:47 +00:00 committed by Git OBS Bridge
commit db18411a0c
2 changed files with 38 additions and 12 deletions

View File

@ -1,3 +1,19 @@
-------------------------------------------------------------------
Thu Feb 16 10:56:49 UTC 2012 - mvyskocil@suse.cz
- fix typo versoin/version
-------------------------------------------------------------------
Mon Feb 13 10:48:23 UTC 2012 - coolo@suse.com
- patch license to follow spdx.org standard
-------------------------------------------------------------------
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 Mon Nov 28 01:36:31 CET 2011 - ro@suse.de

View File

@ -1,7 +1,7 @@
# #
# spec file for package libaio # spec file for package libaio
# #
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -15,21 +15,19 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/ # Please submit bugfixes or comments via http://bugs.opensuse.org/
# #
# norootforbuild
Name: libaio Name: libaio
License: LGPLv2.1+ %define lname libaio1
Group: System/Libraries
AutoReqProv: on
# bug437293 # bug437293
%ifarch ppc64 %ifarch ppc64
Obsoletes: libaio-64bit Obsoletes: libaio-64bit
%endif %endif
# #
Version: 0.3.109 Version: 0.3.109
Release: 1 Release: 0
Summary: Linux-Native Asynchronous I/O Access Library Summary: Linux-Native Asynchronous I/O Access Library
License: LGPL-2.1+
Group: Development/Libraries/C and C++
Url: http://kernel.org/pub/linux/libs/aio/ Url: http://kernel.org/pub/linux/libs/aio/
Source: libaio-%{version}.tar.bz2 Source: libaio-%{version}.tar.bz2
Source2: baselibs.conf Source2: baselibs.conf
@ -49,13 +47,25 @@ POSIX async I/O facility requires this library to provide
kernel-accelerated async I/O capabilities, as do applications that kernel-accelerated async I/O capabilities, as do applications that
require the Linux-native async I/O API. 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 %package devel
License: LGPLv2.1+
Summary: Development Files for Linux-native Asynchronous I/O Access Summary: Development Files for Linux-native Asynchronous I/O Access
Group: Development/Libraries/C and C++ Group: Development/Libraries/C and C++
Requires: libaio = %{version} glibc-devel Requires: %lname = %version, glibc-devel
# bug437293 # bug437293
%ifarch ppc64 %ifarch ppc64
Obsoletes: libaio-devel-64bit Obsoletes: libaio-devel-64bit
@ -89,11 +99,11 @@ ln -fs "${t##*/}" "%buildroot/%_lib/libaio.so.1"
t=$(readlink -f "%buildroot/%_libdir/libaio.so") t=$(readlink -f "%buildroot/%_libdir/libaio.so")
ln -fs "${t#%buildroot}" "%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) %defattr(644,root,root,755)
%doc COPYING TODO %doc COPYING TODO
%attr(0755,root,root) /%{_lib}/libaio.* %attr(0755,root,root) /%{_lib}/libaio.*