Fix a bug in the sdist command
This commit is contained in:
parent
77f7c9e545
commit
72f65d9dc1
@ -20,7 +20,7 @@
|
|||||||
|
|
||||||
Name: python-setuptools
|
Name: python-setuptools
|
||||||
Version: 2.0
|
Version: 2.0
|
||||||
Release: 5%{?dist}
|
Release: 6%{?dist}
|
||||||
Summary: Easily build and distribute Python packages
|
Summary: Easily build and distribute Python packages
|
||||||
|
|
||||||
Group: Applications/System
|
Group: Applications/System
|
||||||
@ -29,6 +29,8 @@ URL: http://pypi.python.org/pypi/%{srcname}
|
|||||||
Source0: http://pypi.python.org/packages/source/s/%{srcname}/%{srcname}-%{version}.tar.gz
|
Source0: http://pypi.python.org/packages/source/s/%{srcname}/%{srcname}-%{version}.tar.gz
|
||||||
Source1: psfl.txt
|
Source1: psfl.txt
|
||||||
Source2: zpl.txt
|
Source2: zpl.txt
|
||||||
|
# Fixed in upstream using a different method
|
||||||
|
Patch0: setuptools-sdist-postproc.patch
|
||||||
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
|
|
||||||
@ -93,6 +95,7 @@ execute the software that requires pkg_resources.py.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{srcname}-%{version}
|
%setup -q -n %{srcname}-%{version}
|
||||||
|
%patch0 -p1
|
||||||
|
|
||||||
find -name '*.txt' -exec chmod -x \{\} \;
|
find -name '*.txt' -exec chmod -x \{\} \;
|
||||||
find . -name '*.orig' -exec rm \{\} \;
|
find . -name '*.orig' -exec rm \{\} \;
|
||||||
@ -204,6 +207,9 @@ rm -rf %{buildroot}
|
|||||||
%endif # with_python3
|
%endif # with_python3
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Jun 30 2014 Toshio Kuratomi <toshio@fedoraproject.org> - 2.0-6
|
||||||
|
- Fix a bug in the sdist command
|
||||||
|
|
||||||
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0-5
|
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0-5
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
||||||
|
|
||||||
|
17
setuptools-sdist-postproc.patch
Normal file
17
setuptools-sdist-postproc.patch
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
Index: setuptools-2.0/setuptools/command/sdist.py
|
||||||
|
===================================================================
|
||||||
|
--- setuptools-2.0.orig/setuptools/command/sdist.py
|
||||||
|
+++ setuptools-2.0/setuptools/command/sdist.py
|
||||||
|
@@ -35,10 +35,10 @@ class re_finder(object):
|
||||||
|
f.close()
|
||||||
|
for match in self.pattern.finditer(data):
|
||||||
|
path = match.group(1)
|
||||||
|
- if postproc:
|
||||||
|
+ if self.postproc:
|
||||||
|
#postproc used to be used when the svn finder
|
||||||
|
#was an re_finder for calling unescape
|
||||||
|
- path = postproc(path)
|
||||||
|
+ path = self.postproc(path)
|
||||||
|
yield svn_utils.joinpath(dirname,path)
|
||||||
|
def __call__(self, dirname=''):
|
||||||
|
path = svn_utils.joinpath(dirname, self.path)
|
Loading…
Reference in New Issue
Block a user