OBS User unknown 2007-08-02 20:54:08 +00:00 committed by Git OBS Bridge
parent d32fabe609
commit 81e1927766
3 changed files with 46 additions and 22 deletions

11
libaio-optflags.diff Normal file
View 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=

View File

@ -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

View File

@ -1,24 +1,25 @@
#
# 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
# 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
Name: libaio
License: LGPL
License: LGPL v2 or later
Group: System/Libraries
Autoreqprov: on
Version: 0.3.104
Release: 2
Summary: Linux-Native Asynchronous I/O access Library
Release: 64
Summary: Linux-Native Asynchronous I/O Access Library
Source: libaio-%{version}.tar.bz2
Patch: libaio-%{version}.diff
Patch1: libaio-%{version}.diff
Patch2: libaio-optflags.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%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
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 which
kernel-accelerated async I/O capabilities, as do applications that
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
%setup -q
%patch
%patch1
%patch2 -p1
%build
make
make OPTFLAGS="$RPM_OPT_FLAGS"
%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
@ -60,8 +65,7 @@ make install prefix=$RPM_BUILD_ROOT/usr libdir=$RPM_BUILD_ROOT%{_libdir}
%files
%defattr(644,root,root,755)
%doc COPYING TODO
%attr(0755,root,root) %_libdir/libaio.so.1
%attr(0755,root,root) %_libdir/libaio.so.1.0.1
%attr(0755,root,root) /%{_lib}/libaio.*
%files devel
%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.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
- converted neededforbuild to BuildRequires
* Thu May 05 2005 - schwab@suse.de