[packages/python-prettytable] - new

qboosh qboosh at pld-linux.org
Fri Apr 28 17:32:25 CEST 2017


commit 295f1001938d189ad62a807ac386d68c37381fa7
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Fri Apr 28 17:32:40 2017 +0200

    - new

 python-prettytable.spec | 106 ++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 106 insertions(+)
---
diff --git a/python-prettytable.spec b/python-prettytable.spec
new file mode 100644
index 0000000..0d71dfb
--- /dev/null
+++ b/python-prettytable.spec
@@ -0,0 +1,106 @@
+#
+# Conditional build:
+%bcond_without	tests	# unit tests
+%bcond_without	python2 # CPython 2.x module
+%bcond_without	python3 # CPython 3.x module
+
+Summary:	Python 2 library for displaying tabular data in nice ASCII table format
+Summary(pl.UTF-8):	Biblioteka Pythona 2 do wyświetlania danych tabelarycznych w ładnej tabelce ASCII
+Name:		python-prettytable
+Version:	0.7.2
+Release:	1
+License:	BSD
+Group:		Libraries/Python
+#Source0Download: https://pypi.python.org/simple/prettytable/
+Source0:	https://pypi.python.org/packages/source/P/PrettyTable/prettytable-%{version}.tar.bz2
+# Source0-md5:	760dc900590ac3c46736167e09fa463a
+URL:		https://pypi.python.org/pypi/PrettyTable
+%if %{with tests} && %(locale -a | grep -q '^C\.UTF-8$'; echo $?)
+BuildRequires:	glibc-localedb-all
+%endif
+%if %{with python2}
+BuildRequires:	python-modules >= 1:2.4
+BuildRequires:	python-setuptools
+%endif
+%if %{with python3}
+BuildRequires:	python3-modules >= 1:3.2
+BuildRequires:	python3-setuptools
+%endif
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.714
+Requires:	python-modules >= 1:2.4
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+A simple Python 2 library for easily displaying tabular data in a
+visually appealing ASCII table format.
+
+%description -l pl.UTF-8
+Prosta biblioteka Pythona 2 do łatwego wyświetlania danych
+tabelarycznych w ładnie wyglądającej tabelce ASCII.
+
+%package -n python3-prettytable
+Summary:	Python 3 library for displaying tabular data in nice ASCII table format
+Summary(pl.UTF-8):	Biblioteka Pythona 3 do wyświetlania danych tabelarycznych w ładnej tabelce ASCII
+Group:		Libraries/Python
+Requires:	python3-modules >= 1:3.2
+
+%description -n python3-prettytable
+A simple Python 3 library for easily displaying tabular data in a
+visually appealing ASCII table format.
+
+%description -n python3-prettytable -l pl.UTF-8
+Prosta biblioteka Pythona 3 do łatwego wyświetlania danych
+tabelarycznych w ładnie wyglądającej tabelce ASCII.
+
+%prep
+%setup -q -n prettytable-%{version}
+
+%build
+%if %{with tests}
+export LC_ALL=C.UTF-8
+%endif
+
+%if %{with python2}
+%py_build %{?with_tests:test}
+%endif
+
+%if %{with python3}
+%py3_build %{?with_tests:test}
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%if %{with python2}
+%py_install
+
+%py_postclean
+%endif
+
+%if %{with python3}
+%py3_install
+%endif
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%if %{with python2}
+%files
+%defattr(644,root,root,755)
+%doc CHANGELOG README
+%{py_sitescriptdir}/prettytable.py[co]
+%if "%{py_ver}" > "2.4"
+%{py_sitescriptdir}/prettytable-%{version}-py*.egg-info
+%endif
+%endif
+
+%if %{with python3}
+%files -n python3-prettytable
+%defattr(644,root,root,755)
+%doc CHANGELOG README
+%{py3_sitescriptdir}/prettytable.py
+%{py3_sitescriptdir}/__pycache__/prettytable.cpython-*.py[co]
+%{py3_sitescriptdir}/prettytable-%{version}-py*.egg-info
+%endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-prettytable.git/commitdiff/295f1001938d189ad62a807ac386d68c37381fa7



More information about the pld-cvs-commit mailing list