SHA256
1
0
forked from pool/libHX

Accepting request 222622 from devel:libraries:c_c++

Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/222622
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libHX?expand=0&rev=51
This commit is contained in:
Stephan Kulow 2014-02-18 13:44:53 +00:00 committed by Git OBS Bridge
commit d3bd456eaf
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