This commit is contained in:
parent
d32fabe609
commit
81e1927766
11
libaio-optflags.diff
Normal file
11
libaio-optflags.diff
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
--- libaio-0.3.104/src/Makefile 2007/08/02 10:44:05 1.1
|
||||||
|
+++ libaio-0.3.104/src/Makefile 2007/08/02 10:44:31
|
||||||
|
@@ -3,7 +3,7 @@
|
||||||
|
libdir=$(prefix)/lib
|
||||||
|
|
||||||
|
ARCH := $(shell uname -m | sed -e s/i.86/i386/)
|
||||||
|
-CFLAGS := -nostdlib -nostartfiles -Wall -I. -g -fomit-frame-pointer -O2 -fPIC
|
||||||
|
+CFLAGS := -nostdlib -nostartfiles -Wall -I. -g -fomit-frame-pointer -O2 -fPIC $(OPTFLAGS)
|
||||||
|
SO_CFLAGS=-shared $(CFLAGS)
|
||||||
|
L_CFLAGS=$(CFLAGS)
|
||||||
|
LINK_FLAGS=
|
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Aug 2 12:50:35 CEST 2007 - hare@suse.de
|
||||||
|
|
||||||
|
- Use RPM_OPT_FLAGS
|
||||||
|
- Fix installation directories
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Jan 25 21:37:22 CET 2006 - mls@suse.de
|
Wed Jan 25 21:37:22 CET 2006 - mls@suse.de
|
||||||
|
|
||||||
|
33
libaio.spec
33
libaio.spec
@ -1,24 +1,25 @@
|
|||||||
#
|
#
|
||||||
# spec file for package libaio (Version 0.3.104)
|
# spec file for package libaio (Version 0.3.104)
|
||||||
#
|
#
|
||||||
# Copyright (c) 2005 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||||
# This file and all modifications and additions to the pristine
|
# This file and all modifications and additions to the pristine
|
||||||
# package are under the same license as the package itself.
|
# package are under the same license as the package itself.
|
||||||
#
|
#
|
||||||
# Please submit bugfixes or comments via http://www.suse.de/feedback/
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
|
|
||||||
# norootforbuild
|
# norootforbuild
|
||||||
|
|
||||||
Name: libaio
|
Name: libaio
|
||||||
License: LGPL
|
License: LGPL v2 or later
|
||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
Autoreqprov: on
|
Autoreqprov: on
|
||||||
Version: 0.3.104
|
Version: 0.3.104
|
||||||
Release: 2
|
Release: 64
|
||||||
Summary: Linux-Native Asynchronous I/O access Library
|
Summary: Linux-Native Asynchronous I/O Access Library
|
||||||
Source: libaio-%{version}.tar.bz2
|
Source: libaio-%{version}.tar.bz2
|
||||||
Patch: libaio-%{version}.diff
|
Patch1: libaio-%{version}.diff
|
||||||
|
Patch2: libaio-optflags.diff
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -26,7 +27,7 @@ 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
|
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
|
facility. This library provides the Linux-native API for async I/O. The
|
||||||
POSIX async I/O facility requires this library to provide
|
POSIX async I/O facility requires this library to provide
|
||||||
kernel-accelerated async I/O capabilities, as do applications which
|
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.
|
||||||
|
|
||||||
|
|
||||||
@ -45,13 +46,17 @@ with, for the Linux-native asynchronous I/O facility ("async I/O", or
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
%patch
|
%patch1
|
||||||
|
%patch2 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
make
|
make OPTFLAGS="$RPM_OPT_FLAGS"
|
||||||
|
|
||||||
%install
|
%install
|
||||||
make install prefix=$RPM_BUILD_ROOT/usr libdir=$RPM_BUILD_ROOT%{_libdir}
|
make install prefix=%{buildroot}/usr libdir=%{buildroot}/%{_lib}
|
||||||
|
mkdir -p %{buildroot}%{_libdir}
|
||||||
|
mv %{buildroot}/%{_lib}/libaio.a %{buildroot}%{_libdir}/libaio.a
|
||||||
|
mv %{buildroot}/%{_lib}/libaio.so %{buildroot}%{_libdir}/libaio.so
|
||||||
|
|
||||||
%post -p /sbin/ldconfig
|
%post -p /sbin/ldconfig
|
||||||
|
|
||||||
@ -60,8 +65,7 @@ make install prefix=$RPM_BUILD_ROOT/usr libdir=$RPM_BUILD_ROOT%{_libdir}
|
|||||||
%files
|
%files
|
||||||
%defattr(644,root,root,755)
|
%defattr(644,root,root,755)
|
||||||
%doc COPYING TODO
|
%doc COPYING TODO
|
||||||
%attr(0755,root,root) %_libdir/libaio.so.1
|
%attr(0755,root,root) /%{_lib}/libaio.*
|
||||||
%attr(0755,root,root) %_libdir/libaio.so.1.0.1
|
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr(644,root,root,755)
|
%defattr(644,root,root,755)
|
||||||
@ -69,7 +73,10 @@ make install prefix=$RPM_BUILD_ROOT/usr libdir=$RPM_BUILD_ROOT%{_libdir}
|
|||||||
%_libdir/libaio.a
|
%_libdir/libaio.a
|
||||||
%_libdir/libaio.so
|
%_libdir/libaio.so
|
||||||
|
|
||||||
%changelog -n libaio
|
%changelog
|
||||||
|
* Thu Aug 02 2007 - hare@suse.de
|
||||||
|
- Use RPM_OPT_FLAGS
|
||||||
|
- Fix installation directories
|
||||||
* Wed Jan 25 2006 - mls@suse.de
|
* Wed Jan 25 2006 - mls@suse.de
|
||||||
- converted neededforbuild to BuildRequires
|
- converted neededforbuild to BuildRequires
|
||||||
* Thu May 05 2005 - schwab@suse.de
|
* Thu May 05 2005 - schwab@suse.de
|
||||||
|
Loading…
x
Reference in New Issue
Block a user