• Home
  • Raw
  • Download

Lines Matching +full:post +full:- +full:release

19         ('bdist-base=', None,
21 ('rpm-base=', None,
23 "--bdist-base; must be specified for RPM 2)"),
24 ('dist-dir=', 'd',
26 "(and .spec files if --spec-only)"),
28 "path to Python interpreter to hard-code in the .spec file "
30 ('fix-python', None,
31 "hard-code the exact path to the current Python interpreter in "
33 ('spec-only', None,
35 ('source-only', None,
37 ('binary-only', None,
39 ('use-bzip2', None,
42 # More meta-data: too RPM-specific to put in the setup script,
43 # but needs to go in the .spec file -- so we make these options
47 ('distribution-name=', None,
52 ('release=', None,
53 "RPM release number"),
62 ('doc-files=', None,
63 "list of documentation files (space or comma-separated)"),
74 ('build-requires=', None,
78 ('no-autoreq', None,
82 ('keep-temp', 'k',
84 ('no-keep-temp', None,
86 ('use-rpm-opt-flags', None,
88 ('no-rpm-opt-flags', None,
90 ('rpm3-mode', None,
92 ('rpm2-mode', None,
96 ('prep-script=', None,
98 ('build-script=', None,
101 ('pre-install=', None,
102 "Specify a script for the pre-INSTALL phase of RPM building"),
103 ('install-script=', None,
105 ('post-install=', None,
106 "Specify a script for the post-INSTALL phase of RPM building"),
108 ('pre-uninstall=', None,
109 "Specify a script for the pre-UNINSTALL phase of RPM building"),
110 ('post-uninstall=', None,
111 "Specify a script for the post-UNINSTALL phase of RPM building"),
113 ('clean-script=', None,
116 ('verify-script=', None,
120 ('force-arch=', None,
127 boolean_options = ['keep-temp', 'use-rpm-opt-flags', 'rpm3-mode',
128 'no-autoreq', 'quiet']
130 negative_opt = {'no-keep-temp': 'keep-temp',
131 'no-rpm-opt-flags': 'use-rpm-opt-flags',
132 'rpm2-mode': 'rpm3-mode'}
148 self.release = None
185 "you must specify --rpm-base in RPM 2 mode")
195 "--python and --fix-python are mutually exclusive options")
202 "cannot supply both '--source-only' and '--binary-only'")
223 self.ensure_string('release', "1")
244 # XXX don't forget we punted on summaries and descriptions -- they
247 # Now *this* is some meta-data that belongs in the setup script...
275 # Spec file goes into 'dist_dir' if '--spec-only specified',
314 rpm_cmd.append('-bs')
316 rpm_cmd.append('-bb')
318 rpm_cmd.append('-ba')
319 rpm_cmd.extend(['--define', '__python %s' % self.python])
321 rpm_cmd.extend(['--define',
324 rpm_cmd.append('--clean')
327 rpm_cmd.append('--quiet')
334 nvr_string = "%{name}-%{version}-%{release}"
337 q_cmd = r"rpm -q --qf '%s %s\n' --specfile '%s'" % (
398 '%define version ' + self.distribution.get_version().replace('-','_'),
400 '%define release ' + self.release.replace('-','_'),
407 vendor_hook = subprocess.getoutput('rpm --eval %{__os_install_post}')
410 # invocation of brp-python-bytecompile passes in __python):
413 problem = "brp-python-bytecompile \\\n"
414 fixed = "brp-python-bytecompile %{__python} \\\n"
422 # in a config file -- arg!)
430 'Release: %{release}',])
434 # running "sdist", in case of --spec-only.
436 spec_file.append('Source0: %{name}-%{unmangled_version}.tar.bz2')
438 spec_file.append('Source0: %{name}-%{unmangled_version}.tar.gz')
443 'BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot',
491 # easily support this ;-(
495 # '%description -l ' + locale,
508 # XXX this is kind of misleading: user-supplied options are files
510 # are just text that we drop in as-is. Hmmm.
512 install_cmd = ('%s install -O1 --root=$RPM_BUILD_ROOT '
513 '--record=INSTALLED_FILES') % def_setup_call
516 ('prep', 'prep_script', "%setup -n %{name}-%{unmangled_version}"),
519 ('clean', 'clean_script', "rm -rf $RPM_BUILD_ROOT"),
522 ('post', 'post_install', None),
545 '%files -f INSTALLED_FILES',
546 '%defattr(-,root,root)',
570 elif line[0] == '-':