SHA256
1
0
forked from pool/libHX

SLE11 does not like OOT build

OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libHX?expand=0&rev=71
This commit is contained in:
Jan Engelhardt 2014-02-23 20:29:48 +00:00 committed by Git OBS Bridge
parent 15adb9f925
commit 5446b211d4

View File

@ -81,23 +81,19 @@ tar -xf "%{S:0}" --use=xz;
%endif
%build
%define _configure ../configure
mkdir obj;
pushd obj/
%configure --includedir="%_includedir/pkg/%name" --docdir="%_docdir/%name"
make %{?_smp_mflags}
popd
%install
b="%buildroot";
make -C obj DESTDIR="$b" install
make DESTDIR="$b" install
mkdir -p "$b/%_docdir/%name"
install -pm0644 doc/* "$b/%_docdir/%name"
rm -f "$b/%_docdir/%name"/Makefile*
find "$b/%_libdir" -type f -name "*.la" -delete;
%check
make -C obj check %{?_smp_mflags}
make check %{?_smp_mflags}
%post -n %lname -p /sbin/ldconfig
%postun -n %lname -p /sbin/ldconfig