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

Last change on this file since 587 was 572, checked in by Yuri Dario, 10 years ago

spec: pthread, force -devel and -debug to depend on main package, fixes ticket:138.

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