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

Last change on this file since 419 was 419, checked in by Yuri Dario, 12 years ago

spec: pthread, r718, fix invalid dereference in TlsAlloc and TlsFree.

File size: 2.4 KB
Line 
1%define kmk_dist out/os2.x86/release/dist
2
3Summary: A posix pthread emulation for OS/2-eComStation
4Name: pthread
5Version: 20140423
6Release: 14%{?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%package debug
31Summary: HLL debug data for exception handling support.
32
33%description debug
34HLL debug data for exception handling support.
35
36%prep
37%setup -q -c -a 1
38
39
40%build
41export KCFLAGS="%{optflags}"
42kmk -C src
43kmk -C src install
44
45%install
46rm -rf %{buildroot}
47mkdir -p %{buildroot}%{_libdir}
48mkdir -p %{buildroot}%{_includedir}
49
50cp pthread.dll %{buildroot}%{_libdir}
51cp %{kmk_dist}/bin/pthr01.dll %{buildroot}%{_libdir}
52cp %{kmk_dist}/include/pthread.h %{buildroot}%{_includedir}
53cp %{kmk_dist}/lib/pthread*.a %{buildroot}%{_libdir}
54
55%clean
56rm -rf %{buildroot}
57
58%files
59%defattr(-,root,root)
60%{_libdir}/pthr??.dll
61%exclude %{_libdir}/*.dbg
62
63%files devel
64%defattr(-,root,root)
65%{_libdir}/*.a
66%{_includedir}/*
67
68%files legacy
69%defattr(-,root,root)
70%{_libdir}/pthread.dll
71
72%files debug
73%defattr(-,root,root)
74%{_libdir}/*.dbg
75
76%changelog
77* Wed Apr 24 2014 Dmitriy Kuminov <dmik/coding.org>
78- r718, fix invalid dereference in TlsAlloc and TlsFree.
79
80* Wed Feb 26 2014 komh
81- r704, pthread_mutex_destroy() crashs if a variable with PTHREAD_MUTEX_INITIALIZER is passed.
82
83* Sat Nov 17 2013 yd
84- r684, fix initializer for mutex destroy, fixes AOO i123001.
85
86* Mon Sep 24 2012 yd
87- added stubs for pthread_rwlock_* functions.
88
89* Tue Mar 13 2012 yd
90- added missing prototypes and exports (detach and kill).
91
92* Wed Nov 02 2011 yd
93- added -Zdll to build system
94- improved build system
95
96* Thu Oct 11 2011 yd
97- exception record must be on stack
98- always uninstall record from running thread
99- use new LibLoadExceptq to enable exceptq only if main app loads it. Code by Rich Walsh.
100
101* Thu Sep 22 2011 yd
102- 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.