Bug 10962

Summary: specific options in /etc/rpmrc are not recognized
Product: [Retired] Red Hat Linux Reporter: jruddell
Component: rpmAssignee: Jeff Johnson <jbj>
Status: CLOSED WORKSFORME QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 6.1   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2000-05-08 22:26:08 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description jruddell 2000-04-21 08:48:29 UTC
After created a .rpmrc file following the RPM_HOWTO I get the
following errors running rpm

bad option 'require_vendor' at /root/.rpmrc:1
bad option 'distribution' at /root/.rpmrc:2
bad option 'require_distribution' at /root/.rpmrc:3
bad option 'topdir' at /root/.rpmrc:4
bad option 'vendor' at /root/.rpmrc:5
bad option 'packager' at /root/.rpmrc:6
bad option 'signature' at /root/.rpmrc:12
bad option 'pgp_name' at /root/.rpmrc:13
bad option 'pgp_path' at /root/.rpmrc:14
bad option 'tmppath' at /root/.rpmrc:16

using rpm version 3.0.4

using the follwing .rpmrc
require_vendor: 1
  distribution: I roll my own!
  require_distribution: 1
  topdir: /usr/src/me
  vendor: Mickiesoft
  packager:  Mickeysoft Packaging Account <packages>

  optflags: i386 -O2 -m486 -fno-strength-reduce
  optflags: alpha -O2
  optflags: sparc -O2

  signature: pgp
  pgp_name: Mickeysoft Packaging Account
  pgp_path: /home/packages/.pgp

  tmppath: /usr/tmp

Comment 1 Jeff Johnson 2000-05-08 22:26:59 UTC
The configuration of rpm has changed since "Maximum RPM". For your example,
put in /root/.rpmrc
   optflags: i386 -O2 -m486 -fno-strength-reduce
   optflags: alpha -O2
   optflags: sparc -O2

(Note: the above are the default rpm values, there's no reason to configure)

and the following in /root/.rpmmacros:

    %distribution   I roll my own!:
    %_topdir        /usr/src/me
    %vendor         Mickiesoft
    %packager       Mickeysoft Packaging Account <packages>

    %_signature     pgp
    %_pgp_name      Mickeysoft Packaging Account
    %_pgp_path      /home/packages/.pgp

    %_tmppath       /usr/tmp

(Note: there are no analogues of require_vendor/require_distribution)