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

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

spec: pthread build update.

File size: 1.5 KB
Line 
1Summary: A posix pthread emulation for OS/2-eComStation
2Name: pthread
3Version: 20110922
4Release: 7%{?dist}
5License: unknown
6Group: Development/Libraries
7Source: pthread-%{version}-os2.zip
8Source1: pthread-legacy-os2.zip
9
10Requires: libc >= 0.6.3
11
12%description
13A posix pthread emulation library.
14
15%package devel
16Summary: Header files developing apps which will use pthread
17Group: Development/Libraries
18
19%description devel
20Header files and a library of pthread functions, for developing apps
21which will use the library.
22
23%package legacy
24Summary: The previous posix pthread emulation library.
25
26%description legacy
27The previous posix pthread emulation library.
28
29%prep
30%setup -q -c -a 1
31
32
33%build
34export KCFLAGS="%{optflags}"
35kmk -C src
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* Thu Sep 22 2011 yd
68- 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.