[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

%build doesn't do what I expect



I have a "sort of" working spec file now.
It works as expected up until the %build section.
I want it to run:
     "configure --prefix=/usr/local
--sysconfdir=/usr/local/conf/rpm-4.0.3"
but instead it does:
     "+ [ -f configure.in ]
      + libtoolize --copy --force
      You should update your `aclocal.m4' by running aclocal.
      + ./configure --host=sparc-sun-solaris2.6
--target=sparc-sun-solaris2.6-gnu --prefix=/usr/local
         --exec-prefix=/usr/local --bindir=/usr/local/bin
--sbindir=/usr/local/sbin --sysconfdir=/usr/local/etc
        --datadir=/usr/local/share --includedir=/usr/local/include
--libdir=/usr/local/lib --libexecdir=/usr/local/libexec
        --localstatedir=/usr/local/var --sharedstatedir=/usr/local/com
--mandir=/usr/local/man --infodir=/usr/local/info"

Note the --sysconfdir isn't what I want.

What's happening?

My spec file:
Summary: Red Hat Package Manager
Name: rpm
Version: 4.0.3
Release: 1
Copyright: Gnu Public License (GPL)
Group: Programming
Source: ftp://ftp.rpm.org/pub/rpm/dist/rpm-4.0.x/rpm-4.0.3.tar.gz
Packager: Paul Company <pjc@noyb.com>
Requires: popt = 1.6.3 gettext = 0.10
Prefix: /usr/local
%description
Red Hat Package Manager

## Prep Section
## Each of these sections is really just a place to execute shell
scripts.
## Anything you include up until the %build macro is executed via sh.
## Useful Macros: %setup [-ncDTba], %patch [-PpbE]
%prep
%setup

## Build Section
%build
configure --prefix=/usr/local --sysconfdir=/usr/local/conf/rpm-4.0.3
make

etc. etc.






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index] []