forked from pool/libplist
Accepting request 92859 from devel:libraries:c_c++
OBS-URL: https://build.opensuse.org/request/show/92859 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libplist?expand=0&rev=16
This commit is contained in:
parent
48eb52d500
commit
639d1533c7
@ -1,3 +1,10 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Oct 5 12:24:02 UTC 2011 - uli@suse.com
|
||||||
|
|
||||||
|
- cross-build fix: set cmake root, python paths
|
||||||
|
- cross-build workaround: move installed files from sysroot to
|
||||||
|
real root
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Jun 28 13:59:00 UTC 2011 - aj@suse.de
|
Tue Jun 28 13:59:00 UTC 2011 - aj@suse.de
|
||||||
|
|
||||||
|
@ -115,11 +115,15 @@ This package contains the python bindings.
|
|||||||
|
|
||||||
%build
|
%build
|
||||||
export CFLAGS="%{optflags} -fno-strict-aliasing"
|
export CFLAGS="%{optflags} -fno-strict-aliasing"
|
||||||
|
%configure || true
|
||||||
cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} \
|
cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} \
|
||||||
-DCMAKE_INSTALL_LIBDIR=%{_lib} \
|
-DCMAKE_INSTALL_LIBDIR=%{_lib} \
|
||||||
-DCMAKE_VERBOSE_MAKEFILE=TRUE \
|
-DCMAKE_VERBOSE_MAKEFILE=TRUE \
|
||||||
-DPYTHON_VERSION=%{py_ver} \
|
-DPYTHON_VERSION=%{py_ver} \
|
||||||
-DPYTHON_SITEDIR=%{py_sitedir} \
|
-DPYTHON_SITEDIR=%{py_sitedir} \
|
||||||
|
-DCMAKE_FIND_ROOT_PATH=/%{?_sysroot} \
|
||||||
|
-DPYTHON_LIBRARY=%_libdir/python%{py_ver} \
|
||||||
|
-DPYTHON_INCLUDE_DIR=%{?_sysroot}/usr/include/python \
|
||||||
.
|
.
|
||||||
make %{?jobs:-j%jobs}
|
make %{?jobs:-j%jobs}
|
||||||
|
|
||||||
@ -128,6 +132,11 @@ make %{?jobs:-j%jobs}
|
|||||||
rm %{buildroot}%{_bindir}/plutil
|
rm %{buildroot}%{_bindir}/plutil
|
||||||
mv %{buildroot}%{_bindir}/plutil-%{version} %{buildroot}%{_bindir}/plutil
|
mv %{buildroot}%{_bindir}/plutil-%{version} %{buildroot}%{_bindir}/plutil
|
||||||
|
|
||||||
|
%if 0%{?_crossbuild}
|
||||||
|
cp -a %{buildroot}%{?_sysroot}/* %{buildroot}/
|
||||||
|
rm -fr %{buildroot}%{?_sysroot}
|
||||||
|
%endif
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
rm -rf %{buildroot}
|
rm -rf %{buildroot}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user