summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCoprDistGit <copr-devel@lists.fedorahosted.org>2025-08-25 14:01:16 +0000
committerCoprDistGit <copr-devel@lists.fedorahosted.org>2025-08-25 14:01:16 +0000
commitd56111a79ff8c1de598580dd0f73cced4ed96c85 (patch)
tree3047e2901896a40a620cb831c6e1ca1036f2bc1c
parent294c5a59643a452cdc960cfa012b09d403a31095 (diff)
automatic import of R-CRAN-objectSignalsf43
-rw-r--r--.gitignore1
-rw-r--r--R-CRAN-objectSignals.spec53
-rw-r--r--sources1
3 files changed, 55 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..e28c636 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/objectSignals_0.10.3.tar.gz
diff --git a/R-CRAN-objectSignals.spec b/R-CRAN-objectSignals.spec
new file mode 100644
index 0000000..e9dfe8d
--- /dev/null
+++ b/R-CRAN-objectSignals.spec
@@ -0,0 +1,53 @@
+%global __brp_check_rpaths %{nil}
+%global packname objectSignals
+%global packver 0.10.3
+%global rlibdir /usr/local/lib/R/library
+
+Name: R-CRAN-%{packname}
+Version: 0.10.3
+Release: 1%{?dist}%{?buildtag}
+Summary: Observer Pattern for S4
+
+License: GPL (>= 2)
+URL: https://cran.r-project.org/package=%{packname}
+Source0: %{url}&version=%{packver}#/%{packname}_%{packver}.tar.gz
+
+
+BuildRequires: R-devel >= 2.12
+Requires: R-core >= 2.12
+BuildArch: noarch
+BuildRequires: R-methods
+Requires: R-methods
+
+%description
+A mutable Signal object can report changes to its state, clients could
+register functions so that they are called whenever the signal is emitted.
+The signal could be emitted, disconnected, blocked, unblocked, and
+buffered.
+
+%prep
+%setup -q -c -n %{packname}
+
+# fix end of executable files
+find -type f -executable -exec grep -Iq . {} \; -exec sed -i -e '$a\' {} \;
+# prevent binary stripping
+[ -d %{packname}/src ] && find %{packname}/src -type f -exec \
+ sed -i 's@/usr/bin/strip@/usr/bin/true@g' {} \; || true
+[ -d %{packname}/src ] && find %{packname}/src/Make* -type f -exec \
+ sed -i 's@-g0@@g' {} \; || true
+# don't allow local prefix in executable scripts
+find -type f -executable -exec sed -Ei 's@#!( )*/usr/local/bin@#!/usr/bin@g' {} \;
+
+%build
+
+%install
+
+mkdir -p %{buildroot}%{rlibdir}
+%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
+test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
+rm -f %{buildroot}%{rlibdir}/R.css
+# remove buildroot from installed files
+find %{buildroot}%{rlibdir} -type f -exec sed -i "s@%{buildroot}@@g" {} \;
+
+%files
+%{rlibdir}/%{packname}
diff --git a/sources b/sources
new file mode 100644
index 0000000..1460751
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+6b76acd9915ae4bd1e9b84d972810360 objectSignals_0.10.3.tar.gz