SHA256
1
0
forked from pool/libHX
Jan Engelhardt 2014-02-10 17:13:10 +00:00 committed by Git OBS Bridge
parent 7bbf3b66cd
commit cec31dfd62
2 changed files with 12 additions and 3 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Feb 10 17:12:56 UTC 2014 - jengelh@inai.de
- Do an out-of-srcdir build
-------------------------------------------------------------------
Fri Jan 3 09:24:44 UTC 2014 - jengelh@inai.de

View File

@ -110,19 +110,23 @@ tar -xf "%{S:0}" --use=xz;
%endif
%build
%configure --includedir="%_includedir/pkg/%name"
%define _configure ../configure
mkdir obj;
pushd obj/
%configure --includedir="%_includedir/pkg/%name" --docdir="%_docdir/%name"
make %{?_smp_mflags}
popd
%install
b="%buildroot";
make install DESTDIR="$b" docdir="%_docdir/%name"
make -C obj 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 check %{?_smp_mflags}
make -C obj check %{?_smp_mflags}
%post -n %lname -p /sbin/ldconfig
%postun -n %lname -p /sbin/ldconfig