+#
+# Conditional build:
+%bcond_without static_libs # don't build static libraries
+
Summary: Library for connecting to mobile devices
Summary(pl.UTF-8): Biblioteka do łączenia się z urządzeniami mobilnymi
Name: libimobiledevice
-Version: 1.0.1
-Release: 2
+Version: 1.0.6
+Release: 1
License: LGPL v2+
Group: Libraries
Source0: http://www.libimobiledevice.org/downloads/%{name}-%{version}.tar.bz2
-# Source0-md5: 684edcf0946f5a8db95bfcced7626dbe
+# Source0-md5: bd5cdff5212060ee299481360f67fa24
+Patch0: swig2.patch
URL: http://www.libimobiledevice.org/
BuildRequires: autoconf >= 2.61
BuildRequires: automake
BuildRequires: gnutls-devel >= 1.6.3
BuildRequires: libgcrypt-devel
BuildRequires: libplist-devel >= 0.15
+BuildRequires: libstdc++-devel
BuildRequires: libtasn1-devel >= 1.1
BuildRequires: libtool
BuildRequires: pkgconfig
-BuildRequires: swig-python >= 1.3.21
+BuildRequires: python-devel
+BuildRequires: python-modules
+BuildRequires: rpm-pythonprov
+BuildRequires: swig-python >= 2.0.0
BuildRequires: usbmuxd-devel >= 0.1.4
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%prep
%setup -q
+%patch0 -p1
%build
%{__libtoolize}
%{__autoheader}
%{__automake}
%configure \
+ %{!?with_static_libs:--disable-static} \
--disable-silent-rules
%{__make}
%files
%defattr(644,root,root,755)
%doc AUTHORS NEWS README
-%attr(755,root,root) %{_bindir}/idevice_id
%attr(755,root,root) %{_bindir}/idevicebackup
+%attr(755,root,root) %{_bindir}/ideviceenterrecovery
+%attr(755,root,root) %{_bindir}/idevice_id
%attr(755,root,root) %{_bindir}/ideviceimagemounter
%attr(755,root,root) %{_bindir}/ideviceinfo
+%attr(755,root,root) %{_bindir}/idevicepair
%attr(755,root,root) %{_bindir}/idevicescreenshot
%attr(755,root,root) %{_bindir}/idevicesyslog
%attr(755,root,root) %{_libdir}/libimobiledevice.so.*.*.*
%attr(755,root,root) %ghost %{_libdir}/libimobiledevice.so.1
-%{_mandir}/man1/idevice_id.1*
%{_mandir}/man1/idevicebackup.1*
+%{_mandir}/man1/ideviceenterrecovery.1*
+%{_mandir}/man1/idevice_id.1*
%{_mandir}/man1/ideviceimagemounter.1*
%{_mandir}/man1/ideviceinfo.1*
+%{_mandir}/man1/idevicepair.1*
%{_mandir}/man1/idevicescreenshot.1*
%{_mandir}/man1/idevicesyslog.1*
%{_includedir}/libimobiledevice
%{_pkgconfigdir}/libimobiledevice-1.0.pc
+%if %{with static_libs}
%files static
%defattr(644,root,root,755)
%{_libdir}/libimobiledevice.a
+%endif
%files -n python-imobiledevice
%defattr(644,root,root,755)