Suite aux conseille judicieux de Pikachu_2014
J'ai trouvé ce spec en ligne ici
http://download.fedora.redhat.com/pub/fedora/linux/extras/6/SRPMS/repoview/R-waveslim.html
%define packname waveslim
Summary: R module, Basic wavelet routines for 1,2 and 3-dimensional signal processing
Name: R-%{packname}
Version: 1.5
Release: 5%{?dist}
License: GPL
Group: Applications/Engineering
Source0: ftp://cran.r-project.org/pub/R/contrib/main/%{packname}_%{version}.tar.gz
URL: http://www.image.ucar.edu/staff/whitcher/
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Requires: R >= 1.9.0
BuildRequires: R >= 1.9.0, tetex-latex, gcc-gfortran
%description
Basic wavelet routines for time series (1D), image (2D)
and array (3D) analysis. The code provided here is based on
wavelet methodology developed in Percival and Walden (2000);
Gencay, Selcuk and Whitcher (2001); the dual-tree complex wavelet
transform (CWT) from Kingsbury (1999, 2001) as implemented by
Selesnick; and Hilbert wavelet pairs (Selesnick 2001, 2002). All
figures in chapters 4-7 of GSW (2001) are reproducible using this
package and R code available at the book website(s) below.
%prep
%setup -q -n %{packname}
%build
%install
%{__rm} -rf %{buildroot}
cd ..; R CMD INSTALL %{packname} -l %{buildroot}%{_libdir}/R/library
%{__rm} -rf %{buildroot}%{_libdir}/R/library/R.css
%check
cd ..;%{_bindir}/R CMD check %{packname}
%clean
%{__rm} -rf %{buildroot}
%post
%{__cat} %{_libdir}/R/library/*/CONTENTS > %{_libdir}/R/doc/html/search/index.txt
%postun
%{__cat} %{_libdir}/R/library/*/CONTENTS > %{_libdir}/R/doc/html/search/index.txt
%files
%defattr(-, root, root, -)
%{_libdir}/R/library/%{packname}
%doc DESCRIPTION
%changelog
* Tue Oct 17 2006 José Matos <jamatos[AT]fc.up.pt> - 1.5-5
- Rebuild for R 2.4.0.
* Thu Sep 14 2006 José Matos <jamatos[AT]fc.up.pt> - 1.5-4
- Rebuild for FC6.
* Sun Jun 4 2006 José Matos <jamatos[AT]fc.up.pt> - 1.5-3
- Rebuild for R-2.3.x
* Wed Mar 08 2006 José Matos <jamatos[AT]fc.up.pt> 1.5-2
- Rename License to GPL only, add gfortran as BR, add DESCRIPTION to %%doc
* Fri Mar 03 2006 José Matos <jamatos[AT]fc.up.pt> 1.5-1
- Initial package creation
Cela m'a permis de modifier mon spec de la manière suivante:
%define packname maanova
Name: R-%{packname}
Version: 1.4.0
Release: 0.2%{?dist}
Summary: Analysis of N-dye Micro Array using mixed model effect
Group: Applications/Productivity
License: GPL
URL: http://www.bioconductor.org/packages/1.9/bioc/html/maanova.html
Source0: http://www.bioconductor.org/packages/1.9/bioc/src/contrib/%{packname}_%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch : noarch
BuildRequires: R
#Requires:
%description
Analysis of N-dye Micro Array experiment using mixed model effect.
Containing anlysis of variance, permutation and bootstrap, cluster
and consensus tree.
%prep
%setup -q -n %{packname}
%build
%install
%{__rm} -rf %{buildroot}
cd ..; R CMD INSTALL %{packname} -l %{buildroot}%{_libdir}/R/library
%{__rm} -rf %{buildroot}%{_libdir}/R/library/R.css
%clean
%{__rm} -rf %{buildroot}
%post
%{__cat} %{_libdir}/R/library/*/CONTENTS > %{_libdir}/R/doc/html/search/index.txt
%postun
%{__cat} %{_libdir}/R/library/*/CONTENTS > %{_libdir}/R/doc/html/search/index.txt
%files
%defattr(-, root, root, -)
%{_libdir}/R/library/%{packname}
%doc DESCRIPTION
%changelog
*Wed Apr 18 2007 Pingou <pingoufc4@yahoo.fr> 1.4.0-0.2
- Change in prep, install clean
- add of post postun
*Wed Apr 18 2007 Pingou <pingoufc4@yahoo.fr> 1.4.0-0.1
-Build of the rpm
Le résultat passe sans problème le rpmbuild- ba
Seul petit bemol... il ne construit pas le rpm :-D ...
Donc il y a un truc quelque part...
++