From 632f83fcc43711bf41c3cead0b3150685e36d601 Mon Sep 17 00:00:00 2001 From: Rex Dieter Date: Thu, 24 Apr 2014 23:06:16 -0500 Subject: [PATCH] disable broken -python on rawhide --- libimobiledevice.spec | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/libimobiledevice.spec b/libimobiledevice.spec index 5b56b05..271f328 100644 --- a/libimobiledevice.spec +++ b/libimobiledevice.spec @@ -1,8 +1,13 @@ %{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")} +# python/Cython support busted on rawhide atm +%if 0%{?fedora} < 21 +%global python 1 +%endif + Name: libimobiledevice Version: 1.1.5 -Release: 4%{?dist} +Release: 5%{?dist} Summary: Library for connecting to mobile devices Group: System Environment/Libraries @@ -19,8 +24,10 @@ BuildRequires: libusbx-devel BuildRequires: libxml2-devel BuildRequires: readline-devel BuildRequires: usbmuxd-devel +%if 0%{?python} BuildRequires: python-devel BuildRequires: Cython +%endif BuildRequires: swig %description @@ -50,7 +57,7 @@ Python bindings for libimobiledevice. chmod +x docs/html %build -%configure --disable-static --disable-openssl --enable-dev-tools +%configure --disable-static --disable-openssl --enable-dev-tools %{!?python:--without-cython} # Remove rpath as per https://fedoraproject.org/wiki/Packaging/Guidelines#Beware_of_Rpath sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool @@ -79,10 +86,15 @@ find %{buildroot} -name '*.la' -exec rm -f {} ';' %{_libdir}/libimobiledevice.so %{_includedir}/libimobiledevice/ +%if 0%{?python} %files python %{python_sitearch}/imobiledevice* +%endif %changelog +* Thu Apr 24 2014 Rex Dieter 1.1.5-5 +- disable broken -python on rawhide + * Wed Apr 23 2014 Peter Robinson 1.1.5-4 - Rebuild