From e5f88e1dd85931f0b98573d80603de4b6e16e7e4 Mon Sep 17 00:00:00 2001 From: Dominika Krejčí Date: Jun 27 2016 11:43:01 +0000 Subject: Initial import (#1348997). --- diff --git a/.gitignore b/.gitignore index e69de29..f1a6fee 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/backports.shutil_get_terminal_size-1.0.0.tar.gz diff --git a/python-backports-shutil_get_terminal_size.spec b/python-backports-shutil_get_terminal_size.spec new file mode 100644 index 0000000..c5b302f --- /dev/null +++ b/python-backports-shutil_get_terminal_size.spec @@ -0,0 +1,60 @@ +%global srcname backports.shutil_get_terminal_size +%global fedname backports-shutil_get_terminal_size +%global sum A backport of the get_terminal_size function from Python 3.3's shutil + +Name: python-%{fedname} +Version: 1.0.0 +Release: 1%{?dist} +Summary: %{sum} + +License: MIT +URL: https://github.com/chrippa/%{srcname} +Source0: https://files.pythonhosted.org/packages/source/b/%{srcname}/%{srcname}-%{version}.tar.gz +BuildArch: noarch + +BuildRequires: python2-devel +BuildRequires: python2-pytest + +%description +A backport of the get_terminal_size function from Python 3.3’s shutil. +Unlike the original version it is written in pure Python rather than C, +so it might be a tiny bit slower. + +%package -n python2-%{fedname} +Summary: %{sum} +Requires: python-backports +%{?python_provide:%python_provide python2-%{fedname}} + +%description -n python2-%{fedname} +A backport of the get_terminal_size function from Python 3.3’s shutil. +Unlike the original version it is written in pure Python rather than C, +so it might be a tiny bit slower. + + +%prep +%autosetup -n %{srcname}-%{version} + +%build +%py2_build + +%install +%py2_install + +# This files are provided by python-backports +rm -f %{buildroot}%{python2_sitelib}/backports/__init__.py* + +%check +py.test-2 + + +%files -n python2-%{fedname} +%doc README.rst +%license LICENSE +%{python2_sitelib}/%{srcname}-%{version}-py?.?.egg-info +%{python2_sitelib}/backports/shutil_get_terminal_size + + +%changelog +* Thu Jun 23 2016 Dominika Krejci - 1.0.0-1 +- Initial release + diff --git a/sources b/sources index e69de29..c74d34c 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +03267762480bd86b50580dc19dff3c66 backports.shutil_get_terminal_size-1.0.0.tar.gz