disable broken -python on rawhide
This commit is contained in:
parent
c9643734d8
commit
632f83fcc4
@ -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 <rdieter@fedoraproject.org> 1.1.5-5
|
||||
- disable broken -python on rawhide
|
||||
|
||||
* Wed Apr 23 2014 Peter Robinson <pbrobinson@fedoraproject.org> 1.1.5-4
|
||||
- Rebuild
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user