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

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

spec: pthread, r684, fix initializer for mutex destroy, fixes AOO i123001.

File size: 2.2 KB
Line 
1%define kmk_dist out/os2.x86/release/dist
2
3Summary: A posix pthread emulation for OS/2-eComStation
4Name: pthread
5Version: 20131117
6Release: 12%{?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* Sat Nov 17 2013 yd
78- r684, fix initializer for mutex destroy, fixes AOO i123001.
79
80* Mon Sep 24 2012 yd
81- added stubs for pthread_rwlock_* functions.
82
83* Tue Mar 13 2012 yd
84- added missing prototypes and exports (detach and kill).
85
86* Wed Nov 02 2011 yd
87- added -Zdll to build system
88- improved build system
89
90* Thu Oct 11 2011 yd
91- exception record must be on stack
92- always uninstall record from running thread
93- use new LibLoadExceptq to enable exceptq only if main app loads it. Code by Rich Walsh.
94
95* Thu Sep 22 2011 yd
96- 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.