| 1 | %define kmk_dist out/os2.x86/release/dist
|
|---|
| 2 |
|
|---|
| 3 | Summary: A posix pthread emulation for OS/2-eComStation
|
|---|
| 4 | Name: pthread
|
|---|
| 5 | Version: 20171227
|
|---|
| 6 | Release: 22%{?dist}
|
|---|
| 7 | License: unknown
|
|---|
| 8 | Group: Development/Libraries
|
|---|
| 9 |
|
|---|
| 10 | %scm_source svn http://svn.netlabs.org/repos/ports/pthread/trunk 2250
|
|---|
| 11 |
|
|---|
| 12 | BuildRequires: gcc make
|
|---|
| 13 |
|
|---|
| 14 | Source1: pthread-legacy-os2.zip
|
|---|
| 15 |
|
|---|
| 16 | %description
|
|---|
| 17 | A posix pthread emulation library.
|
|---|
| 18 |
|
|---|
| 19 | %package devel
|
|---|
| 20 | Summary: Header files developing apps which will use pthread
|
|---|
| 21 | Group: Development/Libraries
|
|---|
| 22 | Requires: %{name} = %{version}-%{release}
|
|---|
| 23 |
|
|---|
| 24 | %description devel
|
|---|
| 25 | Header files and a library of pthread functions, for developing apps
|
|---|
| 26 | which will use the library.
|
|---|
| 27 |
|
|---|
| 28 | %package legacy
|
|---|
| 29 | Summary: The previous posix pthread emulation library.
|
|---|
| 30 |
|
|---|
| 31 | %description legacy
|
|---|
| 32 | The previous posix pthread emulation library.
|
|---|
| 33 |
|
|---|
| 34 | %package debug
|
|---|
| 35 | Summary: HLL debug data for exception handling support.
|
|---|
| 36 | Requires: %{name} = %{version}-%{release}
|
|---|
| 37 |
|
|---|
| 38 | %description debug
|
|---|
| 39 | HLL debug data for exception handling support.
|
|---|
| 40 |
|
|---|
| 41 | %debug_package
|
|---|
| 42 |
|
|---|
| 43 | %prep
|
|---|
| 44 | %scm_setup
|
|---|
| 45 | unzip %SOURCE1 -d .
|
|---|
| 46 |
|
|---|
| 47 | %build
|
|---|
| 48 | export KCFLAGS="%{optflags}"
|
|---|
| 49 | kmk -C src
|
|---|
| 50 | kmk -C src install
|
|---|
| 51 |
|
|---|
| 52 | %install
|
|---|
| 53 | rm -rf %{buildroot}
|
|---|
| 54 | mkdir -p %{buildroot}%{_libdir}
|
|---|
| 55 | mkdir -p %{buildroot}%{_includedir}
|
|---|
| 56 |
|
|---|
| 57 | cp pthread.dll %{buildroot}%{_libdir}
|
|---|
| 58 | cp %{kmk_dist}/lib/pthr01.dll %{buildroot}%{_libdir}
|
|---|
| 59 | cp %{kmk_dist}/include/pthread.h %{buildroot}%{_includedir}
|
|---|
| 60 | cp %{kmk_dist}/lib/pthread*.a %{buildroot}%{_libdir}
|
|---|
| 61 |
|
|---|
| 62 | %clean
|
|---|
| 63 | rm -rf %{buildroot}
|
|---|
| 64 |
|
|---|
| 65 | %files
|
|---|
| 66 | %defattr(-,root,root)
|
|---|
| 67 | %{_libdir}/pthr??.dll
|
|---|
| 68 | %exclude %{_libdir}/*.dbg
|
|---|
| 69 |
|
|---|
| 70 | %files devel
|
|---|
| 71 | %defattr(-,root,root)
|
|---|
| 72 | %{_libdir}/*.a
|
|---|
| 73 | %{_includedir}/*
|
|---|
| 74 |
|
|---|
| 75 | %files legacy
|
|---|
| 76 | %defattr(-,root,root)
|
|---|
| 77 | %{_libdir}/pthread.dll
|
|---|
| 78 |
|
|---|
| 79 | %files debug
|
|---|
| 80 | %defattr(-,root,root)
|
|---|
| 81 | %{_libdir}/*.dbg
|
|---|
| 82 |
|
|---|
| 83 | %changelog
|
|---|
| 84 | * Wed Dec 27 2017 Dmitriy Kuminov <coding@dmik.org> 20171227-22
|
|---|
| 85 | - Remove dangerous DosEnterCritSec usage.
|
|---|
| 86 | - Use scm_source macro and friends.
|
|---|
| 87 |
|
|---|
| 88 | * Tue Dec 29 2015 yd <yd@os2power.com> 20151229-21
|
|---|
| 89 | - r1234, enable EXAPIS and mappings for fork() registration.
|
|---|
| 90 |
|
|---|
| 91 | * Mon Dec 07 2015 yd <yd@os2power.com> 20151207-20
|
|---|
| 92 | - r1208, added add some basic rwlock support.
|
|---|
| 93 |
|
|---|
| 94 | * Thu May 21 2015 yd <yd@os2power.com> 20150408-19
|
|---|
| 95 | - force -devel and -debug to depend on main package, fixes ticket:138.
|
|---|
| 96 |
|
|---|
| 97 | * Wed Apr 08 2015 yd <yd@os2power.com> 20150408-18
|
|---|
| 98 | - r1137, add missing export _pthread_attr_setdetachstate(), fixes ticket:65.
|
|---|
| 99 |
|
|---|
| 100 | * Fri Mar 27 2015 yd <yd@os2power.com> 20150327-17
|
|---|
| 101 | - r1118, Change pthread_yield() return value to int, fixes ticket#63.
|
|---|
| 102 |
|
|---|
| 103 | * Thu Aug 14 2014 yd
|
|---|
| 104 | - r812-813, set stack to be at least 2MB for new threads.
|
|---|
| 105 | - Pull sources directly from SVN/GIT, ticket#76.
|
|---|
| 106 |
|
|---|
| 107 | * Fri Apr 25 2014 Dmitriy Kuminov <coding@dmik.org>
|
|---|
| 108 | - r720, Return proper POSIX errors in 'key' APIs. Fix pthread_key_delete() return code.
|
|---|
| 109 |
|
|---|
| 110 | * Thu Apr 24 2014 Dmitriy Kuminov <coding@dmik.org>
|
|---|
| 111 | - r718, fix invalid dereference in TlsAlloc and TlsFree.
|
|---|
| 112 |
|
|---|
| 113 | * Wed Feb 26 2014 komh
|
|---|
| 114 | - r704, pthread_mutex_destroy() crashs if a variable with PTHREAD_MUTEX_INITIALIZER is passed.
|
|---|
| 115 |
|
|---|
| 116 | * Sat Nov 17 2013 yd
|
|---|
| 117 | - r684, fix initializer for mutex destroy, fixes AOO i123001.
|
|---|
| 118 |
|
|---|
| 119 | * Mon Sep 24 2012 yd
|
|---|
| 120 | - added stubs for pthread_rwlock_* functions.
|
|---|
| 121 |
|
|---|
| 122 | * Tue Mar 13 2012 yd
|
|---|
| 123 | - added missing prototypes and exports (detach and kill).
|
|---|
| 124 |
|
|---|
| 125 | * Wed Nov 02 2011 yd
|
|---|
| 126 | - added -Zdll to build system
|
|---|
| 127 | - improved build system
|
|---|
| 128 |
|
|---|
| 129 | * Thu Oct 11 2011 yd
|
|---|
| 130 | - exception record must be on stack
|
|---|
| 131 | - always uninstall record from running thread
|
|---|
| 132 | - use new LibLoadExceptq to enable exceptq only if main app loads it. Code by Rich Walsh.
|
|---|
| 133 |
|
|---|
| 134 | * Thu Sep 22 2011 yd
|
|---|
| 135 | - enable high memory access for library, otherwise every app using it is forced to use low memory (see git).
|
|---|