1 | Summary: A posix pthread emulation for OS/2-eComStation
|
---|
2 | Name: pthread
|
---|
3 | Version: 20120313
|
---|
4 | Release: 10%{?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 install
|
---|
36 | kmk -C src build
|
---|
37 |
|
---|
38 | %install
|
---|
39 | rm -rf %{buildroot}
|
---|
40 | mkdir -p %{buildroot}%{_libdir}
|
---|
41 | mkdir -p %{buildroot}%{_includedir}
|
---|
42 |
|
---|
43 | cp pthread.dll %{buildroot}%{_libdir}
|
---|
44 | cp pthr01.dll %{buildroot}%{_libdir}
|
---|
45 | cp pthread.h %{buildroot}%{_includedir}
|
---|
46 | cp pthread.a %{buildroot}%{_libdir}/pthread.a
|
---|
47 | cp pthread_s.a %{buildroot}%{_libdir}/pthread_s.a
|
---|
48 | cp pthread_g.a %{buildroot}%{_libdir}/pthread_g.a
|
---|
49 |
|
---|
50 | %clean
|
---|
51 | rm -rf %{buildroot}
|
---|
52 |
|
---|
53 | %files
|
---|
54 | %defattr(-,root,root)
|
---|
55 | %{_libdir}/pthr??.dll
|
---|
56 |
|
---|
57 | %files devel
|
---|
58 | %defattr(-,root,root)
|
---|
59 | %{_libdir}/*.a
|
---|
60 | %{_includedir}/*
|
---|
61 |
|
---|
62 | %files legacy
|
---|
63 | %defattr(-,root,root)
|
---|
64 | %{_libdir}/pthread.dll
|
---|
65 |
|
---|
66 | %changelog
|
---|
67 | * Tue Mar 13 2012 yd
|
---|
68 | - added missing prototypes and exports (detach and kill).
|
---|
69 |
|
---|
70 | * Wed Nov 02 2011 yd
|
---|
71 | - added -Zdll to build system
|
---|
72 | - improved build system
|
---|
73 |
|
---|
74 | * Thu Oct 11 2011 yd
|
---|
75 | - exception record must be on stack
|
---|
76 | - always uninstall record from running thread
|
---|
77 | - use new LibLoadExceptq to enable exceptq only if main app loads it. Code by Rich Walsh.
|
---|
78 |
|
---|
79 | * Thu Sep 22 2011 yd
|
---|
80 | - enable high memory access for library, otherwise every app using it is forced to use low memory (see git).
|
---|