[CentOS] mock and iaxmodem

Fri Apr 5 18:38:27 UTC 2013
James B. Byrne <byrnejb at harte-lyne.ca>

I am trying to build an rpm package for iaxmodem-1.2.0.   At the
moment I am still trying to get a working spec file put together.  I
have managed to get an SRPM produced but the binary build from this
fails due to there being no install task in the Makefile.in provided
with the source.

I have found a spec file from opensuse that provides this in the
install portion:

%build
[ "%{buildroot}" != '/' ] && rm -rf %{buildroot}
# .  .  .
./configure
%{__make} %{?_smp_mflags}

%install
# install the bunch manually
mkdir -p $RPM_BUILD_ROOT/etc/logrotate.d $RPM_BUILD_ROOT/etc/iaxmodem
$RPM_BUILD_ROOT/usr/bin
%{__install} -m 644 %{S:1} $RPM_BUILD_ROOT/etc/logrotate.d/iaxmodem
%{__install} -D -m 755 iaxmodem %{buildroot}%{_sbindir}/iaxmodem
%{__install} -D -m 644 iaxmodem.1 %{buildroot}%{_mandir}/man1/iaxmodem.1
perl -pi -e 's,/usr/local/,/usr/,g' iaxmodem.init.fedora
%{__install} -D -m 755 iaxmodem.init.suse
%{buildroot}%{_initrddir}/iaxmodem

But in mock I get a failure on the build because make has no install
task.

+ make install
DESTDIR=/builddir/build/BUILDROOT/iaxmodem-1.2.0-1.el6.x86_64
make: *** No rule to make target `install'.  Stop.
RPM build errors:
error: Bad exit status from /var/tmp/rpm-tmp.apiDwk (%install)
    Bad exit status from /var/tmp/rpm-tmp.apiDwk (%install)
Child return code was: 1

I have next to no experience with building on Linux and I have no idea
of what I should do to resolve this.  What are my options at this
point?


-- 
***          E-Mail is NOT a SECURE channel          ***
James B. Byrne                mailto:ByrneJB at Harte-Lyne.ca
Harte & Lyne Limited          http://www.harte-lyne.ca
9 Brockley Drive              vox: +1 905 561 1241
Hamilton, Ontario             fax: +1 905 561 0757
Canada  L8E 3C3