forked from pool/python-progressbar
Accepting request 122289 from devel:languages:python3
- Fix building on openSUSE 11.4 - spec file cleanups (forwarded request 122288 from TheBlackCat) OBS-URL: https://build.opensuse.org/request/show/122289 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-progressbar?expand=0&rev=7
This commit is contained in:
@@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri May 25 08:33:12 UTC 2012 - toddrme2178@gmail.com
|
||||||
|
|
||||||
|
- Fix building on openSUSE 11.4
|
||||||
|
- spec file cleanups
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed May 23 02:44:12 UTC 2012 - highwaystar.ru@gmail.com
|
Wed May 23 02:44:12 UTC 2012 - highwaystar.ru@gmail.com
|
||||||
|
|
||||||
|
@@ -14,6 +14,7 @@
|
|||||||
#
|
#
|
||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
|
|
||||||
%define modname progressbar
|
%define modname progressbar
|
||||||
Name: python3-%{modname}
|
Name: python3-%{modname}
|
||||||
Version: 2.3
|
Version: 2.3
|
||||||
@@ -26,18 +27,14 @@ Source: http://python-progressbar.googlecode.com/files/%{modname}-%{vers
|
|||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
BuildRequires: python3-distribute
|
BuildRequires: python3-distribute
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
%if 0%{?suse_version} && 0%{?suse_version} <= 1140
|
%if 0%{?suse_version} <= 1140
|
||||||
%{!?python3_sitelib: %global python3_sitelib %(python3 -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
|
%{!?python3_sitelib: %global python3_sitelib %(python3 -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
|
||||||
%{!?py3_ver: %global py3_ver %(python3 -c "import sys; version=str(sys.version_info[0]) + '.' + str(sys.version_info[1]); print(version)" 2>/dev/null || echo PYTHON-NOT-FOUND)}
|
%{!?py3_ver: %global py3_ver %(python3 -c "import sys; version=str(sys.version_info[0]) + '.' + str(sys.version_info[1]); print(version)" 2>/dev/null || echo PYTHON-NOT-FOUND)}
|
||||||
%endif
|
%else
|
||||||
Requires: python(abi) = %{py3_ver}
|
|
||||||
%if 0%{?suse_version} && 0%{?suse_version} > 1140
|
|
||||||
BuildRequires: python3-base
|
BuildRequires: python3-base
|
||||||
%endif
|
%endif
|
||||||
|
Requires: python(abi) = %{py3_ver}
|
||||||
%if %{?suse_version: %{suse_version} > 1110} %{!?suse_version:1}
|
BuildArch: noarch
|
||||||
BuildArchitectures: noarch
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%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
|
||||||
@@ -52,11 +49,15 @@ python3 setup.py build
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
python3 setup.py install --prefix="%{_prefix}" --root=%{buildroot}
|
python3 setup.py install --prefix="%{_prefix}" --root=%{buildroot}
|
||||||
|
chmod +x %{buildroot}%{python3_sitelib}/progressbar/*.py
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%doc LICENSE.txt README.txt examples.py
|
%doc LICENSE.txt README.txt examples.py
|
||||||
%{python3_sitelib}/%{modname}/
|
%{python3_sitelib}/%{modname}/
|
||||||
%{python3_sitelib}/%{modname}-%{version}-py%{py3_ver}.egg-info
|
%{python3_sitelib}/%{modname}-%{version}-py%{py3_ver}.egg-info
|
||||||
|
%if 0%{?suse_version} <= 1140
|
||||||
|
%dir %{_prefix}/lib/python%{py3_ver}
|
||||||
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Reference in New Issue
Block a user