Browse Source

libimobiledevice: update to 1.1.6

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@8766 ec354946-7b23-47d6-9f5a-488ba84defc7
daisuke 9 years ago
parent
commit
505640ff3e
1 changed files with 30 additions and 21 deletions
  1. 30 21
      lib/libi/libimobiledevice/libimobiledevice-vl.spec

+ 30 - 21
lib/libi/libimobiledevice/libimobiledevice-vl.spec

@@ -1,6 +1,8 @@
+%bcond_with python
+
 Name:          libimobiledevice
-Version:       1.1.5
-Release:       2%{?_dist_release}
+Version:       1.1.6
+Release:       1%{?_dist_release}
 Summary:       Library for connecting to mobile devices
 Summary(ja):   モバイルデバイスに接続するためのライブラリ
 
@@ -10,28 +12,29 @@ URL:           http://www.libimobiledevice.org/
 
 Source0:       http://cloud.github.com/downloads/MattColyer/libiphone/%{name}-%{version}.tar.bz2
 
-Patch0:        libimobiledevice-fixdso.patch
-Patch1:        libimobiledevice-1.1.4-pkgconfig.patch
-Patch2:        libimobiledevice-1.1.5-cython.patch
-
 BuildRoot:     %{_tmppath}/%{name}-%{version}-%{release}-root
 BuildRequires: libxml2-devel
 BuildRequires: libusb1-devel
 BuildRequires: libtasn1-devel
-BuildRequires: libplist-devel >= 1.10
+BuildRequires: libplist-devel >= 1.11
+BuildRequires: libplist-python
 BuildRequires: glib2-devel
 BuildRequires: gnutls-devel
 BuildRequires: python-devel
+%if %{with python}
 BuildRequires: Cython
+%endif
 BuildRequires: swig
-BuildRequires: usbmuxd-devel >= 1.0.8
-BuildRequires: openssl-devel
+BuildRequires: libusbmuxd-devel >= 1.0.9
+BuildRequires: libgcrypt-devel
+BuildRequires: readline-devel
 
 Provides: libiphone = %{version}
 Obsoletes: libiphone < 0.9.7 
 
 Vendor: Project Vine
 Distribution: Vine Linux
+Packager: daisuke
 
 %description
 libimobiledevice is a library for connecting to mobile devices including phones 
@@ -41,11 +44,7 @@ and music players
 Summary: Development package for libimobiledevice
 Summary(ja): libimobiledevice の開発用パッケージ
 Group: Development/Libraries
-Requires: pkgconfig
 Requires: %{name} = %{version}-%{release}
-Requires: libplist-devel >= 1.10
-Requires: usbmuxd-devel >= 0.1.0
-Requires: openssl-devel >= 0.9.8
 Provides: libiphone-devel = %{version}
 Obsoletes: libiphone-devel < 0.9.7 
 
@@ -65,19 +64,21 @@ Python bindings for libimobiledevice.
 
 %prep
 %setup -q
-%patch0 -p1 -b .fixdso
-%patch1 -p1 -b .pkgconfig
-%patch2 -p1 -b .pkgconfig
 
 # Fix dir permissions on html docs
 chmod +x docs/html
 
-# Allow build against swig 2.0.0. A proper fix would be nicer.
-sed -i 's|1.3.21|2.0.0|g' configure
-
 %build
-%configure --disable-static
-# Remove rpath as per https://fedoraproject.org/wiki/Packaging/Guidelines#Beware_of_Rpath
+%configure \
+  --disable-static \
+  --disable-openssl \
+%if %{with python}
+  --without-cython \
+  --without-python \
+%endif
+  --enable-dev-tools
+
+
 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
 
@@ -111,11 +112,19 @@ rm -rf %{buildroot}
 %{_libdir}/libimobiledevice.so
 %{_includedir}/libimobiledevice/
 
+%if %{with python}
 %files python
 %defattr(-,root,root,-)
 %{python_sitearch}/imobiledevice.so
+%endif
 
 %changelog
+* Tue Jul 08 2014 Daisuke SUZUKI <daisuke@vinelinux.org> 1.1.6-1
+- update to 1.1.6
+- add BR: libusbmuxd-devel >= 1.0.9, libgcrypt-devel, readline-devel
+- disable python
+- disable openssl
+
 * Sat Jan 04 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.1.5-2
 - rebuild with VineSeed environment
 - add Patch2 (libimobiledevice-1.1.5-cython.patch)