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 %endif
%build %build
%define _configure ../configure
mkdir obj;
pushd obj/
%configure --includedir="%_includedir/pkg/%name" --docdir="%_docdir/%name" %configure --includedir="%_includedir/pkg/%name" --docdir="%_docdir/%name"
make %{?_smp_mflags} make %{?_smp_mflags}
popd
%install %install
b="%buildroot"; b="%buildroot";
make -C obj DESTDIR="$b" install make DESTDIR="$b" install
mkdir -p "$b/%_docdir/%name" mkdir -p "$b/%_docdir/%name"
install -pm0644 doc/* "$b/%_docdir/%name" install -pm0644 doc/* "$b/%_docdir/%name"
rm -f "$b/%_docdir/%name"/Makefile* rm -f "$b/%_docdir/%name"/Makefile*
find "$b/%_libdir" -type f -name "*.la" -delete; find "$b/%_libdir" -type f -name "*.la" -delete;
%check %check
make -C obj check %{?_smp_mflags} make check %{?_smp_mflags}
%post -n %lname -p /sbin/ldconfig %post -n %lname -p /sbin/ldconfig
%postun -n %lname -p /sbin/ldconfig %postun -n %lname -p /sbin/ldconfig