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:
parent
6d4e296c7f
commit
bf413aa296
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:20fc05547161d31d67c9480c2d679ef6aa55243ef0e3f4e3e3f7cf272ff0bff6
|
||||
size 74873
|
3
pip-1.0.2.tar.gz
Normal file
3
pip-1.0.2.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:a6ed9b36aac2f121c01a2c9e0307a9e4d9438d100a407db701ac65479a3335d2
|
||||
size 105820
|
@ -1,3 +1,11 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Sep 22 09:04:39 UTC 2011 - saschpe@suse.de
|
||||
|
||||
- Don't repackage upstream tarball
|
||||
- Require python-distribute instead of setuptools
|
||||
- Package documentation
|
||||
- Fix non-executable script rpmlint warning
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Sep 17 13:04:36 UTC 2011 - ocefpaf@gmail.com
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user