2007-01-16 00:21:21 +01:00
|
|
|
#
|
2011-03-24 09:43:42 +01:00
|
|
|
# spec file for package libaio
|
2007-01-16 00:21:21 +01:00
|
|
|
#
|
2011-03-24 09:43:42 +01:00
|
|
|
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-16 00:21:21 +01:00
|
|
|
#
|
2008-12-05 15:37:12 +01:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2007-08-02 22:54:08 +02:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
2007-01-16 00:21:21 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2008-04-10 14:22:11 +02:00
|
|
|
|
2007-08-02 22:54:08 +02:00
|
|
|
Name: libaio
|
2011-11-28 14:48:09 +01:00
|
|
|
%define lname libaio1
|
2010-02-18 17:06:37 +01:00
|
|
|
License: LGPLv2.1+
|
2011-11-28 14:48:09 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2008-12-05 15:37:12 +01:00
|
|
|
# bug437293
|
|
|
|
%ifarch ppc64
|
|
|
|
Obsoletes: libaio-64bit
|
|
|
|
%endif
|
|
|
|
#
|
2011-03-23 14:22:01 +01:00
|
|
|
Version: 0.3.109
|
2011-03-24 09:43:42 +01:00
|
|
|
Release: 1
|
2007-08-02 22:54:08 +02:00
|
|
|
Summary: Linux-Native Asynchronous I/O Access Library
|
2011-11-28 14:48:09 +01:00
|
|
|
URL: http://kernel.org/pub/linux/libs/aio/
|
2007-08-02 22:54:08 +02:00
|
|
|
Source: libaio-%{version}.tar.bz2
|
2010-02-18 17:06:37 +01:00
|
|
|
Source2: baselibs.conf
|
2007-08-02 22:54:08 +02:00
|
|
|
Patch2: libaio-optflags.diff
|
2009-09-10 12:56:01 +02:00
|
|
|
Patch3: 00_arches.patch
|
2010-02-18 17:06:37 +01:00
|
|
|
Patch4: 00_arches_sh.patch
|
|
|
|
Patch5: 01_link_libgcc.patch
|
|
|
|
Patch6: 02_libdevdir.patch
|
|
|
|
Patch7: 03_man_errors.patch
|
2007-08-02 22:54:08 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2007-01-16 00:21:21 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
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
|
2007-08-02 22:54:08 +02:00
|
|
|
kernel-accelerated async I/O capabilities, as do applications that
|
2007-01-16 00:21:21 +01:00
|
|
|
require the Linux-native async I/O API.
|
|
|
|
|
2011-11-28 14:48:09 +01:00
|
|
|
%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
|
2007-01-16 00:21:21 +01:00
|
|
|
|
2011-11-28 14:48:09 +01:00
|
|
|
%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.
|
2007-01-16 00:21:21 +01:00
|
|
|
|
|
|
|
%package devel
|
2007-08-02 22:54:08 +02:00
|
|
|
Summary: Development Files for Linux-native Asynchronous I/O Access
|
|
|
|
Group: Development/Libraries/C and C++
|
2011-11-28 14:48:09 +01:00
|
|
|
Requires: %lname = %versoin, glibc-devel
|
2008-12-05 15:37:12 +01:00
|
|
|
# bug437293
|
|
|
|
%ifarch ppc64
|
|
|
|
Obsoletes: libaio-devel-64bit
|
|
|
|
%endif
|
|
|
|
#
|
2007-01-16 00:21:21 +01:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
This package provides header files to include, and libraries to link
|
|
|
|
with, for the Linux-native asynchronous I/O facility ("async I/O", or
|
|
|
|
"aio").
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2007-08-02 22:54:08 +02:00
|
|
|
%patch2 -p1
|
2010-02-18 17:06:37 +01:00
|
|
|
%patch -p1 -P 3 -P 4 -P 5 -P 6 -P 7
|
2007-01-16 00:21:21 +01:00
|
|
|
|
|
|
|
%build
|
2011-10-05 17:26:58 +02:00
|
|
|
make %{?_smp_mflags} CC="%__cc" OPTFLAGS="$RPM_OPT_FLAGS"
|
2007-01-16 00:21:21 +01:00
|
|
|
|
|
|
|
%install
|
2007-08-02 22:54:08 +02:00
|
|
|
make install prefix=%{buildroot}/usr libdir=%{buildroot}/%{_lib}
|
2011-11-28 10:51:57 +01:00
|
|
|
%if "%_lib" == "lib64"
|
2010-02-18 17:06:37 +01:00
|
|
|
mv "%buildroot/usr/lib" "%buildroot/usr/lib64"
|
|
|
|
%endif
|
|
|
|
rm -f "%buildroot/%_libdir"/*.a
|
|
|
|
# Strip dumb /usr/src/... off
|
|
|
|
t=$(readlink -f "%buildroot/%_lib/libaio.so.1")
|
|
|
|
ln -fs "${t##*/}" "%buildroot/%_lib/libaio.so.1"
|
2010-02-18 17:18:16 +01:00
|
|
|
t=$(readlink -f "%buildroot/%_libdir/libaio.so")
|
|
|
|
ln -fs "${t#%buildroot}" "%buildroot/%_libdir/libaio.so"
|
2007-01-16 00:21:21 +01:00
|
|
|
|
2011-11-28 14:48:09 +01:00
|
|
|
%post -n %lname -p /sbin/ldconfig
|
2007-01-16 00:21:21 +01:00
|
|
|
|
2011-11-28 14:48:09 +01:00
|
|
|
%postun -n %lname -p /sbin/ldconfig
|
2007-01-16 00:21:21 +01:00
|
|
|
|
2011-11-28 14:48:09 +01:00
|
|
|
%files -n %lname
|
2007-01-16 00:21:21 +01:00
|
|
|
%defattr(644,root,root,755)
|
|
|
|
%doc COPYING TODO
|
2007-08-02 22:54:08 +02:00
|
|
|
%attr(0755,root,root) /%{_lib}/libaio.*
|
2007-01-16 00:21:21 +01:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(644,root,root,755)
|
|
|
|
/usr/include/libaio.h
|
|
|
|
%_libdir/libaio.so
|
2008-04-10 14:22:11 +02:00
|
|
|
|
2007-08-02 22:54:08 +02:00
|
|
|
%changelog
|