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

Last change on this file since 564 was 564, checked in by Yuri Dario, 11 years ago

spec: pthread, r1118, Change pthread_yield() return value to int, fixes ticket#63.

File size: 3.3 KB
Line 
1%define svn_url http://svn.netlabs.org/repos/ports/pthread/trunk
2%define svn_rev 1118
3
4%define kmk_dist out/os2.x86/release/dist
5
6Summary: A posix pthread emulation for OS/2-eComStation
7Name: pthread
8Version: 20150327
9Release: 17%{?dist}
10License: unknown
11Group: Development/Libraries
12Source: %{name}-%{version}-r%{svn_rev}.zip
13Source1: pthread-legacy-os2.zip
14
15
16%description
17A posix pthread emulation library.
18
19%package devel
20Summary: Header files developing apps which will use pthread
21Group: Development/Libraries
22
23%description devel
24Header files and a library of pthread functions, for developing apps
25which will use the library.
26
27%package legacy
28Summary: The previous posix pthread emulation library.
29
30%description legacy
31The previous posix pthread emulation library.
32
33%package debug
34Summary: HLL debug data for exception handling support.
35
36%description debug
37HLL debug data for exception handling support.
38
39%prep
40%if %(sh -c 'if test -f "%{_sourcedir}/%{name}-%{version}-r%{svn_rev}.zip" ; then echo 1 ; else echo 0 ; fi')
41%setup -q
42%else
43%setup -n "%{name}-%{version}" -T -c -a 1
44svn export -r %{svn_rev} %{svn_url} . --force
45rm -f "%{_sourcedir}/%{name}-%{version}-r%{svn_rev}.zip"
46(cd .. && zip -SrX9 "%{_sourcedir}/%{name}-%{version}-r%{svn_rev}.zip" "%{name}-%{version}")
47%endif
48
49%build
50export KCFLAGS="%{optflags}"
51kmk -C src
52kmk -C src install
53
54%install
55rm -rf %{buildroot}
56mkdir -p %{buildroot}%{_libdir}
57mkdir -p %{buildroot}%{_includedir}
58
59cp pthread.dll %{buildroot}%{_libdir}
60cp %{kmk_dist}/bin/pthr01.dll %{buildroot}%{_libdir}
61cp %{kmk_dist}/include/pthread.h %{buildroot}%{_includedir}
62cp %{kmk_dist}/lib/pthread*.a %{buildroot}%{_libdir}
63
64%clean
65rm -rf %{buildroot}
66
67%files
68%defattr(-,root,root)
69%{_libdir}/pthr??.dll
70%exclude %{_libdir}/*.dbg
71
72%files devel
73%defattr(-,root,root)
74%{_libdir}/*.a
75%{_includedir}/*
76
77%files legacy
78%defattr(-,root,root)
79%{_libdir}/pthread.dll
80
81%files debug
82%defattr(-,root,root)
83%{_libdir}/*.dbg
84
85%changelog
86* Fri Mar 27 2015 yd <yd@os2power.com> 20150327-17
87- r1118, Change pthread_yield() return value to int, fixes ticket#63.
88
89* Thu Aug 14 2014 yd
90- r812-813, set stack to be at least 2MB for new threads.
91- Pull sources directly from SVN/GIT, ticket#76.
92
93* Fri Apr 25 2014 Dmitriy Kuminov <dmik/coding.org>
94- r720, Return proper POSIX errors in 'key' APIs. Fix pthread_key_delete() return code.
95
96* Thu Apr 24 2014 Dmitriy Kuminov <dmik/coding.org>
97- r718, fix invalid dereference in TlsAlloc and TlsFree.
98
99* Wed Feb 26 2014 komh
100- r704, pthread_mutex_destroy() crashs if a variable with PTHREAD_MUTEX_INITIALIZER is passed.
101
102* Sat Nov 17 2013 yd
103- r684, fix initializer for mutex destroy, fixes AOO i123001.
104
105* Mon Sep 24 2012 yd
106- added stubs for pthread_rwlock_* functions.
107
108* Tue Mar 13 2012 yd
109- added missing prototypes and exports (detach and kill).
110
111* Wed Nov 02 2011 yd
112- added -Zdll to build system
113- improved build system
114
115* Thu Oct 11 2011 yd
116- exception record must be on stack
117- always uninstall record from running thread
118- use new LibLoadExceptq to enable exceptq only if main app loads it. Code by Rich Walsh.
119
120* Thu Sep 22 2011 yd
121- 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.