What steps will reproduce the problem?
1. Sample rpm.spec file:
=======
#
Summary: FFmpeg customized for broadcast and professional usage.
Name: FFmbc
Version: 0.6.rc3
Release: 1
License: GPL
Group: Applications/Audio
Source: http://code.google.com/p/ffmbc/downloads/FFmbc-0.6.rc3.tar.gz
URL: http://code.google.com/p/ffmbc
Distribution: REDHAT 5.5 AMD64 Linux
Vendor: FFMediaBroadcast
Packager: Charles Sibbald <casibbald@gmail.com>
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
#BuildRequires:
%description
FFmpeg customized for broadcast and professional usage
Requires:
%prep
rm -rf $RPM_BUILD_DIR/FFmbc
zcat $RPM_SOURCE_DIR/FFmbc-0.6.rc3.tar.gz | tar -xvf -
# Tar file updated to extract correctly.
%setup -q
%build
#%configure
cd $RPM_BUILD_DIR/FFmbc
#./configure --enable-gpl
make %{?_smp_mflags}
%install
rm -rf %{buildroot}
make install DESTDIR=%{buildroot}
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%doc
%changelog
#===========
2. ]$ "rpmbuild -ba ffmbc-x86_64.spec"
============
Expect the configure stage to run with no issues.
What version of the product are you using? FFmbc-0.6-rc3
On what operating system? Redhat-5.5_x86_64
Please provide any additional information below:
-
++ find . -name config.guess -o -name config.sub
+ ./configure --build=x86_64-redhat-linux-gnu --host=x86_64-redhat-linux-gnu
--target=x86_64-redhat-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/lib64
--libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/usr/com
--mandir=/usr/share/man --infodir=/usr/share/info
Unknown option "--build=x86_64-redhat-linux-gnu".
See ./configure --help for available options.
error: Bad exit status from /var/tmp/rpm-tmp.46121 (%build)
RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.46121 (%build)
Original issue reported on code.google.com by casibb...@gmail.com on 15 Apr 2011 at 1:48
Original issue reported on code.google.com by
casibb...@gmail.com
on 15 Apr 2011 at 1:48