Commit d65cc5b1 authored by Lasse Karstensen's avatar Lasse Karstensen

Use macros instead, add some safeguards.

Inspired by pull request to libvmod-ipcast from Martin Probst.
parent 9d9bf1bb
......@@ -20,14 +20,15 @@ Example VMOD
%build
%configure --prefix=/usr/
make
make check
%{__make} %{?_smp_mflags}
%{__make} %{?_smp_mflags} check
%install
make install DESTDIR=%{buildroot}
[ %{buildroot} != "/" ] && %{__rm} -rf %{buildroot}
%{__make} install DESTDIR=%{buildroot}
%clean
rm -rf %{buildroot}
[ %{buildroot} != "/" ] && %{__rm} -rf %{buildroot}
%files
%defattr(-,root,root,-)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment