forked from pool/libHX
OOT build
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libHX?expand=0&rev=68
This commit is contained in:
parent
7bbf3b66cd
commit
cec31dfd62
@ -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
|
||||
|
||||
|
10
libHX.spec
10
libHX.spec
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user