Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
setuptools
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jérome Perrin
setuptools
Commits
1b618f36
Commit
1b618f36
authored
Nov 12, 2006
by
Martin v. Löwis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Patch #1360200: Use unmangled_version RPM spec field to deal with
file name mangling. Will backport to 2.5.
parent
5a83e912
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
command/bdist_rpm.py
command/bdist_rpm.py
+4
-3
No files found.
command/bdist_rpm.py
View file @
1b618f36
...
...
@@ -391,6 +391,7 @@ class bdist_rpm (Command):
spec_file
=
[
'%define name '
+
self
.
distribution
.
get_name
(),
'%define version '
+
self
.
distribution
.
get_version
().
replace
(
'-'
,
'_'
),
'%define unmangled_version '
+
self
.
distribution
.
get_version
(),
'%define release '
+
self
.
release
.
replace
(
'-'
,
'_'
),
''
,
'Summary: '
+
self
.
distribution
.
get_description
(),
...
...
@@ -412,9 +413,9 @@ class bdist_rpm (Command):
# but only after it has run: and we create the spec file before
# running "sdist", in case of --spec-only.
if
self
.
use_bzip2
:
spec_file
.
append
(
'Source0: %{name}-%{version}.tar.bz2'
)
spec_file
.
append
(
'Source0: %{name}-%{
unmangled_
version}.tar.bz2'
)
else
:
spec_file
.
append
(
'Source0: %{name}-%{version}.tar.gz'
)
spec_file
.
append
(
'Source0: %{name}-%{
unmangled_
version}.tar.gz'
)
spec_file
.
extend
([
'License: '
+
self
.
distribution
.
get_license
(),
...
...
@@ -489,7 +490,7 @@ class bdist_rpm (Command):
# are just text that we drop in as-is. Hmmm.
script_options
=
[
(
'prep'
,
'prep_script'
,
"%setup"
),
(
'prep'
,
'prep_script'
,
"%setup
-n %{name}-%{unmangled_version}
"
),
(
'build'
,
'build_script'
,
def_build
),
(
'install'
,
'install_script'
,
(
"%s install "
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment