[MonoDevelop] Build a RPM from C# source

Petit Eric surfzoid at gmail.com
Thu Nov 8 17:38:26 EST 2007


you make me confuse, i folow french howto's, specialy from mandriva
wiki and it say we can add configure option
http://www.linuxfrench.net/article.php3?id_article=1327

2007/11/8, Michael Hutchinson <m.j.hutchinson at gmail.com>:
> 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
>
> %build
> %{?env_options}
> ./configure --prefix=%{_prefix}  --config=RELEASE_ANY_CPU
> make
>
>
> --
> Michael Hutchinson
> http://mjhutchinson.com
>


More information about the Monodevelop-list mailing list