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

Last change on this file since 1617 was 1580, checked in by Silvan Scherrer, 7 years ago

spec: pthread: Release version 20190130-23.

File size: 3.6 KB
Line 
1%define kmk_dist out/os2.x86/release/dist
2
3Summary: A posix pthread emulation for OS/2 and OS/2 based systems
4Name: pthread
5Version: 20190130
6Release: 23%{?dist}
7License: unknown
8Group: Development/Libraries
9
10%scm_source svn http://svn.netlabs.org/repos/ports/pthread/trunk 2333
11
12BuildRequires: gcc make
13
14Source1: pthread-legacy-os2.zip
15
16%description
17A posix pthread emulation library.
18
19%package devel
20Summary: Header files developing apps which will use pthread
21Group: Development/Libraries
22Requires: %{name} = %{version}-%{release}
23
24%description devel
25Header files and a library of pthread functions, for developing apps
26which will use the library.
27
28%package legacy
29Summary: The previous posix pthread emulation library.
30
31%description legacy
32The previous posix pthread emulation library.
33
34%debug_package
35
36%prep
37%scm_setup
38unzip %SOURCE1 -d .
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}/lib/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%changelog
73* Wed Jan 30 2019 Silvan Scherrer <silvan.scherrer@aroa.ch> 20190130-23
74- fix ticket #205 (code by KO Myung-Hun)
75- fix ticket #204 (code by kO Myung-Hun)
76- remove exceptq
77- link against libcx
78- add buildlevel info
79
80* Wed Dec 27 2017 Dmitriy Kuminov <coding@dmik.org> 20171227-22
81- Remove dangerous DosEnterCritSec usage.
82- Use scm_source macro and friends.
83
84* Tue Dec 29 2015 yd <yd@os2power.com> 20151229-21
85- r1234, enable EXAPIS and mappings for fork() registration.
86
87* Mon Dec 07 2015 yd <yd@os2power.com> 20151207-20
88- r1208, added add some basic rwlock support.
89
90* Thu May 21 2015 yd <yd@os2power.com> 20150408-19
91- force -devel and -debug to depend on main package, fixes ticket:138.
92
93* Wed Apr 08 2015 yd <yd@os2power.com> 20150408-18
94- r1137, add missing export _pthread_attr_setdetachstate(), fixes ticket:65.
95
96* Fri Mar 27 2015 yd <yd@os2power.com> 20150327-17
97- r1118, Change pthread_yield() return value to int, fixes ticket#63.
98
99* Thu Aug 14 2014 yd
100- r812-813, set stack to be at least 2MB for new threads.
101- Pull sources directly from SVN/GIT, ticket#76.
102
103* Fri Apr 25 2014 Dmitriy Kuminov <coding@dmik.org>
104- r720, Return proper POSIX errors in 'key' APIs. Fix pthread_key_delete() return code.
105
106* Thu Apr 24 2014 Dmitriy Kuminov <coding@dmik.org>
107- r718, fix invalid dereference in TlsAlloc and TlsFree.
108
109* Wed Feb 26 2014 komh
110- r704, pthread_mutex_destroy() crashs if a variable with PTHREAD_MUTEX_INITIALIZER is passed.
111
112* Sat Nov 17 2013 yd
113- r684, fix initializer for mutex destroy, fixes AOO i123001.
114
115* Mon Sep 24 2012 yd
116- added stubs for pthread_rwlock_* functions.
117
118* Tue Mar 13 2012 yd
119- added missing prototypes and exports (detach and kill).
120
121* Wed Nov 02 2011 yd
122- added -Zdll to build system
123- improved build system
124
125* Thu Oct 11 2011 yd
126- exception record must be on stack
127- always uninstall record from running thread
128- use new LibLoadExceptq to enable exceptq only if main app loads it. Code by Rich Walsh.
129
130* Thu Sep 22 2011 yd
131- 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.