Generate the configure script if it doesn't exist

This commit is contained in:
praveenp 2011-10-04 09:21:33 -05:00
parent 8c0bff29ad
commit 876c1554b1

View File

@ -1,6 +1,6 @@
Name: biosdevname
Version: 0.3.11
Release: 2%{?dist}
Release: 3%{?dist}
Summary: Udev helper for naming devices per BIOS names
Group: System Environment/Base
@ -29,6 +29,9 @@ name (e.g. eth0).
%setup -q
%build
#If configure script doesn't exist generate it with autogen script
[ -e ./configure ] || ./autogen.sh
# this is a udev rule, so it needs to live in / rather than /usr
%configure --disable-rpath --prefix=/ --sbindir=/sbin
make %{?_smp_mflags}
@ -51,6 +54,9 @@ rm -rf %{buildroot}
%changelog
* Tue Oct 4 2011 Praveen K Paladugu <praveen_paladugu@dell.com> - 0.3.11-3
- Generating the configure script if it doesn't exist
* Tue Oct 4 2011 Praveen K Paladugu <praveen_paladugu@dell.com> - 0.3.11-2
- Fixed the dir structure inside the archive