[python-asciitable] Adding index.rst before importing

Sergio Pascual sergiopr at fedoraproject.org
Mon Jun 6 10:21:51 UTC 2011


commit bfd00d5025d7119fc5c469cee22ef0287c991fa9
Author: Sergio Pascual <sergiopr at fis.ucm.es>
Date:   Mon Jun 6 12:21:33 2011 +0200

    Adding index.rst before importing

 .gitignore             |    1 +
 python-asciitable.spec |  126 ++++++++++++++++++++++++++++++++++++++++++++++++
 sources                |    1 +
 3 files changed, 128 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..5af5038 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/asciitable-0.6.0.tar.gz
diff --git a/python-asciitable.spec b/python-asciitable.spec
new file mode 100644
index 0000000..2059179
--- /dev/null
+++ b/python-asciitable.spec
@@ -0,0 +1,126 @@
+%global upname asciitable
+
+%if 0%{?fedora} > 12 || 0%{?rhel} > 6
+%global with_python3 1
+%else
+%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print (get_python_lib())")}
+%endif
+
+Name: python-%{upname}
+Version: 0.6.0
+Release: 2%{?dist}
+Summary: Extensible ASCII table reader and writer
+License: BSD
+
+Group: Development/Libraries
+URL: http://cxc.harvard.edu/contrib/asciitable/
+Source0: http://pypi.python.org/packages/source/a/%{upname}/%{upname}-%{version}.tar.gz
+BuildRequires: python2-devel python-nose
+BuildArch: noarch
+
+Requires: numpy
+
+%if 0%{?with_python3}
+BuildRequires: python3-devel
+Requires: python3-numpy
+%endif # with_python3
+
+%description
+An extensible ASCII table reader.  Asciitable can read a wide range of ASCII 
+table formats via built-in Extension Reader Classes:
+  * Basic: basic table with customizable delimiters and header configurations
+  * Cds: CDS format table (also Vizier and ApJ machine readable tables)
+  * CommentedHeader: column names given in a line that begins with 
+  the comment character
+  * Daophot: table from the IRAF DAOphot package
+  * Ipac: IPAC format table
+  * NoHeader: basic table with no header where columns are auto-named
+  * Rdb: tab-separated values with an extra line after the column 
+  definition line
+  * Tab: tab-separated values
+
+%if 0%{?with_python3}
+%package -n python3-asciitable
+Summary: Extensible ASCII table reader and writer
+
+%description -n python3-asciitable
+An extensible ASCII table reader.  Asciitable can read a wide range of ASCII 
+table formats via built-in Extension Reader Classes:
+  * Basic: basic table with customizable delimiters and header configurations
+  * Cds: CDS format table (also Vizier and ApJ machine readable tables)
+  * CommentedHeader: column names given in a line that begins with 
+  the comment character
+  * Daophot: table from the IRAF DAOphot package
+  * Ipac: IPAC format table
+  * NoHeader: basic table with no header where columns are auto-named
+  * Rdb: tab-separated values with an extra line after the column 
+  definition line
+  * Tab: tab-separated values
+%endif # with_python3
+
+%prep
+%setup -n %{upname}-%{version} -q
+
+%if 0%{?with_python3}
+rm -rf %{py3dir}
+cp -a . %{py3dir}
+find %{py3dir} -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|'
+%endif # with_python3
+
+find -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python}|'
+
+%build
+%{__python} setup.py build
+
+%if 0%{?with_python3}
+pushd %{py3dir}
+%{__python3} setup.py build
+popd
+%endif # with_python3
+
+%check
+nosetests
+
+%install
+rm -rf %{buildroot}
+%if 0%{?with_python3}
+pushd %{py3dir}
+%{__python3} setup.py install --skip-build --root  %{buildroot}
+popd
+%endif # with_python3
+
+%{__python} setup.py install --skip-build --root  %{buildroot}
+ 
+%files
+%defattr(-,root,root,-)
+%doc CHANGES doc/index.rst
+%{python_sitelib}/*
+
+%if 0%{?with_python3}
+%files -n python3-asciitable
+%defattr(-,root,root,-)
+%doc CHANGES doc/index.rst
+%{python3_sitelib}/*
+%endif # with_python3
+
+
+%changelog
+* Mon Jun 6 2011 Sergio Pascual <sergiopr at fedoraproject.org> - 0.6.0-2
+- Adding index.rst before importing
+
+* Mon May 30 2011 Sergio Pascual <sergiopr at fedoraproject.org> - 0.6.0-1
+- New upstream source
+- Changed define macro by global macro
+
+* Tue Apr 05 2011 Sergio Pascual <sergiopr at fedoraproject.org> - 0.5.1-1
+- New upstream source
+- Building python3 package
+
+* Tue Jan 04 2011 Sergio Pascual <sergiopr at fedoraproject.org> - 0.5.0-1
+- New upstream source
+
+* Wed Nov 17 2010 Sergio Pascual <sergiopr at fedoraproject.org> - 0.3.2-1
+- New upstream source
+
+* Fri Jul 09 2010 Sergio Pascual <sergiopr at fedoraproject.org> - 0.2.5-1
+- Initial spec file
diff --git a/sources b/sources
index e69de29..3cd8c38 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+1bc50c8e8204cb6ed016115e8e4cabfa  asciitable-0.6.0.tar.gz


More information about the scm-commits mailing list