Compare commits

..

No commits in common. "rawhide" and "f27" have entirely different histories.
rawhide ... f27

4 changed files with 28 additions and 158 deletions

6
.gitignore vendored
View File

@ -3,9 +3,3 @@
/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

View File

@ -1,36 +1,42 @@
%global packname later
%global packver 1.3.2
%global packname later
%global rlibdir %{_libdir}/R/library
Name: R-%{packname}
Version: %{packver}
Release: 2%{?dist}
Summary: Utilities for Scheduling Functions to Execute Later with Event Loops
# rmarkdown is not yet available.
%global with_doc 1
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
Name: R-%{packname}
Version: 0.7.5
Release: 1%{?dist}
Summary: Utilities for Delaying Function Execution
# 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
# Here's the R view of the dependencies world:
# Depends:
# Imports: R-Rcpp >= 0.12.9, R-rlang
# Suggests: R-knitr, R-rmarkdown, R-testthat >= 2.1.0
# LinkingTo: R-Rcpp
# Suggests: R-knitr, R-rmarkdown, R-testthat
# LinkingTo: R-Rcpp, R-BH
# Enhances:
Requires: R-Rcpp >= 0.12.9
Requires: R-rlang
BuildRequires: R-devel
BuildRequires: tex(latex)
BuildRequires: R-Rcpp-devel >= 0.12.9
BuildRequires: R-BH-devel
BuildRequires: R-rlang
BuildRequires: R-testthat
%if %{with_doc}
BuildRequires: R-knitr
BuildRequires: R-rmarkdown
BuildRequires: R-testthat >= 2.1.0
%endif
%description
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.
Executes arbitrary R or C functions some time after the current time,
after the R execution stack has emptied.
%package devel
@ -44,11 +50,6 @@ 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
@ -64,7 +65,11 @@ rm %{buildroot}%{rlibdir}/%{packname}/bgtest.cpp
%check
%{_bindir}/R CMD check --ignore-vignettes %{packname}
%if %{with_doc}
%{_bindir}/R CMD check %{packname}
%else
_R_CHECK_FORCE_SUGGESTS_=0 %{_bindir}/R CMD check %{packname} --ignore-vignettes
%endif
%files
@ -73,7 +78,6 @@ rm %{buildroot}%{rlibdir}/%{packname}/bgtest.cpp
%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,77 +91,6 @@ rm %{buildroot}%{rlibdir}/%{packname}/bgtest.cpp
%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

View File

@ -1 +1 @@
SHA512 (later_1.3.2.tar.gz) = 76fa81a0bf3fb69ac590992a549110fb4c59238bd662b7419eac0c4b892d40d9df4313d38f09d69d6d5dfc118fc38187e13766430900afaa3289178413dc9d5c
SHA512 (later_0.7.5.tar.gz) = bc77ea45612a4889b48ebf1488bd8343fde926b4e1aedceaa6f0d5dd11bbbb9cfa5f446901b1dd2a2833d0ec55a5d6348b2d999331e5ad42f1c6076077e40c1e

View File

@ -1,57 +0,0 @@
#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 */