forked from pool/python-progressbar
2.3
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-progressbar?expand=0&rev=1
This commit is contained in:
48
python-progressbar.spec
Normal file
48
python-progressbar.spec
Normal file
@@ -0,0 +1,48 @@
|
||||
# vim: set sw=4 ts=4 et:
|
||||
|
||||
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
|
||||
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
|
||||
|
||||
Name: python-progressbar
|
||||
Version: 2.3
|
||||
Release: 0
|
||||
Summary: Text Progressbar Library for Python
|
||||
Source: http://python-progressbar.googlecode.com/files/progressbar-%{version}.tar.gz
|
||||
URL: http://code.google.com/p/python-progressbar/
|
||||
Group: Development/Libraries/Python
|
||||
License: GNU Lesser General Public License version 3 or later (LGPL v3 or later)
|
||||
BuildRoot: %{_tmppath}/build-%{name}-%{version}
|
||||
BuildRequires: python python-devel python-setuptools
|
||||
BuildRequires: gcc make glibc-devel pkgconfig
|
||||
%if 0%{?suse_version} >= 1120
|
||||
BuildArch: noarch
|
||||
%endif
|
||||
%py_requires
|
||||
|
||||
%description
|
||||
This library provides a text mode progressbar. This is tipically used to
|
||||
display the progress of a long running operation, providing a visual clue that
|
||||
processing is underway.
|
||||
|
||||
%prep
|
||||
%setup -q -n "progressbar-%{version}"
|
||||
find ./progressbar -type f -name '*.py' | while read py; do
|
||||
%__perl -i -n -e 'print unless m,^#!, and $.==1' "$py"
|
||||
done
|
||||
|
||||
%build
|
||||
%__python ./setup.py build
|
||||
|
||||
%install
|
||||
%__python ./setup.py install \
|
||||
--prefix="%{_prefix}" \
|
||||
--root="%{buildroot}" \
|
||||
--record-rpm=files.lst
|
||||
|
||||
%clean
|
||||
%{?buildroot:%__rm -rf "%{buildroot}"}
|
||||
|
||||
%files -f files.lst
|
||||
%defattr(-,root,root)
|
||||
%doc LICENSE.txt README.txt
|
||||
|
Reference in New Issue
Block a user