3 %bcond_without python2 # CPython 2.x module
4 %bcond_without python3 # CPython 3.x module
6 %define module tabulate
7 Summary: Pretty-print tabular data
8 Summary(pl.UTF-8): Ładne wypisywanie danych tabelarycznych
10 # keep 0.8.x here for python2 support
14 Group: Libraries/Python
15 #Source0Download: https://pypi.org/simple/tabulate/
16 Source0: https://files.pythonhosted.org/packages/source/t/tabulate/%{module}-%{version}.tar.gz
17 # Source0-md5: 70cc6906675fc840e2675ecd022641bc
18 URL: https://github.com/astanin/python-tabulate
20 BuildRequires: python-modules >= 1:2.7
21 BuildRequires: python-setuptools
24 BuildRequires: python3-modules >= 1:3.5
25 BuildRequires: python3-setuptools
27 BuildRequires: rpm-pythonprov
28 BuildRequires: rpmbuild(macros) >= 1.714
29 Requires: python-modules >= 1:2.7
31 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34 Pretty-print tabular data in Python.
36 The main use cases of the library are:
37 - printing small tables without hassle: just one function call,
38 formatting is guided by the data itself
39 - authoring tabular data for lightweight plain-text markup: multiple
40 output formats suitable for further editing or transformation
41 - readable presentation of mixed textual and numeric data: smart
42 column alignment, configurable number formatting, alignment by a
45 %description -l pl.UTF-8
46 Ładne wypisywanie danych tabelarycznych w Pythonie.
48 Główne przypadki użycia tej biblioteki to:
49 - proste wypisywanie małych tabelek - tylko jedno wywołanie funkcji,
50 formatowanie sugerowane przez same dane
51 - tworzenie danych tabelarycznych do lekkich znaczników tekstowych -
52 wiele formatów wyjściowych, odpowiednich do dalszej edycji lub
54 - czytelna prezentacja mieszanych danych tekstowych i liczbowych -
55 inteligentne wyrównywanie kolumn, konfigurowalne formatowanie liczb,
56 wyrównywanie do kropki/przecinka dziesiętnego
58 %package -n python3-%{module}
59 Summary: Pretty-print tabular data
60 Summary(pl.UTF-8): Ładne wypisywanie danych tabelarycznych
61 Group: Libraries/Python
62 Requires: python3-modules >= 1:3.5
64 %description -n python3-%{module}
65 Pretty-print tabular data in Python.
67 The main use cases of the library are:
68 - printing small tables without hassle: just one function call,
69 formatting is guided by the data itself
70 - authoring tabular data for lightweight plain-text markup: multiple
71 output formats suitable for further editing or transformation
72 - readable presentation of mixed textual and numeric data: smart
73 column alignment, configurable number formatting, alignment by a
76 %description -n python3-%{module} -l pl.UTF-8
77 Ładne wypisywanie danych tabelarycznych w Pythonie.
79 Główne przypadki użycia tej biblioteki to:
80 - proste wypisywanie małych tabelek - tylko jedno wywołanie funkcji,
81 formatowanie sugerowane przez same dane
82 - tworzenie danych tabelarycznych do lekkich znaczników tekstowych -
83 wiele formatów wyjściowych, odpowiednich do dalszej edycji lub
85 - czytelna prezentacja mieszanych danych tekstowych i liczbowych -
86 inteligentne wyrównywanie kolumn, konfigurowalne formatowanie liczb,
87 wyrównywanie do kropki/przecinka dziesiętnego
90 %setup -q -n %{module}-%{version}
102 rm -rf $RPM_BUILD_ROOT
115 rm -rf $RPM_BUILD_ROOT
119 %defattr(644,root,root,755)
120 %doc CHANGELOG README.md
121 %if %{without python3}
122 %attr(755,root,root) %{_bindir}/tabulate
124 %{py_sitescriptdir}/%{module}.py[co]
125 %{py_sitescriptdir}/%{module}-%{version}-py*.egg-info
129 %files -n python3-%{module}
130 %defattr(644,root,root,755)
131 %doc CHANGELOG README.md
132 %attr(755,root,root) %{_bindir}/tabulate
133 %{py3_sitescriptdir}/__pycache__/%{module}.cpython-*.py[co]
134 %{py3_sitescriptdir}/%{module}.py
135 %{py3_sitescriptdir}/%{module}-%{version}-py*.egg-info