14
0

- 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:
Sascha Peilicke
2012-01-31 13:01:14 +00:00
committed by Git OBS Bridge
parent f3b080369a
commit a26194c7fb
2 changed files with 45 additions and 33 deletions

View File

@@ -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

View File

@@ -1,23 +1,36 @@
# vim: set sw=4 ts=4 et: #
# spec file for package python-pip
%{!?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))")} # 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/
#
Name: python-progressbar Name: python-progressbar
Version: 2.3 Version: 2.3
Release: 0 Release: 0
License: LGPL-3.0+
Summary: Text Progressbar Library for Python 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/
URL: http://code.google.com/p/python-progressbar/
Group: Development/Libraries/Python Group: Development/Libraries/Python
License: GNU Lesser General Public License version 3 or later (LGPL v3 or later) Source: http://python-progressbar.googlecode.com/files/progressbar-%{version}.tar.gz
BuildRoot: %{_tmppath}/build-%{name}-%{version} BuildRequires: python-devel
BuildRequires: python python-devel python-setuptools BuildRequires: python-distribute
BuildRequires: gcc make glibc-devel pkgconfig BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} >= 1120 %if 0%{?suse_version} && 0%{?suse_version} <= 1110
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%else
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}/*