Compare commits
37 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
7d12caa288 | ||
|
9581a8f181 | ||
|
8760509c32 | ||
|
f0efff25c3 | ||
|
58b15bc546 | ||
|
17539e9115 | ||
|
40e7c4ae6c | ||
|
6064433970 | ||
|
d774c66649 | ||
|
e19b190bed | ||
|
3345c4cd26 | ||
|
01ff054bfb | ||
|
b97b801700 | ||
|
3a53a4d905 | ||
|
2d768c739f | ||
|
94c624fc17 | ||
|
e8b3d4211f | ||
|
11da011ea8 | ||
|
7602ab74f1 | ||
|
ee649cf5be | ||
|
1eebe9d4c1 | ||
|
88e9db5a65 | ||
|
56cd01fe2f | ||
|
c612373602 | ||
|
c7771f3998 | ||
|
9e6df48ad8 | ||
|
cf44dde280 | ||
|
792545bad3 | ||
|
7e03c2aebc | ||
|
34524432a2 | ||
|
4ec71a2ae7 | ||
|
a5dc4c1dfb | ||
|
b2a43477d3 | ||
|
3e12844c70 | ||
|
200e7d827e | ||
|
8a6b694443 | ||
|
201491272a |
10
.gitignore
vendored
10
.gitignore
vendored
@ -1 +1,11 @@
|
||||
/later_0.7.1.tar.gz
|
||||
/later_0.7.2.tar.gz
|
||||
/later_0.7.3.tar.gz
|
||||
/later_0.7.4.tar.gz
|
||||
/later_0.7.5.tar.gz
|
||||
/later_0.8.0.tar.gz
|
||||
/later_1.0.0.tar.gz
|
||||
/later_1.1.0.1.tar.gz
|
||||
/later_1.2.0.tar.gz
|
||||
/later_1.3.0.tar.gz
|
||||
/later_1.3.2.tar.gz
|
||||
|
146
R-later.spec
146
R-later.spec
@ -1,38 +1,36 @@
|
||||
%global packname later
|
||||
%global packname later
|
||||
%global packver 1.3.2
|
||||
%global rlibdir %{_libdir}/R/library
|
||||
|
||||
# rmarkdown is not yet available.
|
||||
%global with_doc 0
|
||||
|
||||
Name: R-%{packname}
|
||||
Version: 0.7.1
|
||||
Version: %{packver}
|
||||
Release: 2%{?dist}
|
||||
Summary: Utilities for Delaying Function Execution
|
||||
Summary: Utilities for Scheduling Functions to Execute Later with Event Loops
|
||||
|
||||
# Main GPLv2+; TinyCThread: MIT
|
||||
License: GPLv2+ and MIT
|
||||
URL: https://cran.r-project.org/web/packages/%{packname}/index.html
|
||||
Source0: https://cran.r-project.org/src/contrib/%{packname}_%{version}.tar.gz
|
||||
License: MIT
|
||||
URL: https://CRAN.R-project.org/package=%{packname}
|
||||
Source0: https://cran.r-project.org/src/contrib/%{packname}_%{packver}.tar.gz
|
||||
# Remove bundled tinycthread and use C11 threads directly.
|
||||
Source1: tinycthread-threads-wrapper.h
|
||||
|
||||
# Here's the R view of the dependencies world:
|
||||
# Depends:
|
||||
# Imports: R-Rcpp R-rlang
|
||||
# Suggests: R-knitr R-rmarkdown R-testthat
|
||||
# LinkingTo: R-Rcpp R-BH
|
||||
# Imports: R-Rcpp >= 0.12.9, R-rlang
|
||||
# Suggests: R-knitr, R-rmarkdown, R-testthat >= 2.1.0
|
||||
# LinkingTo: R-Rcpp
|
||||
# Enhances:
|
||||
|
||||
Requires: R-Rcpp R-rlang
|
||||
|
||||
BuildRequires: R-devel tex(latex)
|
||||
BuildRequires: R-Rcpp-devel R-BH-devel R-rlang
|
||||
BuildRequires: R-testthat
|
||||
%if %{with_doc}
|
||||
BuildRequires: R-knitr R-rmarkdown
|
||||
%endif
|
||||
BuildRequires: R-devel
|
||||
BuildRequires: tex(latex)
|
||||
BuildRequires: R-Rcpp-devel >= 0.12.9
|
||||
BuildRequires: R-rlang
|
||||
BuildRequires: R-knitr
|
||||
BuildRequires: R-rmarkdown
|
||||
BuildRequires: R-testthat >= 2.1.0
|
||||
|
||||
%description
|
||||
Executes arbitrary R or C functions some time after the current time,
|
||||
after the R execution stack has emptied.
|
||||
Executes arbitrary R or C functions some time after the current time, after the
|
||||
R execution stack has emptied. The functions are scheduled in an event loop.
|
||||
|
||||
|
||||
%package devel
|
||||
@ -46,6 +44,11 @@ Development files for %{name}.
|
||||
%prep
|
||||
%setup -q -c -n %{packname}
|
||||
|
||||
# Ensure we don't use this bundled code.
|
||||
rm %{packname}/src/{badthreads.h,tinycthread.c}
|
||||
cp %SOURCE1 %{packname}/src/tinycthread.h
|
||||
sed -i -e '/badthread/d' -e '/tinycthread/d' %{packname}/MD5
|
||||
|
||||
|
||||
%build
|
||||
|
||||
@ -61,11 +64,7 @@ rm %{buildroot}%{rlibdir}/%{packname}/bgtest.cpp
|
||||
|
||||
|
||||
%check
|
||||
%if %{with_doc}
|
||||
%{_bindir}/R CMD check %{packname}
|
||||
%else
|
||||
_R_CHECK_FORCE_SUGGESTS_=0 %{_bindir}/R CMD check %{packname} --ignore-vignettes
|
||||
%endif
|
||||
%{_bindir}/R CMD check --ignore-vignettes %{packname}
|
||||
|
||||
|
||||
%files
|
||||
@ -74,6 +73,7 @@ _R_CHECK_FORCE_SUGGESTS_=0 %{_bindir}/R CMD check %{packname} --ignore-vignettes
|
||||
%doc %{rlibdir}/%{packname}/html
|
||||
%{rlibdir}/%{packname}/DESCRIPTION
|
||||
%doc %{rlibdir}/%{packname}/NEWS.md
|
||||
%license %{rlibdir}/%{packname}/LICENSE
|
||||
%{rlibdir}/%{packname}/INDEX
|
||||
%{rlibdir}/%{packname}/NAMESPACE
|
||||
%{rlibdir}/%{packname}/Meta
|
||||
@ -87,6 +87,96 @@ _R_CHECK_FORCE_SUGGESTS_=0 %{_bindir}/R CMD check %{packname} --ignore-vignettes
|
||||
|
||||
|
||||
%changelog
|
||||
* Wed Jul 17 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.2-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
|
||||
|
||||
* Fri Apr 26 2024 Iñaki Úcar <iucar@fedoraproject.org> - 1.3.2-1
|
||||
- Update to latest version
|
||||
|
||||
* Thu Apr 25 2024 Iñaki Úcar <iucar@fedoraproject.org> - 1.3.0-7
|
||||
- R-maint-sig mass rebuild
|
||||
|
||||
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.0-6
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||
|
||||
* Fri Jan 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.0-5
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||
|
||||
* Wed Jul 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.0-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
||||
|
||||
* Fri Apr 21 2023 Iñaki Úcar <iucar@fedoraproject.org> - 1.3.0-3
|
||||
- R-maint-sig mass rebuild
|
||||
|
||||
* Wed Jan 18 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.0-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
||||
|
||||
* Thu Sep 1 2022 Tom Callaway <spot@fedoraproject.org> - 1.3.0-1
|
||||
- update to 1.3.0
|
||||
- rebuild for R 4.2.1
|
||||
|
||||
* Wed Jul 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-5
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
||||
|
||||
* Wed Jan 19 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
||||
|
||||
* Wed Jul 21 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
||||
|
||||
* Mon Jun 14 2021 Tom Callaway <spot@fedoraproject.org> - 1.2.0-2
|
||||
- Rebuilt for R 4.1.0
|
||||
|
||||
* Sat Apr 24 2021 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 1.2.0-1
|
||||
- Update to latest version (#1952974)
|
||||
|
||||
* Mon Jan 25 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0.1-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
||||
|
||||
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0.1-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||
|
||||
* Fri Jun 05 2020 Tom Callaway <spot@fedoraproject.org> - 1.1.0.1-1
|
||||
- update to 1.1.0.1
|
||||
- rebuild for R 4
|
||||
|
||||
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
||||
|
||||
* Sat Oct 05 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 1.0.0-1
|
||||
- Update to latest version
|
||||
|
||||
* Sun Aug 11 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.8.0-3
|
||||
- Remove explicit dependencies provided by automatic dependency generator
|
||||
|
||||
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.0-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
||||
|
||||
* Mon Feb 11 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.8.0-1
|
||||
- Update to latest version
|
||||
|
||||
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.5-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
||||
|
||||
* Sat Sep 22 2018 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.7.5-1
|
||||
- Update to latest version
|
||||
|
||||
* Tue Sep 04 2018 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.7.4-1
|
||||
- Update to latest version
|
||||
|
||||
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.3-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
||||
|
||||
* Fri Jun 15 2018 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.7.3-1
|
||||
- Update to latest version
|
||||
- Enable documentation
|
||||
|
||||
* Thu May 17 2018 Tom Callaway <spot@fedoraproject.org> - 0.7.2-2
|
||||
- rebuild for R 3.5.0
|
||||
|
||||
* Mon May 07 2018 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.7.2-1
|
||||
- Update to latest version
|
||||
|
||||
* Fri Apr 20 2018 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.7.1-2
|
||||
- Remove unnecessary Requires
|
||||
|
||||
|
2
sources
2
sources
@ -1 +1 @@
|
||||
SHA512 (later_0.7.1.tar.gz) = 13b4333f156d1038f52f54073a0b97517cfd78e34aedb2cf40bf18aa225073154c597567c47c7e171b1c127504174a78ff1f4da820fd784fa40bbb811cd0999d
|
||||
SHA512 (later_1.3.2.tar.gz) = 76fa81a0bf3fb69ac590992a549110fb4c59238bd662b7419eac0c4b892d40d9df4313d38f09d69d6d5dfc118fc38187e13766430900afaa3289178413dc9d5c
|
||||
|
57
tinycthread-threads-wrapper.h
Normal file
57
tinycthread-threads-wrapper.h
Normal file
@ -0,0 +1,57 @@
|
||||
#ifndef TINYCTHREAD_THREAD_H
|
||||
#define TINYCTHREAD_THREAD_H
|
||||
|
||||
#include <threads.h>
|
||||
|
||||
/* Threads */
|
||||
#define tct_thrd_t thrd_t
|
||||
#define tct_thrd_create thrd_create
|
||||
#define tct_thrd_equal thrd_equal
|
||||
#define tct_thrd_current thrd_current
|
||||
#define tct_thrd_sleep thrd_sleep
|
||||
#define tct_thrd_yield thrd_yield
|
||||
#define tct_thrd_exit thrd_exit
|
||||
#define tct_thrd_detach thrd_detach
|
||||
#define tct_thrd_join thrd_join
|
||||
#define tct_thrd_success thrd_success
|
||||
#define tct_thrd_timedout thrd_timedout
|
||||
#define tct_thrd_busy thrd_busy
|
||||
#define tct_thrd_nomem thrd_nomem
|
||||
#define tct_thrd_error thrd_error
|
||||
#define tct_thrd_start_t thrd_start_t
|
||||
|
||||
/* Mutual exclusion */
|
||||
#define tct_mtx_t mtx_t
|
||||
#define tct_mtx_init mtx_init
|
||||
#define tct_mtx_lock mtx_lock
|
||||
#define tct_mtx_timedlock mtx_timedlock
|
||||
#define tct_mtx_trylock mtx_trylock
|
||||
#define tct_mtx_unlock mtx_unlock
|
||||
#define tct_mtx_destroy mtx_destroy
|
||||
#define tct_mtx_plain mtx_plain
|
||||
#define tct_mtx_recursive mtx_recursive
|
||||
#define tct_mtx_timed mtx_timed
|
||||
|
||||
/* Call once */
|
||||
#define tct_call_once call_once
|
||||
|
||||
/* Condition variables */
|
||||
#define tct_cnd_t cnd_t
|
||||
#define tct_cnd_init cnd_init
|
||||
#define tct_cnd_signal cnd_signal
|
||||
#define tct_cnd_broadcast cnd_broadcast
|
||||
#define tct_cnd_wait cnd_wait
|
||||
#define tct_cnd_timedwait cnd_timedwait
|
||||
#define tct_cnd_destroy cnd_destroy
|
||||
|
||||
/* Thread-local storage */
|
||||
#define tct_thread_local thread_local
|
||||
#define tct_tss_t tss_t
|
||||
#define TCT_TSS_DTOR_ITERATIONS TSS_DTOR_ITERATIONS
|
||||
#define tct_tss_dtor_t tss_dtor_t
|
||||
#define tct_tss_create tss_create
|
||||
#define tct_tss_get tss_get
|
||||
#define tct_tss_set tss_set
|
||||
#define tct_tss_delete tss_delete
|
||||
|
||||
#endif /* TINYCTHREAD_THREAD_H */
|
Loading…
Reference in New Issue
Block a user