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

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

spec: pthread, mmap, urpo build updates.

File size: 1.8 KB
Line 
1Summary: A posix pthread emulation for OS/2-eComStation
2Name: pthread
3Version: 20111102
4Release: 9%{?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 install
36kmk -C src build
37
38%install
39rm -rf %{buildroot}
40mkdir -p %{buildroot}%{_libdir}
41mkdir -p %{buildroot}%{_includedir}
42
43cp pthread.dll %{buildroot}%{_libdir}
44cp pthr01.dll %{buildroot}%{_libdir}
45cp pthread.h %{buildroot}%{_includedir}
46cp pthread.a %{buildroot}%{_libdir}/pthread.a
47cp pthread_s.a %{buildroot}%{_libdir}/pthread_s.a
48cp pthread_g.a %{buildroot}%{_libdir}/pthread_g.a
49
50%clean
51rm -rf %{buildroot}
52
53%files
54%defattr(-,root,root)
55%{_libdir}/pthr??.dll
56
57%files devel
58%defattr(-,root,root)
59%{_libdir}/*.a
60%{_includedir}/*
61
62%files legacy
63%defattr(-,root,root)
64%{_libdir}/pthread.dll
65
66%changelog
67* Wed Nov 02 2011 yd
68- added -Zdll to build system
69- improved build system
70
71* Thu Oct 11 2011 yd
72- exception record must be on stack
73- always uninstall record from running thread
74- use new LibLoadExceptq to enable exceptq only if main app loads it. Code by Rich Walsh.
75
76* Thu Sep 22 2011 yd
77- 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.