]>
Commit | Line | Data |
---|---|---|
aa4fd056 | 1 | --- Python-2.7.10.orig/Lib/distutils/command/bdist_rpm.py 2015-05-23 18:09:01.000000000 +0200 |
e7e84023 | 2 | +++ Python-2.7.10/Lib/distutils/command/bdist_rpm.py 2015-12-03 09:23:08.000000000 +0100 |
aa4fd056 JK |
3 | @@ -338,6 +338,16 @@ |
4 | if self.rpm3_mode: | |
5 | rpm_cmd.extend(['--define', | |
6 | '_topdir %s' % os.path.abspath(self.rpm_base)]) | |
7 | + rpm_cmd.extend(['--define', | |
8 | + '_specdir %s/SPECS' % os.path.abspath(self.rpm_base)]) | |
9 | + rpm_cmd.extend(['--define', | |
10 | + '_sourcedir %s/SOURCES' % os.path.abspath(self.rpm_base)]) | |
11 | + rpm_cmd.extend(['--define', | |
12 | + '_builddir %s/BUILD' % os.path.abspath(self.rpm_base)]) | |
13 | + rpm_cmd.extend(['--define', | |
14 | + '_rpmdir %s/RPMS' % os.path.abspath(self.rpm_base)]) | |
15 | + rpm_cmd.extend(['--define', | |
16 | + '_srcrpmdir %s/SRPMS' % os.path.abspath(self.rpm_base)]) | |
17 | if not self.keep_temp: | |
18 | rpm_cmd.append('--clean') | |
19 | ||
20 | @@ -351,7 +361,7 @@ | |
21 | # list is empty) | |
22 | nvr_string = "%{name}-%{version}-%{release}" | |
23 | src_rpm = nvr_string + ".src.rpm" | |
24 | - non_src_rpm = "%{arch}/" + nvr_string + ".%{arch}.rpm" | |
25 | + non_src_rpm = nvr_string + ".%{arch}.rpm" | |
26 | q_cmd = r"rpm -q --qf '%s %s\n' --specfile '%s'" % ( | |
27 | src_rpm, non_src_rpm, spec_path) | |
28 | ||
e7e84023 JK |
29 | --- Python-2.7.10.orig/Lib/distutils/tests/test_bdist_rpm.py 2015-05-23 18:09:02.000000000 +0200 |
30 | +++ Python-2.7.10/Lib/distutils/tests/test_bdist_rpm.py 2015-12-03 09:24:55.000000000 +0100 | |
31 | @@ -48,6 +48,8 @@ | |
32 | 'the rpm command is not found') | |
33 | @unittest.skipIf(find_executable('rpmbuild') is None, | |
34 | 'the rpmbuild command is not found') | |
35 | + @unittest.skipIf(os.environ.get("WITHIN_PYTHON_RPM_BUILD"), | |
36 | + 'building the python rpm') | |
37 | def test_quiet(self): | |
38 | # let's create a package | |
39 | tmp_dir = self.mkdtemp() | |
40 | @@ -91,6 +93,8 @@ | |
41 | 'the rpm command is not found') | |
42 | @unittest.skipIf(find_executable('rpmbuild') is None, | |
43 | 'the rpmbuild command is not found') | |
44 | + @unittest.skipIf(os.environ.get("WITHIN_PYTHON_RPM_BUILD"), | |
45 | + 'building the python rpm') | |
46 | def test_no_optimize_flag(self): | |
47 | # let's create a package that brakes bdist_rpm | |
48 | tmp_dir = self.mkdtemp() |