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

Last change on this file since 224 was 224, checked in by Yuri Dario, 14 years ago

spec: pthread build update.

File size: 1.7 KB
Line 
1Summary: A posix pthread emulation for OS/2-eComStation
2Name: pthread
3Version: 20111011
4Release: 8%{?dist}
5License: unknown
6Group: Development/Libraries
7Source: pthread-%{version}-os2.zip
8Source1: pthread-legacy-os2.zip
9
10
11%description
12A posix pthread emulation library.
13
14%package devel
15Summary: Header files developing apps which will use pthread
16Group: Development/Libraries
17
18%description devel
19Header files and a library of pthread functions, for developing apps
20which will use the library.
21
22%package legacy
23Summary: The previous posix pthread emulation library.
24
25%description legacy
26The previous posix pthread emulation library.
27
28%prep
29%setup -q -c -a 1
30
31
32%build
33export KCFLAGS="%{optflags}"
34kmk -C src
35kmk -C src build
36
37%install
38rm -rf %{buildroot}
39mkdir -p %{buildroot}%{_libdir}
40mkdir -p %{buildroot}%{_includedir}
41
42cp pthread.dll %{buildroot}%{_libdir}
43cp pthr01.dll %{buildroot}%{_libdir}
44cp pthread.h %{buildroot}%{_includedir}
45cp pthread.a %{buildroot}%{_libdir}/pthread.a
46cp pthread_s.a %{buildroot}%{_libdir}/pthread_s.a
47cp pthread_g.a %{buildroot}%{_libdir}/pthread_g.a
48
49%clean
50rm -rf %{buildroot}
51
52%files
53%defattr(-,root,root)
54%{_libdir}/pthr??.dll
55
56%files devel
57%defattr(-,root,root)
58%{_libdir}/*.a
59%{_includedir}/*
60
61%files legacy
62%defattr(-,root,root)
63%{_libdir}/pthread.dll
64
65%changelog
66* Thu Oct 11 2011 yd
67- exception record must be on stack
68- always uninstall record from running thread
69- use new LibLoadExceptq to enable exceptq only if main app loads it. Code by Rich Walsh.
70
71* Thu Sep 22 2011 yd
72- 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.