Skip to content

Commit

Permalink
Revert to version 0.21.0
Browse files Browse the repository at this point in the history
As noted in an autospec feature request [0], the latest release of R-NMF
requires a Bioconductor package, namely `Biobase`, and autospec does not
support packaging of Biobase, or any other Bioconductor package, yet.

Move back to the 0.21.0 release, since we can actually build it.

Signed-off-by: Patrick McCarty <[email protected]>
  • Loading branch information
phmccarty committed Feb 28, 2022
1 parent 55311a7 commit d0677f3
Show file tree
Hide file tree
Showing 7 changed files with 69 additions and 17 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
PKG_NAME := R-NMF
URL = https://cran.r-project.org/src/contrib/NMF_0.23.0.tar.gz
URL = https://cran.r-project.org/src/contrib/NMF_0.21.0.tar.gz
ARCHIVES =

include ../common/Makefile.common
68 changes: 60 additions & 8 deletions R-NMF.spec
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
# Generated by: autospec.py
#
Name : R-NMF
Version : 0.23.0
Release : 38
URL : https://cran.r-project.org/src/contrib/NMF_0.23.0.tar.gz
Source0 : https://cran.r-project.org/src/contrib/NMF_0.23.0.tar.gz
Version : 0.21.0
Release : 39
URL : https://cran.r-project.org/src/contrib/NMF_0.21.0.tar.gz
Source0 : https://cran.r-project.org/src/contrib/NMF_0.21.0.tar.gz
Summary : Algorithms and Framework for Nonnegative Matrix Factorization
Group : Development/Tools
License : GPL-2.0+
Requires: R-BiocManager
Requires: R-NMF-lib = %{version}-%{release}
Requires: R-RColorBrewer
Requires: R-colorspace
Requires: R-digest
Expand All @@ -23,7 +23,6 @@ Requires: R-registry
Requires: R-reshape2
Requires: R-rngtools
Requires: R-stringr
BuildRequires : R-BiocManager
BuildRequires : R-RColorBrewer
BuildRequires : R-colorspace
BuildRequires : R-digest
Expand All @@ -45,6 +44,14 @@ Factorization (NMF). The package implements a set of already published algorithm
in C++, and the main interface function provides an easy way of performing
parallel computations on multicore machines.

%package lib
Summary: lib components for the R-NMF package.
Group: Libraries

%description lib
lib components for the R-NMF package.


%prep
%setup -q -c -n NMF
cd %{_builddir}/NMF
Expand All @@ -54,10 +61,10 @@ export http_proxy=http://127.0.0.1:9/
export https_proxy=http://127.0.0.1:9/
export no_proxy=localhost,127.0.0.1,0.0.0.0
export LANG=C.UTF-8
export SOURCE_DATE_EPOCH=1636041953
export SOURCE_DATE_EPOCH=1646087848

%install
export SOURCE_DATE_EPOCH=1636041953
export SOURCE_DATE_EPOCH=1646087848
rm -rf %{buildroot}
export LANG=C.UTF-8
export CFLAGS="$CFLAGS -O3 -flto -fno-semantic-interposition "
Expand Down Expand Up @@ -98,3 +105,48 @@ R CMD check --no-manual --no-examples --no-codoc NMF || :

%files
%defattr(-,root,root,-)
/usr/lib64/R/library/NMF/CITATION
/usr/lib64/R/library/NMF/DESCRIPTION
/usr/lib64/R/library/NMF/INDEX
/usr/lib64/R/library/NMF/Meta/Rd.rds
/usr/lib64/R/library/NMF/Meta/data.rds
/usr/lib64/R/library/NMF/Meta/demo.rds
/usr/lib64/R/library/NMF/Meta/features.rds
/usr/lib64/R/library/NMF/Meta/hsearch.rds
/usr/lib64/R/library/NMF/Meta/links.rds
/usr/lib64/R/library/NMF/Meta/nsInfo.rds
/usr/lib64/R/library/NMF/Meta/package.rds
/usr/lib64/R/library/NMF/Meta/vignette.rds
/usr/lib64/R/library/NMF/NAMESPACE
/usr/lib64/R/library/NMF/NEWS
/usr/lib64/R/library/NMF/R/NMF
/usr/lib64/R/library/NMF/R/NMF.rdb
/usr/lib64/R/library/NMF/R/NMF.rdx
/usr/lib64/R/library/NMF/REFERENCES.bib
/usr/lib64/R/library/NMF/data/esGolub.rda
/usr/lib64/R/library/NMF/demo/aheatmap.R
/usr/lib64/R/library/NMF/demo/heatmaps.R
/usr/lib64/R/library/NMF/demo/nmf.R
/usr/lib64/R/library/NMF/doc/NMF-vignette.R
/usr/lib64/R/library/NMF/doc/NMF-vignette.Rnw
/usr/lib64/R/library/NMF/doc/NMF-vignette.pdf
/usr/lib64/R/library/NMF/doc/consensus.pdf
/usr/lib64/R/library/NMF/doc/heatmaps.R
/usr/lib64/R/library/NMF/doc/heatmaps.Rnw
/usr/lib64/R/library/NMF/doc/heatmaps.pdf
/usr/lib64/R/library/NMF/doc/index.html
/usr/lib64/R/library/NMF/help/AnIndex
/usr/lib64/R/library/NMF/help/NMF.rdb
/usr/lib64/R/library/NMF/help/NMF.rdx
/usr/lib64/R/library/NMF/help/aliases.rds
/usr/lib64/R/library/NMF/help/paths.rds
/usr/lib64/R/library/NMF/html/00Index.html
/usr/lib64/R/library/NMF/html/R.css
/usr/lib64/R/library/NMF/scripts/grid.R
/usr/lib64/R/library/NMF/scripts/report.Rmd

%files lib
%defattr(-,root,root,-)
/usr/lib64/R/library/NMF/libs/NMF.so
/usr/lib64/R/library/NMF/libs/NMF.so.avx2
/usr/lib64/R/library/NMF/libs/NMF.so.avx512
2 changes: 1 addition & 1 deletion options.conf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = R-NMF
url = https://cran.r-project.org/src/contrib/NMF_0.23.0.tar.gz
url = https://cran.r-project.org/src/contrib/NMF_0.21.0.tar.gz
archives =
giturl =
domain =
Expand Down
2 changes: 1 addition & 1 deletion release
Original file line number Diff line number Diff line change
@@ -1 +1 @@
38
39
8 changes: 4 additions & 4 deletions testresults
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Total : 0
Pass : 0
Fail : 0
Skip : 0
Total : 50
Pass : 43
Fail : 5
Skip : 2
XFail : 0
2 changes: 1 addition & 1 deletion upstream
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6caadce58f7d99a4aa66cf7d756842e8d76d18f5/NMF_0.23.0.tar.gz
a4fab48e8d7d3dec8f02e9d286351b5170aa3e14/NMF_0.21.0.tar.gz
2 changes: 1 addition & 1 deletion versions
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.23.0
0.21.0

0 comments on commit d0677f3

Please sign in to comment.