SPECS: python-rpy2.spec (NEW) - based on template-python.spec
wrobell
wrobell at pld-linux.org
Thu Jan 22 02:17:54 CET 2009
Author: wrobell Date: Thu Jan 22 01:17:54 2009 GMT
Module: SPECS Tag: HEAD
---- Log message:
- based on template-python.spec
---- Files affected:
SPECS:
python-rpy2.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SPECS/python-rpy2.spec
diff -u /dev/null SPECS/python-rpy2.spec:1.1
--- /dev/null Thu Jan 22 02:17:54 2009
+++ SPECS/python-rpy2.spec Thu Jan 22 02:17:48 2009
@@ -0,0 +1,71 @@
+# $Revision$, $Date$
+%define module rpy2
+Summary: Simple and robust Python interface to the R Programming Language
+Name: python-%{module}
+Version: 2.0.1
+Release: 1
+License: LGPL v2.1+
+Group: Development/Languages/Python
+Source0: http://dl.sourceforge.net/rpy/%{module}-%{version}.tar.gz
+# Source0-md5: 3a5e1a82466b2e47c68b1937e5865c54
+URL: http://rpy.sourceforge.net/
+BuildRequires: python-devel
+BuildRequires: rpm-pythonprov
+# if py_postclean is used
+BuildRequires: rpmbuild(macros) >= 1.219
+#%pyrequires_eq python-libs
+%pyrequires_eq python-modules
+#BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+RPy is a very simple, yet robust, Python interface to the R Programming
+Language. It can manage all kinds of R objects and can execute arbitrary R
+functions (including the graphic functions). All errors from the R language
+are converted to Python exceptions. Any module installed for the R system
+can be used from within Python.
+
+%prep
+%setup -q -n %{module}-%{version}
+
+%build
+export CFLAGS="%{rpmcflags}"
+%{__python} setup.py build
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__python} setup.py install \
+ --optimize=2 \
+ --root=$RPM_BUILD_ROOT
+
+%py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
+%py_comp $RPM_BUILD_ROOT%{py_sitedir}
+%py_postclean
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS NEWS README
+%dir %{py_sitedir}/%{module}
+%{py_sitedir}/*.egg-info
+
+%{py_sitedir}/%{module}/*.py[co]
+%{py_sitedir}/%{module}/rlike
+%{py_sitedir}/%{module}/robjects
+
+%dir %{py_sitedir}/%{module}/rinterface
+%attr(755,root,root) %{py_sitedir}/%{module}/rinterface/*.so
+%{py_sitedir}/%{module}/rinterface/*.py[co]
+%{py_sitedir}/%{module}/rinterface/tests
+
+%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1 2009/01/22 01:17:48 wrobell
+- based on template-python.spec
+
================================================================
More information about the pld-cvs-commit
mailing list