diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..46dfb0b --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/date_1.2-38.tar.gz diff --git a/R-date.spec b/R-date.spec new file mode 100644 index 0000000..d40d7dc --- /dev/null +++ b/R-date.spec @@ -0,0 +1,64 @@ +%global packname date +%global rlibdir %{_libdir}/R/library + + +Name: R-%{packname} +Version: 1.2.38 +Release: 1%{?dist} +Summary: Functions for Handling Dates + +License: GPLv2 +URL: https://cran.r-project.org/web/packages/%{packname}/index.html +Source0: https://cran.r-project.org/src/contrib/%{packname}_1.2-38.tar.gz + +# Here's the R view of the dependencies world: +# Depends: +# Imports: R-graphics +# Suggests: +# LinkingTo: +# Enhances: + +Requires: R-graphics + +BuildRequires: R-devel tex(latex) +BuildRequires: R-graphics + +%description +Functions for handling dates. + + +%prep +%setup -q -c -n %{packname} + + +%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 + + +%check +%{_bindir}/R CMD check %{packname} + + +%files +%dir %{rlibdir}/%{packname} +%doc %{rlibdir}/%{packname}/html +%{rlibdir}/%{packname}/DESCRIPTION +%doc %{rlibdir}/%{packname}/CITATION +%{rlibdir}/%{packname}/INDEX +%{rlibdir}/%{packname}/NAMESPACE +%{rlibdir}/%{packname}/Meta +%{rlibdir}/%{packname}/R +%{rlibdir}/%{packname}/help +%dir %{rlibdir}/%{packname}/libs +%{rlibdir}/%{packname}/libs/%{packname}.so + + +%changelog +* Sun Mar 25 2018 Elliott Sales de Andrade - 1.2.38-1 +- initial package for Fedora diff --git a/README.md b/README.md deleted file mode 100644 index 2ba2b80..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# R-date - -The R-date package \ No newline at end of file diff --git a/sources b/sources new file mode 100644 index 0000000..3bac1f1 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (date_1.2-38.tar.gz) = 018a9434dc4e03ed7908b4b44b027303ac90df9f371252f97c3335c20ec306e2697166d3348b1929e4a0916f3499a51ac5ff89cd0ed0405ad75f8eb489b565ea