[MonoDevelop] Build a RPM from C# source

Michael Hutchinson m.j.hutchinson at gmail.com
Thu Nov 8 17:20:54 EST 2007

On Nov 8, 2007 5:08 PM, Petit Eric <surfzoid at gmail.com> wrote:
> Hello i try to build a RPM from my C# source code, if i simply do a :
> ./configure  --prefix=/usr --config=RELEASE_ANY_CPU
> make
> make install
> Every thing went OK, so in the .spec file i write configure like this:
> %configure  --prefix=/usr --config=RELEASE_ANY_CPU
> But when start the build of the RPM with rpm -ba xxxxxx.spec
> I have the folowing error :
> + ./configure i586-mandriva-linux-gnu --program-prefix= --prefix=/usr
> --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin
> --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include
> --libdir=/usr/lib --libexecdir=/usr/lib --localstatedir=/var/lib
> --sharedstatedir=/usr/com --mandir=/usr/share/man
> --infodir=/usr/share/info
> Unknown argument i586-mandriva-linux-gnu
> Usage : configure [--prefix=PREFIX] [--config=CONFIG]
> Configurations available :
>         RELEASE
>         DEBUG_ANY_CPU
>         RELEASE_ANY_CPU (Default)
>         DEBUG
> Is there a way to bypass the configure step ?

I'm not a RPM expert, but from the looks of things, the "%configure"
spec file command doesn't accept arguments. I guess you will have to
skip it and implement that part of the spec file manually. From spec
files I've seen, I think you need something like

./configure --prefix=%{_prefix}  --config=RELEASE_ANY_CPU

Michael Hutchinson

More information about the Monodevelop-list mailing list