forked from pool/python-progressbar
- Spec file cleanup:
* Simplified macro mania * Removed unused build requirements * Set license to SDPX style (LGPL-3.0+) OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-progressbar?expand=0&rev=2
This commit is contained in:
committed by
Git OBS Bridge
parent
f3b080369a
commit
a26194c7fb
@@ -1,3 +1,11 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Jan 31 13:00:34 UTC 2012 - saschpe@suse.de
|
||||||
|
|
||||||
|
- Spec file cleanup:
|
||||||
|
* Simplified macro mania
|
||||||
|
* Removed unused build requirements
|
||||||
|
* Set license to SDPX style (LGPL-3.0+)
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Jun 16 20:08:05 CET 2011 - pascal.bleser@opensuse.org
|
Thu Jun 16 20:08:05 CET 2011 - pascal.bleser@opensuse.org
|
||||||
|
|
||||||
|
@@ -1,23 +1,36 @@
|
|||||||
# vim: set sw=4 ts=4 et:
|
#
|
||||||
|
# spec file for package python-pip
|
||||||
|
#
|
||||||
|
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||||
|
#
|
||||||
|
# All modifications and additions to the file contributed by third parties
|
||||||
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
|
# upon. The license for this file, and modifications and additions to the
|
||||||
|
# file, is the same license as for the pristine package itself (unless the
|
||||||
|
# license for the pristine package is not an Open Source License, in which
|
||||||
|
# case the license is the MIT License). An "Open Source License" is a
|
||||||
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
|
# published by the Open Source Initiative.
|
||||||
|
#
|
||||||
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||||
|
#
|
||||||
|
|
||||||
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
|
Name: python-progressbar
|
||||||
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
|
Version: 2.3
|
||||||
|
Release: 0
|
||||||
Name: python-progressbar
|
License: LGPL-3.0+
|
||||||
Version: 2.3
|
Summary: Text Progressbar Library for Python
|
||||||
Release: 0
|
Url: http://code.google.com/p/python-progressbar/
|
||||||
Summary: Text Progressbar Library for Python
|
Group: Development/Libraries/Python
|
||||||
Source: http://python-progressbar.googlecode.com/files/progressbar-%{version}.tar.gz
|
Source: http://python-progressbar.googlecode.com/files/progressbar-%{version}.tar.gz
|
||||||
URL: http://code.google.com/p/python-progressbar/
|
BuildRequires: python-devel
|
||||||
Group: Development/Libraries/Python
|
BuildRequires: python-distribute
|
||||||
License: GNU Lesser General Public License version 3 or later (LGPL v3 or later)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
BuildRoot: %{_tmppath}/build-%{name}-%{version}
|
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
|
||||||
BuildRequires: python python-devel python-setuptools
|
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
||||||
BuildRequires: gcc make glibc-devel pkgconfig
|
%else
|
||||||
%if 0%{?suse_version} >= 1120
|
BuildArch: noarch
|
||||||
BuildArch: noarch
|
|
||||||
%endif
|
%endif
|
||||||
%py_requires
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
This library provides a text mode progressbar. This is tipically used to
|
This library provides a text mode progressbar. This is tipically used to
|
||||||
@@ -25,24 +38,15 @@ display the progress of a long running operation, providing a visual clue that
|
|||||||
processing is underway.
|
processing is underway.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n "progressbar-%{version}"
|
%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
|
%build
|
||||||
%__python ./setup.py build
|
python setup.py build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%__python ./setup.py install \
|
python setup.py install --prefix="%{_prefix}" --root=%{buildroot}
|
||||||
--prefix="%{_prefix}" \
|
|
||||||
--root="%{buildroot}" \
|
|
||||||
--record-rpm=files.lst
|
|
||||||
|
|
||||||
%clean
|
%files
|
||||||
%{?buildroot:%__rm -rf "%{buildroot}"}
|
|
||||||
|
|
||||||
%files -f files.lst
|
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%doc LICENSE.txt README.txt
|
%doc LICENSE.txt README.txt examples.py
|
||||||
|
%{python_sitelib}/*
|
||||||
|
Reference in New Issue
Block a user