summaryrefslogtreecommitdiff
path: root/dracut.spec
diff options
context:
space:
mode:
authorHarald Hoyer <harald@redhat.com>2013-03-20 07:16:43 +0100
committerHarald Hoyer <harald@redhat.com>2013-03-20 08:01:29 +0100
commit1d4b3375431d2d19d511aa5784f2c1ed1e6bbb9e (patch)
tree6339c648c7d2ce2aa21f4d19cd03d61715e290c2 /dracut.spec
parent8c67d395d42b4e34c10418aa6c167122a72a951b (diff)
downloaddracut-1d4b3375431d2d19d511aa5784f2c1ed1e6bbb9e.tar.gz
dracut-1d4b3375431d2d19d511aa5784f2c1ed1e6bbb9e.tar.bz2
dracut-1d4b3375431d2d19d511aa5784f2c1ed1e6bbb9e.zip
dracut.spec: use configure
Diffstat (limited to 'dracut.spec')
-rw-r--r--dracut.spec15
1 files changed, 6 insertions, 9 deletions
diff --git a/dracut.spec b/dracut.spec
index cd61770f..93d497e3 100644
--- a/dracut.spec
+++ b/dracut.spec
@@ -194,20 +194,17 @@ git am -p1 %{patches}
%endif
%build
-make all
+%configure --systemdsystemunitdir=%{_unitdir} --bashcompletiondir=$(pkg-config --variable=completionsdir bash-completion) --libdir=%{_prefix}/lib
+
+make %{?_smp_mflags}
%install
%if 0%{?fedora} || 0%{?rhel}
rm -rf $RPM_BUILD_ROOT
%endif
-make install DESTDIR=$RPM_BUILD_ROOT \
- libdir=%{_prefix}/lib \
- bindir=%{_bindir} \
-%if %{defined _unitdir}
- systemdsystemunitdir=%{_unitdir} \
-%endif
- sysconfdir=/etc mandir=%{_mandir} \
- bashcompletiondir=$(pkg-config --variable=completionsdir bash-completion)
+make %{?_smp_mflags} install \
+ DESTDIR=$RPM_BUILD_ROOT \
+ libdir=%{_prefix}/lib
echo "DRACUT_VERSION=%{version}-%{release}" > $RPM_BUILD_ROOT/%{dracutlibdir}/dracut-version.sh