1 | %define kmk_dist out/os2.x86/release/dist
|
---|
2 |
|
---|
3 | Summary: A posix pthread emulation for OS/2-eComStation
|
---|
4 | Name: pthread
|
---|
5 | Version: 20120924
|
---|
6 | Release: 11%{?dist}
|
---|
7 | License: unknown
|
---|
8 | Group: Development/Libraries
|
---|
9 | Source: pthread-%{version}-os2.zip
|
---|
10 | Source1: pthread-legacy-os2.zip
|
---|
11 |
|
---|
12 |
|
---|
13 | %description
|
---|
14 | A posix pthread emulation library.
|
---|
15 |
|
---|
16 | %package devel
|
---|
17 | Summary: Header files developing apps which will use pthread
|
---|
18 | Group: Development/Libraries
|
---|
19 |
|
---|
20 | %description devel
|
---|
21 | Header files and a library of pthread functions, for developing apps
|
---|
22 | which will use the library.
|
---|
23 |
|
---|
24 | %package legacy
|
---|
25 | Summary: The previous posix pthread emulation library.
|
---|
26 |
|
---|
27 | %description legacy
|
---|
28 | The previous posix pthread emulation library.
|
---|
29 |
|
---|
30 | %prep
|
---|
31 | %setup -q -c -a 1
|
---|
32 |
|
---|
33 |
|
---|
34 | %build
|
---|
35 | export KCFLAGS="%{optflags}"
|
---|
36 | kmk -C src
|
---|
37 | kmk -C src install
|
---|
38 |
|
---|
39 | %install
|
---|
40 | rm -rf %{buildroot}
|
---|
41 | mkdir -p %{buildroot}%{_libdir}
|
---|
42 | mkdir -p %{buildroot}%{_includedir}
|
---|
43 |
|
---|
44 | cp pthread.dll %{buildroot}%{_libdir}
|
---|
45 | cp %{kmk_dist}/bin/pthr01.dll %{buildroot}%{_libdir}
|
---|
46 | cp %{kmk_dist}/include/pthread.h %{buildroot}%{_includedir}
|
---|
47 | cp %{kmk_dist}/lib/pthread*.a %{buildroot}%{_libdir}
|
---|
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 | * 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).
|
---|