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