1 | Summary: A posix pthread emulation for OS/2-eComStation
|
---|
2 | Name: pthread
|
---|
3 | Version: 20111011
|
---|
4 | Release: 8%{?dist}
|
---|
5 | License: unknown
|
---|
6 | Group: Development/Libraries
|
---|
7 | Source: pthread-%{version}-os2.zip
|
---|
8 | Source1: pthread-legacy-os2.zip
|
---|
9 |
|
---|
10 |
|
---|
11 | %description
|
---|
12 | A posix pthread emulation library.
|
---|
13 |
|
---|
14 | %package devel
|
---|
15 | Summary: Header files developing apps which will use pthread
|
---|
16 | Group: Development/Libraries
|
---|
17 |
|
---|
18 | %description devel
|
---|
19 | Header files and a library of pthread functions, for developing apps
|
---|
20 | which will use the library.
|
---|
21 |
|
---|
22 | %package legacy
|
---|
23 | Summary: The previous posix pthread emulation library.
|
---|
24 |
|
---|
25 | %description legacy
|
---|
26 | The previous posix pthread emulation library.
|
---|
27 |
|
---|
28 | %prep
|
---|
29 | %setup -q -c -a 1
|
---|
30 |
|
---|
31 |
|
---|
32 | %build
|
---|
33 | export KCFLAGS="%{optflags}"
|
---|
34 | kmk -C src
|
---|
35 | kmk -C src build
|
---|
36 |
|
---|
37 | %install
|
---|
38 | rm -rf %{buildroot}
|
---|
39 | mkdir -p %{buildroot}%{_libdir}
|
---|
40 | mkdir -p %{buildroot}%{_includedir}
|
---|
41 |
|
---|
42 | cp pthread.dll %{buildroot}%{_libdir}
|
---|
43 | cp pthr01.dll %{buildroot}%{_libdir}
|
---|
44 | cp pthread.h %{buildroot}%{_includedir}
|
---|
45 | cp pthread.a %{buildroot}%{_libdir}/pthread.a
|
---|
46 | cp pthread_s.a %{buildroot}%{_libdir}/pthread_s.a
|
---|
47 | cp pthread_g.a %{buildroot}%{_libdir}/pthread_g.a
|
---|
48 |
|
---|
49 | %clean
|
---|
50 | rm -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 | * Thu Oct 11 2011 yd
|
---|
67 | - exception record must be on stack
|
---|
68 | - always uninstall record from running thread
|
---|
69 | - use new LibLoadExceptq to enable exceptq only if main app loads it. Code by Rich Walsh.
|
---|
70 |
|
---|
71 | * Thu Sep 22 2011 yd
|
---|
72 | - enable high memory access for library, otherwise every app using it is forced to use low memory (see git).
|
---|