forked from pool/python-pip
Accepting request 56453 from home:saschpe:branches:devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/56453 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pip?expand=0&rev=7
This commit is contained in:
committed by
Git OBS Bridge
parent
7f20eeb315
commit
90870e2e89
@@ -1,5 +1,5 @@
|
||||
#
|
||||
# spec file for package python-pip (Version 0.8.1)
|
||||
# spec file for package python-pip
|
||||
#
|
||||
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
#
|
||||
@@ -11,51 +11,63 @@
|
||||
# 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/
|
||||
#
|
||||
|
||||
# norootforbuild
|
||||
%{!?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)")}
|
||||
|
||||
%define mod_name pip
|
||||
|
||||
Name: python-pip
|
||||
Version: 0.8.1
|
||||
Release: 1
|
||||
License: MIT License
|
||||
Summary: Pip installs packages. Python packages. An easy_install replacement
|
||||
Group: Development/Libraries/Python
|
||||
Source: pip-%{version}.tar.bz2
|
||||
# List of additional build dependencies
|
||||
Name: python-%{mod_name}
|
||||
Version: 0.8.2
|
||||
Release: 0
|
||||
Url: http://pip.openplans.org
|
||||
Summary: Pip installs packages. Python packages. An easy_install replacement
|
||||
License: MIT
|
||||
Group: Development/Languages/Python
|
||||
Source: %{mod_name}-%{version}.tar.bz2
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: python-devel
|
||||
BuildRequires: python-setuptools
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%{py_requires}
|
||||
Requires: python-setuptools
|
||||
%if 0%{?suse_version}
|
||||
%py_requires
|
||||
%if %{?suse_version: %{suse_version} > 1110} %{!?suse_version:1}
|
||||
BuildArch: noarch
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%description
|
||||
pip is a replacement for easy_install. It uses mostly the same techniques for
|
||||
finding packages, so packages that were made easy_installable should be
|
||||
pip-installable as well.
|
||||
|
||||
Author:
|
||||
--------
|
||||
The Open Planning Project <python-virtualenv@groups.google.com>
|
||||
|
||||
Authors:
|
||||
--------
|
||||
Ian Bicking <python-virtualenv@groups.google.com>
|
||||
|
||||
%prep
|
||||
%setup -q -n pip-%version
|
||||
%setup -n %{mod_name}-%{version}
|
||||
|
||||
%build
|
||||
export CFLAGS="%{optflags}"
|
||||
python setup.py build
|
||||
|
||||
%install
|
||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot} --record-rpm=filelist
|
||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot} %{?suse_version: --record-rpm=INSTALLED_FILES}
|
||||
|
||||
%clean
|
||||
rm -rf %{buildroot}
|
||||
|
||||
%files -f filelist
|
||||
%defattr(-,root,root)
|
||||
%files %{?suse_version: -f INSTALLED_FILES}
|
||||
%defattr(-,root,root,-)
|
||||
%if 0%{!?suse_version:1}
|
||||
%{_bindir}/%{mod_name}*
|
||||
%python_sitelib/%{mod_name}*
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user