source: spec/trunk/SPECS/libaio.spec@ 670

Last change on this file since 670 was 670, checked in by valerius, 10 years ago

spec: libaio: Change aio.dll to aio in .def file

File size: 2.3 KB
Line 
1%define svn_url http://svn.netlabs.org/repos/ports/libaio/trunk
2%define svn_rev 1329
3
4Summary: Port of Asynchronous I/O support from glibc.
5Name: libaio
6Version: 0.0.1
7Release: 3%{?dist}
8License: GPLv2, LGPL 2.1
9URL: https://ftp.gnu.org/gnu/libc/
10Group: Development/Libraries
11Source: %{name}-%{version}-r%{svn_rev}.zip
12BuildRequires: gcc
13BuildRequires: libc-devel
14
15%description
16Asynchronous I/O support library does the support of
17asynchronous I/O requests executing, e.g., read/write/list i/o. The
18requests are queued and are executed in background, with consequent
19further signal delivery or thread creation.
20
21%package devel
22License: GPLv2, LGPL 2.1
23Summary: Asynchronous I/O support library
24Group: Development/Libraries
25
26%description devel
27Asynchronous I/O support library does the support of
28asynchronous I/O requests executing, e.g., read/write/list i/o. The
29requests are queued and are executed in background, with consequent
30further 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
39svn export %{?svn_rev:-r %{svn_rev}} %{svn_url} . --force
40rm -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
45make %{?_smp_mflags}
46
47%install
48rm -rf %{buildroot}
49mkdir -p %{buildroot}%{_includedir}
50install -m 644 aio.h %{buildroot}%{_includedir}
51mkdir -p %{buildroot}%{_libdir}
52install -m 755 aio_dll.* libaio.* aio.dll %{buildroot}%{_libdir}
53
54%clean
55rm -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 25 2016 Valery Sedletski <_valerius@mail.ru> - 0.0.1-3
72- changed aio.dll -> aio in .def file
73
74* Thu Feb 18 2016 Valery Sedletski <_valerius@mail.ru> - 0.0.1-2
75- changed libs format from a.out to OMF
76- added *-debug package
77
78* Sun Feb 14 2016 Valery V.Sedletski <_valerius@mail.ru> - 0.0.1-1
79- Initial package for version 0.0.1.
Note: See TracBrowser for help on using the repository browser.