| 1 | %define svn_url http://svn.netlabs.org/repos/ports/libaio/trunk
|
|---|
| 2 | %define svn_rev 1329
|
|---|
| 3 |
|
|---|
| 4 | Summary: Port of Asynchronous I/O support from glibc.
|
|---|
| 5 | Name: libaio
|
|---|
| 6 | Version: 0.0.1
|
|---|
| 7 | Release: 2%{?dist}
|
|---|
| 8 | License: GPLv2, LGPL 2.1
|
|---|
| 9 | URL: https://ftp.gnu.org/gnu/libc/
|
|---|
| 10 | Group: Development/Libraries
|
|---|
| 11 | Source: %{name}-%{version}-r%{svn_rev}.zip
|
|---|
| 12 | BuildRequires: gcc
|
|---|
| 13 | BuildRequires: libc-devel
|
|---|
| 14 |
|
|---|
| 15 | %description
|
|---|
| 16 | Asynchronous I/O support library does the support of
|
|---|
| 17 | asynchronous I/O requests executing, e.g., read/write/list i/o. The
|
|---|
| 18 | requests are queued and are executed in background, with consequent
|
|---|
| 19 | further signal delivery or thread creation.
|
|---|
| 20 |
|
|---|
| 21 | %package devel
|
|---|
| 22 | License: GPLv2, LGPL 2.1
|
|---|
| 23 | Summary: Asynchronous I/O support library
|
|---|
| 24 | Group: Development/Libraries
|
|---|
| 25 |
|
|---|
| 26 | %description devel
|
|---|
| 27 | Asynchronous I/O support library does the support of
|
|---|
| 28 | asynchronous I/O requests executing, e.g., read/write/list i/o. The
|
|---|
| 29 | requests are queued and are executed in background, with consequent
|
|---|
| 30 | further signal delivery or thread creation.
|
|---|
| 31 |
|
|---|
| 32 | %debug_package
|
|---|
| 33 |
|
|---|
| 34 | %prep
|
|---|
| 35 | %if %{?svn_rev:%(sh -c 'if test -f "%{_sourcedir}/%{name}-%{version}-r%{svn_rev}.zip" ; then echo 1 ; else echo 0 ; fi')}%{!?svn_rev):0}
|
|---|
| 36 | %setup -q
|
|---|
| 37 | %else
|
|---|
| 38 | %setup -q -n "%{name}-%{version}" -Tc
|
|---|
| 39 | svn export %{?svn_rev:-r %{svn_rev}} %{svn_url} . --force
|
|---|
| 40 | rm -f "%{_sourcedir}/%{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip"
|
|---|
| 41 | (cd .. && zip -SrX9 "%{_sourcedir}/%{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip" "%{name}-%{version}")
|
|---|
| 42 | %endif
|
|---|
| 43 |
|
|---|
| 44 | %build
|
|---|
| 45 | make %{?_smp_mflags}
|
|---|
| 46 |
|
|---|
| 47 | %install
|
|---|
| 48 | rm -rf %{buildroot}
|
|---|
| 49 | mkdir -p %{buildroot}%{_includedir}
|
|---|
| 50 | install -m 644 aio.h %{buildroot}%{_includedir}
|
|---|
| 51 | mkdir -p %{buildroot}%{_libdir}
|
|---|
| 52 | install -m 755 aio_dll.* libaio.* aio.dll %{buildroot}%{_libdir}
|
|---|
| 53 |
|
|---|
| 54 | %clean
|
|---|
| 55 | rm -rf %{buildroot}
|
|---|
| 56 |
|
|---|
| 57 | %files
|
|---|
| 58 | %defattr(-,root,root)
|
|---|
| 59 | %doc COPYING COPYING.LIB LICENSES README.OS2
|
|---|
| 60 | %{_libdir}/aio.dll
|
|---|
| 61 |
|
|---|
| 62 | %files devel
|
|---|
| 63 | %defattr(-,root,root)
|
|---|
| 64 | %{_includedir}/aio.h
|
|---|
| 65 | %{_libdir}/libaio.a
|
|---|
| 66 | %{_libdir}/aio_dll.a
|
|---|
| 67 | %{_libdir}/libaio.lib
|
|---|
| 68 | %{_libdir}/aio_dll.lib
|
|---|
| 69 |
|
|---|
| 70 | %changelog
|
|---|
| 71 | * Thu Feb 18 2016 Valery Sedletski <_valerius@mail.ru> - 0.0.1-2
|
|---|
| 72 | - changed libs format from a.out to OMF
|
|---|
| 73 | - added *-debug package
|
|---|
| 74 |
|
|---|
| 75 | * Sun Feb 14 2016 Valery V.Sedletski <_valerius@mail.ru> - 0.0.1-1
|
|---|
| 76 | - Initial package for version 0.0.1.
|
|---|