[packages/R-cran-png] Initial

arekm arekm at pld-linux.org
Sun Apr 5 17:47:58 CEST 2026


commit 37e1dc8df995b8c36e280c75c38f3e1a7785624e
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Sun Apr 5 17:47:45 2026 +0200

    Initial

 R-cran-png.spec | 42 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 42 insertions(+)
---
diff --git a/R-cran-png.spec b/R-cran-png.spec
new file mode 100644
index 0000000..bdca3f6
--- /dev/null
+++ b/R-cran-png.spec
@@ -0,0 +1,42 @@
+%define		fversion	%(echo %{version} |tr r -)
+%define		modulename	png
+Summary:	Read and write PNG images
+Name:		R-cran-%{modulename}
+Version:	0.1r9
+Release:	1
+License:	GPL v2 | GPL v3
+Group:		Applications/Math
+Source0:	https://cran.r-project.org/src/contrib/%{modulename}_%{fversion}.tar.gz
+# Source0-md5:	1410f91d9ac052c15c6eea3bc1c89672
+URL:		https://cran.r-project.org/web/packages/png/index.html
+BuildRequires:	R >= 2.9.0
+BuildRequires:	libpng-devel
+Requires(post,postun):	R >= 2.9.0
+Requires(post,postun):	perl-base
+Requires(post,postun):	textutils
+Requires:	R >= 2.9.0
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This package provides an easy and simple way to read, write and
+display bitmap images stored in the PNG format. It can read and write
+both files and in-memory raw vectors.
+
+%prep
+%setup -q -c
+
+%build
+R CMD build %{modulename}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_libdir}/R/library/
+R CMD INSTALL %{modulename} --library=$RPM_BUILD_ROOT%{_libdir}/R/library/
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc %{modulename}/{DESCRIPTION,NEWS}
+%{_libdir}/R/library/%{modulename}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/R-cran-png.git/commitdiff/37e1dc8df995b8c36e280c75c38f3e1a7785624e



More information about the pld-cvs-commit mailing list