summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/command/bdist_rpm.py
Commit message (Collapse)AuthorAgeFilesLines
* Bug 957381: rpmbuild builds a -debuginfo rpm on recent Redhat and Fedora ↵Anthony Baxter2004-06-111-1/+6
| | | | | | | | | | releases. Ignore it, rather than breaking. Will backport. (and r1.1000 for Misc/NEWS!)
* Add comment to Distutil files about requiring 1.5.2 compatibility, asAndrew M. Kuchling2002-11-191-0/+2
| | | | suggested by PEP 291.
* Remove 'created by' lines; people can use CVS for this, and the information ↵Andrew M. Kuchling2002-11-141-2/+0
| | | | is often out of date
* Fix comment typoAndrew M. Kuchling2002-11-081-1/+1
|
* Fixed bug "[#466200] ability to specify a 'verify' script".Gustavo Niemeyer2002-11-061-0/+3
| | | | | | | | | | | * Lib/distutils/command/bdist_rpm.py (bdist_rpm.initialize_options): Included verify_script attribute. (bdist_rpm.finalize_package_data): Ensure that verify_script is a filename. (bdist_rpm._make_spec_file): Included verify_script in script_options tuple. * Misc/NEWS Mention change.
* [Bug #570655] Fix misleading option textAndrew M. Kuchling2002-11-041-1/+1
|
* Patch #619493: Prefer rpmbuild over rpm if available. Backported to 2.2.Martin v. Löwis2002-10-071-0/+3
|
* Use distutils.debug.DEBUG instead of distutils.core.DEBUG.Jeremy Hylton2002-09-111-1/+2
| | | | | Note that distutils.core.DEBUG still works if client code uses it, but the core code avoids circular references by using distutils.debug.
* Patch #543498: Use License: field instead of Copyright:.Martin v. Löwis2002-07-281-1/+1
|
* Make setup.py less chatty by default.Jeremy Hylton2002-06-041-1/+2
| | | | | | | | | | | | | | | This is a conservative version of SF patch 504889. It uses the log module instead of calling print in various places, and it ignores the verbose argument passed to many functions and set as an attribute on some objects. Instead, it uses the verbosity set on the logger via the command line. The log module is now preferred over announce() and warn() methods that exist only for backwards compatibility. XXX This checkin changes a lot of modules that have no test suite and aren't exercised by the Python build process. It will need substantial testing.
* [Bug #517451] bdist_rpm didn't list all of its Boolean options.Andrew M. Kuchling2002-03-211-1/+1
| | | | | | (Someone should check the other commands for this same error.) Bugfix candidate.
* Whitespace normalization.Fred Drake2001-12-061-11/+11
|
* Fix typo caught by PyCheckerAndrew M. Kuchling2001-08-101-1/+1
|
* Use .get_license()Andrew M. Kuchling2001-08-101-1/+1
|
* Fix bug #418369: typo in bdist_rpmAndrew M. Kuchling2001-05-211-1/+1
|
* Standardized whitespace around function calls.Greg Ward2000-09-301-1/+1
|
* Added a bunch of missing "=" signs in the option table.Greg Ward2000-09-251-30/+14
| | | | | Removed script options -- don't think they ever worked, weren't very well thought through, etc.
* Added 'boolean_options' list to support config file parsing.Greg Ward2000-09-251-0/+2
|
* Renamed --clean to --no-keep-temp and --noclean to --keep-temp.Greg Ward2000-09-161-6/+6
|
* Added --python and --fix-python options for better control over whatGreg Ward2000-09-101-16/+33
| | | | | interpreter the .spec file refers to. Cosmetic tweaks.
* Typo fix.Greg Ward2000-09-071-1/+1
|
* Fixed the move-RPM-files hack so it knows about the '--binary-only' andGreg Ward2000-08-151-8/+11
| | | | '--source-only' options.
* Added support for the '--dist-dir' option, including a mildly nastyGreg Ward2000-08-151-4/+23
| | | | | hack to find the two created RPM files (source and binary) and move them to the "dist dir" (default "dist").
* Fixed imports from '*util' modules to not just import everything from util.Greg Ward2000-08-051-1/+2
|
* Fixed a grab-bag of typos spotted by Rob Hooft.Greg Ward2000-07-271-1/+1
|
* Harry Henry Gebel: fix '_format_changelog()' so it doesn't bomb ifGreg Ward2000-06-081-0/+2
| | | | passed None.
* Fixed syntax error.Greg Ward2000-06-041-9/+14
| | | | | | Half-fixed RPM 2 compatibility:added 'rpm_base' option, which must be set (to eg. /usr/src/redhat on a stock Red Hat system) if rpm2_mode is on. Still not quite working, though.
* Patch from Harry Henry Gebel:Greg Ward2000-06-041-59/+103
| | | | | | | | | | | | | | | | | Fills in question marks in help Reads scripts in from files rather than strings Adds RPM 2 compatibility mode (untested). Use of this mode requires that --bdist-base be specified because bdist_rpm has no way of detecting where RPM wants to find spec files and source files. An unmodified RedHat 5.0 system would require '--bdist-base=/usr/src/RedHat'. (You would also have to be root.) If the rpmrc file has been modified to allow RPMs to be built by normal users then --build-base would need to be changed accordingly. Formats the changelog. GPW: tweaked formatting, added some editorial comments.
* Removed the 'ensure_*' methods -- they're just too handy too keep in oneGreg Ward2000-06-041-43/+1
| | | | command class, so they're now in the Command base class.
* Patch from Harry Henry Gebel: fixes a bit of code that slipped by myGreg Ward2000-06-031-2/+1
| | | | overhaul last night.
* Only print debugging output if DEBUG true.Greg Ward2000-06-021-6/+7
|
* Ditched the obsolete '_get_package_data()' method and itsGreg Ward2000-06-021-142/+3
| | | | '_check_*()' helpers.
* Fairly massive overhaul to support getting RPM inputs (extra meta-data,Greg Ward2000-06-021-32/+230
| | | | | | | | | | | | | | | | | | | | | | | | | prep/build/etc. scripts, doc files, dependency info) from a config file rather than the dedicated "package_info" file. (The idea is that developers will provide RPM-specific info in the "[bdist_rpm]" section of setup.cfg, but of course it could also be supplied in the other config files, on the command line, or in the setup script -- or any mix of the above.) Major changes: * added a boatload of options to 'user_options' and 'initialize_options()': 'distribution_name', 'group', 'release', ... * added 'finalize_package_data()', which takes the place of '_get_package_data()' -- except it's called from 'finalize_options()', not 'run()', so we have everything figured out before we actually run the command * added 'ensure_string()', 'ensure_string_list()', 'ensure_filename()'; these take the place of '_check_string()' and friends. (These actually look like really useful type-checking methods that could come in handy all over the Distutils; should consider moving them up to Command and using them in other command classes' 'finalize_options()' method for error-checking). * various cleanup, commentary, and adaptation to the new way of storing RPM info in '_make_spec_file()'
* More tweaking to make this command act like other Distutils commands:Greg Ward2000-06-011-26/+29
| | | | | | | | | | | | | * added "--bdist-base" option to parameterize where we build the RPM (comes from "bdist" by default: "build/bdist.<plat>") * simplified/cleaned up some code in 'run()' in the process of removing (most) hard-coded directory names * if "--spec-only", drop spec file in "dist" rather than "redhat" (directory name still hard-coded, though) * use 'reinitialize_command()' to fetch the "sdist" object to tweak before running "sdist" command * use 'self.copy_file()' method rather than 'copy_file()' function * cosmetic tweaks to comments, error messages
* Regularize options a bit:Greg Ward2000-05-311-12/+19
| | | | | | | * help strings start with lowercase * added affirmative version of '--no-clean' and '--no-rpm-opt-flags', which are the default (thus the attributes that correspond to the options are now 'clean' and 'use_rpm_opt_flags')
* Some far-reaching naming changes:Greg Ward2000-05-271-30/+19
| | | | | | | * Command method 'find_peer()' -> 'get_finalized_command()' * Command method 'run_peer()' -> 'run_command()' Also deleted the 'get_command_option()' method from Command, and fixed the one place where it was used (in "bdist_dumb").
* Normalized all the end-of-class lines.Greg Ward2000-05-251-0/+2
|
* Contribution from Harry Henry Gebel: the 'bdist_rpm' command.Gregory P. Smith2000-05-131-0/+390
(Completely uninspected and untested by me, this is just to get the code into CVS!)