SHA256
1
0
forked from pool/libqb

Conditional make check, use %{buildroot} not $RPM_BUILD_ROOT

OBS-URL: https://build.opensuse.org/package/show/network:ha-clustering:Factory/libqb?expand=0&rev=7
This commit is contained in:
Tim Serong 2012-06-08 12:30:33 +00:00 committed by Git OBS Bridge
parent eccb5a73c5
commit 89eedddb57
3 changed files with 16 additions and 10 deletions

View File

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9a468657a79dbb1ce6a3c26c1aae49513f23478c23d7e05cacc8707ce1a70006
size 1274722
oid sha256:07b43b0130d117950f7f863f8f96649e8da5fea0a7e0baebb04f1646a74c12c2
size 1276126

View File

@ -50,15 +50,18 @@ Initially these are IPC and poll.
make %{?_smp_mflags}
%check
make check
# Tests require writable /dev/shm and /var/run
if [ -w /dev/shm -a -w /var/run ]; then
make check
fi
%install
%make_install
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
rm -rf $RPM_BUILD_ROOT/%{_docdir}/*
find %{buildroot} -name '*.la' -exec rm -f {} ';'
rm -rf %{buildroot}%{_docdir}/*
%clean
rm -rf $RPM_BUILD_ROOT
rm -rf %{buildroot}
%post -p /sbin/ldconfig

View File

@ -50,15 +50,18 @@ Initially these are IPC and poll.
make %{?_smp_mflags}
%check
make check
# Tests require writable /dev/shm and /var/run
if [ -w /dev/shm -a -w /var/run ]; then
make check
fi
%install
%make_install
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
rm -rf $RPM_BUILD_ROOT/%{_docdir}/*
find %{buildroot} -name '*.la' -exec rm -f {} ';'
rm -rf %{buildroot}%{_docdir}/*
%clean
rm -rf $RPM_BUILD_ROOT
rm -rf %{buildroot}
%post -p /sbin/ldconfig