ABF is currently being migrated to new servers. Pull requests are currently not operational due to git upgrade, they will be fixed as soon as possible.
avatar
Rosa has added a06bb8cbaf
initial: add from SRPM
... ... --- /dev/null
... ... +++ b/.abf.yml
... ... @@ -0,0 +1,2 @@
1
sources:
2
  "libaio-0.3.109.tar.bz2": b772e567e7089bb3ca405b16370f8b1a4997c0b3
view file @ a06bb8cbaf
... ... --- /dev/null
... ... +++ b/libaio-install-to-slash.patch
... ... @@ -0,0 +1,30 @@
1
diff -up libaio-0.3.107/src/Makefile.orig libaio-0.3.107/src/Makefile
2
--- libaio-0.3.107/src/Makefile.orig	2009-01-20 10:07:31.520105235 -0500
3
+++ libaio-0.3.107/src/Makefile	2009-01-20 10:08:51.199104930 -0500
4
@@ -1,6 +1,7 @@
5
 prefix=/usr
6
-includedir=$(prefix)/include
7
-libdir=$(prefix)/lib
8
+includedir=/usr/include
9
+libdir=/usr/lib
10
+usrlibdir=/usr/lib
11
 
12
 ARCH := $(shell uname -m | sed -e s/i.86/i386/)
13
 CFLAGS := -nostdlib -nostartfiles -Wall -I. -g -fomit-frame-pointer -O2 -fPIC
14
@@ -51,11 +52,11 @@ $(libname): $(libaio_sobjs) libaio.map
15
 	$(CC) $(SO_CFLAGS) -Wl,--version-script=libaio.map -Wl,-soname=$(soname) -o $@ $(libaio_sobjs) $(LINK_FLAGS)
16
 
17
 install: $(all_targets)
18
-	install -D -m 644 libaio.h $(includedir)/libaio.h
19
-	install -D -m 644 libaio.a $(libdir)/libaio.a
20
-	install -D -m 755 $(libname) $(libdir)/$(libname)
21
-	ln -sf $(libname) $(libdir)/$(soname)
22
-	ln -sf $(libname) $(libdir)/libaio.so
23
+	install -D -m 644 libaio.h $(destdir)$(includedir)/libaio.h
24
+	install -D -m 644 libaio.a $(destdir)$(usrlibdir)/libaio.a
25
+	install -D -m 755 $(libname) $(destdir)$(libdir)/$(libname)
26
+	ln -sf $(libdir)/$(libname) $(destdir)$(libdir)/$(soname)
27
+	ln -sf $(libdir)/$(libname) $(destdir)$(usrlibdir)/libaio.so
28
 
29
 $(libaio_objs): libaio.h
30
 
... ... --- /dev/null
... ... +++ b/libaio.spec
... ... @@ -0,0 +1,187 @@
1
%define	name	libaio
2
%define	version	0.3.109
3
%define	release	%mkrel 3
4
5
%define major	1
6
%define	libname	%mklibname aio %major
7
%define	libnamedev %mklibname aio -d
8
%define	libnamedev_static %mklibname aio -d -s
9
10
Name:		%{name}
11
Version:	%{version}
12
Release:	%{release}
13
14
Summary: 	Linux-native asynchronous I/O access library
15
License: 	LGPLv2+
16
Group:	 	System/Libraries
17
Source: 	ftp://ftp.kernel.org/pub/linux/libs/aio/%{name}-%{version}.tar.bz2
18
Patch0:		libaio-install-to-slash.patch
19
Buildroot:	%{_tmppath}/%{name}-%{version}-%{release}-buildroot
20
21
%description
22
The Linux-native asynchronous I/O facility ("async I/O", or "aio") has a
23
richer API and capability set than the simple POSIX async I/O facility.
24
This library, libaio, provides the Linux-native API for async I/O.
25
The POSIX async I/O facility requires this library in order to provide
26
kernel-accelerated async I/O capabilities, as do applications which
27
require the Linux-native async I/O API.
28
You may require this package if you want to install some DBMS.
29
30
%package -n     %{libname}
31
Summary:        Dynamic libraries for libaio
32
Group:          System/Libraries
33
Provides:	%name = %version-%release
34
35
%description -n %{libname}
36
The Linux-native asynchronous I/O facility ("async I/O", or "aio") has a
37
richer API and capability set than the simple POSIX async I/O facility.
38
This library, libaio, provides the Linux-native API for async I/O.
39
The POSIX async I/O facility requires this library in order to provide
40
kernel-accelerated async I/O capabilities, as do applications which
41
require the Linux-native async I/O API.
42
43
%package -n	%{libnamedev}
44
Summary:	Development and include files for libaio
45
Group:		Development/C
46
Requires:	%{libname} = %{version}-%{release}
47
Provides:	%{name}-devel = %{version}-%{release}
48
Obsoletes:	%{libname}-devel
49
50
%description -n	%{libnamedev}
51
The Linux-native asynchronous I/O facility ("async I/O", or "aio") has a
52
richer API and capability set than the simple POSIX async I/O facility.
53
This library, libaio, provides the Linux-native API for async I/O.
54
The POSIX async I/O facility requires this library in order to provide
55
kernel-accelerated async I/O capabilities, as do applications which
56
require the Linux-native async I/O API.
57
58
This archive contains the header-files for %{libname} development.
59
60
%package -n	%{libnamedev_static}
61
Summary:	Development components for libaio
62
Group:		Development/C
63
Requires:	%{libnamedev} = %{version}-%{release}
64
Obsoletes:	%{libname}-static-devel
65
66
%description -n	%{libnamedev_static}
67
The Linux-native asynchronous I/O facility ("async I/O", or "aio") has a
68
richer API and capability set than the simple POSIX async I/O facility.
69
This library, libaio, provides the Linux-native API for async I/O.
70
The POSIX async I/O facility requires this library in order to provide
71
kernel-accelerated async I/O capabilities, as do applications which
72
require the Linux-native async I/O API.
73
74
This archive contains the static libraries (.a) 
75
76
%prep
77
%setup -q -a 0
78
mv %{name}-%{version} compat-%{name}-%{version}
79
80
%build
81
export CFLAGS="%{optflags}"
82
# A library with a soname of 1.0.0 was inadvertantly released.  This
83
# build process builds a version of the library with the broken soname in
84
# the compat-libaio-0.3.103 directory, and then builds the library again
85
# with the correct soname.
86
cd compat-%{name}-%{version}
87
%make \
88
    soname='libaio.so.1.0.0' libname='libaio.so.1.0.0' \
89
    CFLAGS="%{optflags} -nostdlib -nostartfiles -I. -fPIC"
90
cd ..
91
%make CFLAGS="%{optflags} -nostdlib -nostartfiles -I. -fPIC"
92
93
%install
94
rm -rf %{buildroot}
95
cd compat-%{name}-%{version}
96
install -D -m 755 src/libaio.so.1.0.0 \
97
  %{buildroot}/%{_libdir}/libaio.so.1.0.0
98
cd ..
99
%make libdir=%{buildroot}%{_libdir} \
100
	includedir=%{buildroot}%{_includedir} \
101
    install
102
103
%if %mdkversion < 200900
104
%post -n %libname -p /sbin/ldconfig
105
%endif
106
%if %mdkversion < 200900
107
%postun -n %{libname} -p /sbin/ldconfig
108
%endif
109
110
%clean
111
rm -rf %{buildroot}
112
113
%files -n %{libname}
114
%defattr(-,root,root)
115
%{_libdir}/libaio.so.%{major}*
116
117
%files -n %{libnamedev}
118
%defattr(-,root,root)
119
%doc COPYING TODO
120
%{_includedir}/*
121
%{_libdir}/libaio.so
122
123
%files -n %{libnamedev_static}
124
%defattr(-,root,root)
125
%{_libdir}/libaio.a
126
127
128
129
%changelog
130
* Fri Apr 29 2011 Oden Eriksson <oeriksson@mandriva.com> 0.3.109-3mdv2011.0
131
+ Revision: 660209
132
- mass rebuild
133
134
* Sun Nov 28 2010 Oden Eriksson <oeriksson@mandriva.com> 0.3.109-2mdv2011.0
135
+ Revision: 602517
136
- rebuild
137
138
* Mon Jan 11 2010 Jérôme Brenier <incubusss@mandriva.org> 0.3.109-1mdv2010.1
139
+ Revision: 489443
140
- new version 0.3.109
141
- fix Source url
142
143
* Wed Sep 02 2009 Christophe Fergeau <cfergeau@mandriva.com> 0.3.107-3mdv2010.0
144
+ Revision: 425512
145
- rebuild
146
147
* Sun Mar 15 2009 Guillaume Rousse <guillomovitch@mandriva.org> 0.3.107-2mdv2009.1
148
+ Revision: 355399
149
- drop useless patch
150
- ship missing files
151
152
* Mon Mar 09 2009 Emmanuel Andry <eandry@mandriva.org> 0.3.107-1mdv2009.1
153
+ Revision: 353132
154
- New version 0.3.107
155
- sync with fedora
156
157
* Mon Aug 25 2008 Emmanuel Andry <eandry@mandriva.org> 0.3.104-6mdv2009.0
158
+ Revision: 275993
159
- apply devel policy
160
- fix license
161
- check major
162
163
* Fri Jul 25 2008 Thierry Vignaud <tv@mandriva.org> 0.3.104-5mdv2009.0
164
+ Revision: 248409
165
- rebuild
166
167
  + Pixel <pixel@mandriva.com>
168
    - do not call ldconfig in %%post/%%postun, it is now handled by filetriggers
169
170
  + Olivier Blin <oblin@mandriva.com>
171
    - restore BuildRoot
172
173
* Mon Dec 17 2007 Thierry Vignaud <tv@mandriva.org> 0.3.104-3mdv2008.1
174
+ Revision: 128421
175
- kill re-definition of %%buildroot on Pixel's request
176
- import libaio
177
178
179
* Sat Mar 25 2006 Giuseppe Ghib <ghibo@mandriva.com> 0.3.104-3mdk
180
- Added _requires_exceptions statically\\|linked for release < 200610
181
  (workaround for bug in rpm-mandriva-setup for 2006.0).
182
183
* Thu Mar 16 2006 Rafael Garcia-Suarez <rgarciasuarez@mandriva.com> 0.3.104-2mdk
184
- Rebuild with new rpm-mandriva-setup to avoid false dependencies in -devel
185
186
* Wed Dec 28 2005 Austin Acton <austin@mandriva.org> 0.3.104-1mdk
187
- initial import from Loic Baudry <loic.baudry@laposte.com> with fixes

Comments