source: spec/trunk/SPECS/pthread.spec@ 321

Last change on this file since 321 was 313, checked in by Yuri Dario, 13 years ago

spec: pthread added stubs for pthread_rwlock_* functions.

File size: 1.9 KB
Line 
1%define kmk_dist out/os2.x86/release/dist
2
3Summary: A posix pthread emulation for OS/2-eComStation
4Name: pthread
5Version: 20120924
6Release: 11%{?dist}
7License: unknown
8Group: Development/Libraries
9Source: pthread-%{version}-os2.zip
10Source1: pthread-legacy-os2.zip
11
12
13%description
14A posix pthread emulation library.
15
16%package devel
17Summary: Header files developing apps which will use pthread
18Group: Development/Libraries
19
20%description devel
21Header files and a library of pthread functions, for developing apps
22which will use the library.
23
24%package legacy
25Summary: The previous posix pthread emulation library.
26
27%description legacy
28The previous posix pthread emulation library.
29
30%prep
31%setup -q -c -a 1
32
33
34%build
35export KCFLAGS="%{optflags}"
36kmk -C src
37kmk -C src install
38
39%install
40rm -rf %{buildroot}
41mkdir -p %{buildroot}%{_libdir}
42mkdir -p %{buildroot}%{_includedir}
43
44cp pthread.dll %{buildroot}%{_libdir}
45cp %{kmk_dist}/bin/pthr01.dll %{buildroot}%{_libdir}
46cp %{kmk_dist}/include/pthread.h %{buildroot}%{_includedir}
47cp %{kmk_dist}/lib/pthread*.a %{buildroot}%{_libdir}
48
49%clean
50rm -rf %{buildroot}
51
52%files
53%defattr(-,root,root)
54%{_libdir}/pthr??.dll
55
56%files devel
57%defattr(-,root,root)
58%{_libdir}/*.a
59%{_includedir}/*
60
61%files legacy
62%defattr(-,root,root)
63%{_libdir}/pthread.dll
64
65%changelog
66* Mon Sep 24 2012 yd
67- added stubs for pthread_rwlock_* functions.
68
69* Tue Mar 13 2012 yd
70- added missing prototypes and exports (detach and kill).
71
72* Wed Nov 02 2011 yd
73- added -Zdll to build system
74- improved build system
75
76* Thu Oct 11 2011 yd
77- exception record must be on stack
78- always uninstall record from running thread
79- use new LibLoadExceptq to enable exceptq only if main app loads it. Code by Rich Walsh.
80
81* Thu Sep 22 2011 yd
82- enable high memory access for library, otherwise every app using it is forced to use low memory (see git).
Note: See TracBrowser for help on using the repository browser.