Accepting request 76511 from devel:languages:python

- Spec file cleanup:
  * Remove she-bang line from non-executable script (rpmlint warning)
  * Remove in-tree libraries (setuptools, pip & distribute)
  * Don't package PKG-INFO but AUTHORS.txt and LICENSE.txt

OBS-URL: https://build.opensuse.org/request/show/76511
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-virtualenv?expand=0&rev=4
This commit is contained in:
Berthold Gunreben 2011-07-20 08:07:34 +00:00 committed by Git OBS Bridge
commit 92f834063d
4 changed files with 23 additions and 17 deletions

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Tue Jul 19 13:23:02 UTC 2011 - saschpe@suse.de
- Spec file cleanup:
* Remove she-bang line from non-executable script (rpmlint warning)
* Remove in-tree libraries (setuptools, pip & distribute)
* Don't package PKG-INFO but AUTHORS.txt and LICENSE.txt
------------------------------------------------------------------- -------------------------------------------------------------------
Sun Jul 17 00:12:42 UTC 2011 - alexandre@exatati.com.br Sun Jul 17 00:12:42 UTC 2011 - alexandre@exatati.com.br

View File

@ -15,28 +15,25 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/ # Please submit bugfixes or comments via http://bugs.opensuse.org/
# #
Name: python-virtualenv
%{!?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 virtualenv
Name: python-%{mod_name}
Version: 1.6.3 Version: 1.6.3
Release: 1 Release: 1
Url: http://www.virtualenv.org Url: http://www.virtualenv.org/
Summary: Virtual Python Environment builder Summary: Virtual Python Environment builder
License: MIT License: MIT
Group: Development/Languages/Python Group: Development/Languages/Python
Source: %{mod_name}-%{version}.tar.bz2 Source: virtualenv-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: python-devel BuildRequires: python-devel
Requires: python-distribute
Requires: python-pip
%if 0%{?suse_version} %if 0%{?suse_version}
%py_requires %py_requires
%if 0%{?suse_version} > 1110 %if 0%{?suse_version} > 1110
BuildArch: noarch BuildArch: noarch
%endif %endif
%endif %endif
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%description %description
virtualenv is a tool to create isolated Python environments. virtualenv is a tool to create isolated Python environments.
@ -61,10 +58,11 @@ virtualenv environments (and optionally doesnt use the globally installed
libraries either). libraries either).
%prep %prep
%setup -q -n %{mod_name}-%{version} %setup -q -n virtualenv-%{version}
rm virtualenv_support/*.{egg,gz} # Remove in-tree libraries that are available as packages too
sed -i "1d" virtualenv.py # Remove she-bang line for non-executable script
%build %build
export CFLAGS="%{optflags}"
python setup.py build python setup.py build
%install %install
@ -75,8 +73,8 @@ rm -rf %{buildroot}
%files %files
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc PKG-INFO docs %doc AUTHORS.txt LICENSE.txt docs
%python_sitelib/%{mod_name}* %{_bindir}/virtualenv
%{_bindir}/%{mod_name} %{python_sitelib}/virtualenv*
%changelog %changelog

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:4cb1257ac716951e65f0f0a55b0417661912f7eed1cf24cb4167a8ceb5f4464c
size 1726862

3
virtualenv-1.6.3.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ca9d207c0ac4f74e728c1e54fcd9041f257d2409ccfd5a1c889cdf0dfb5b18ad
size 1888986