forked from pool/python-pip
- Don't repackage upstream tarball
- Require python-distribute instead of setuptools - Package documentation - Fix non-executable script rpmlint warning OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pip?expand=0&rev=10
This commit is contained in:
committed by
Git OBS Bridge
parent
6d4e296c7f
commit
bf413aa296
@@ -15,59 +15,45 @@
|
||||
# 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-%{mod_name}
|
||||
Name: python-pip
|
||||
Version: 1.0.2
|
||||
Release: 0
|
||||
Url: http://pip.openplans.org
|
||||
Summary: Pip installs packages. Python packages. An easy_install replacement
|
||||
Url: http://www.pip-installer.org
|
||||
Summary: Pip installs packages. Python packages. An easy_install replacement
|
||||
License: MIT
|
||||
Group: Development/Languages/Python
|
||||
Source: %{mod_name}-%{version}.tar.bz2
|
||||
Source: http://pypi.python.org/packages/source/p/pip/pip-%{version}.tar.gz
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: python-devel
|
||||
BuildRequires: python-setuptools
|
||||
Requires: python-setuptools
|
||||
BuildRequires: python-distribute
|
||||
Requires: python-distribute
|
||||
%if 0%{?suse_version}
|
||||
%py_requires
|
||||
%if %{?suse_version: %{suse_version} > 1110} %{!?suse_version:1}
|
||||
%if 0%{?suse_version} > 1110
|
||||
BuildArch: noarch
|
||||
%endif
|
||||
%endif
|
||||
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
||||
|
||||
%description
|
||||
pip is a replacement for easy_install. It uses mostly the same techniques for
|
||||
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.
|
||||
|
||||
|
||||
Authors:
|
||||
--------
|
||||
Ian Bicking <python-virtualenv@groups.google.com>
|
||||
|
||||
%prep
|
||||
%setup -n %{mod_name}-%{version}
|
||||
%setup -q -n pip-%{version}
|
||||
sed -i "1d" pip/__init__.py # Fix non-executable script
|
||||
|
||||
%build
|
||||
export CFLAGS="%{optflags}"
|
||||
python setup.py build
|
||||
|
||||
%install
|
||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot} %{?suse_version: --record-rpm=INSTALLED_FILES}
|
||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||||
|
||||
%clean
|
||||
rm -rf %{buildroot}
|
||||
|
||||
%files %{?suse_version: -f INSTALLED_FILES}
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%if 0%{!?suse_version:1}
|
||||
%{_bindir}/%{mod_name}*
|
||||
%python_sitelib/%{mod_name}*
|
||||
%endif
|
||||
%doc AUTHORS.txt LICENSE.txt docs/*
|
||||
%{_bindir}/pip*
|
||||
%{python_sitelib}/*
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user