2010-04-22 11:02:35 +00:00
|
|
|
#
|
2011-05-20 12:48:10 +00:00
|
|
|
# spec file for package libimobiledevice
|
2010-04-22 11:02:35 +00:00
|
|
|
#
|
2013-01-21 16:38:47 +00:00
|
|
|
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2010-04-22 11:02:35 +00:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2013-01-21 16:38:47 +00:00
|
|
|
%define with_python 0%{suse_version} < 1230
|
|
|
|
|
2010-04-22 11:02:35 +00:00
|
|
|
Name: libimobiledevice
|
2012-04-18 14:28:28 +00:00
|
|
|
%define _name libimobiledevice3
|
|
|
|
Version: 1.1.4
|
|
|
|
Release: 0
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: libopenssl-devel
|
|
|
|
BuildRequires: libplist++-devel >= 1.8
|
|
|
|
BuildRequires: libplist-devel >= 1.8
|
|
|
|
BuildRequires: libtool
|
2010-04-22 11:02:35 +00:00
|
|
|
BuildRequires: libusbmuxd-devel >= 1.0.0
|
2012-04-18 14:28:28 +00:00
|
|
|
BuildRequires: libxml2-devel
|
2013-01-21 16:38:47 +00:00
|
|
|
%if %{?suse_version} > 1140 && %{with_python}
|
2012-04-18 14:28:28 +00:00
|
|
|
BuildRequires: python-cython
|
|
|
|
BuildRequires: python-devel
|
|
|
|
BuildRequires: python-plist
|
|
|
|
%endif
|
|
|
|
BuildRequires: readline-devel
|
|
|
|
BuildRequires: sed
|
2010-04-22 11:02:35 +00:00
|
|
|
%if 0%{?opensuse_bs}
|
|
|
|
BuildRequires: pkg-config
|
|
|
|
%endif
|
|
|
|
%if 0%{?suse_version} <= 1110
|
|
|
|
BuildRequires: libusb-1_0-devel >= 1.0.3
|
|
|
|
%endif
|
2013-04-22 12:08:49 +00:00
|
|
|
Source: http://www.libimobiledevice.org/downloads/%{name}-%{version}.tar.bz2
|
2011-07-27 07:52:55 +00:00
|
|
|
Source1: baselibs.conf
|
2012-06-25 10:48:52 +00:00
|
|
|
Patch0: libimobiledevice-cython1.16-detection.patch
|
2012-07-12 08:46:59 +00:00
|
|
|
# PATCH-FIX-UPSTREAM libimobiledevice-segfault-fix.patch bnc768537 libiphone273 sbrabec@suse.cz -- Fix segfault without $XDG_CONFIG_HOME and $HOME set.
|
|
|
|
Patch1: libimobiledevice-segfault-fix.patch
|
2010-06-22 08:15:38 +00:00
|
|
|
Summary: Native protocols library for iPhone, iPod Touch and iPad
|
2012-04-18 14:28:28 +00:00
|
|
|
License: LGPL-2.1+
|
|
|
|
Group: System/Libraries
|
2010-04-22 11:02:35 +00:00
|
|
|
Url: http://www.libimobiledevice.org
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
Requires: usbmuxd >= 1.0.0
|
|
|
|
Obsoletes: libiphone0 < 0.9.6
|
|
|
|
|
|
|
|
%description
|
|
|
|
libimobiledevice is a software library that talks the protocols to support
|
2010-06-22 08:15:38 +00:00
|
|
|
iPhone, iPod Touch and iPad devices. Unlike other projects, it does not depend
|
2010-04-22 11:02:35 +00:00
|
|
|
on using any existing `.dll` or `.so` libraries from Apple.
|
|
|
|
|
|
|
|
%package -n %{_name}
|
2011-05-20 12:48:21 +00:00
|
|
|
|
2010-06-22 08:15:38 +00:00
|
|
|
Summary: Native protocols library for iPhone, iPod Touch and iPad
|
2012-04-18 14:28:28 +00:00
|
|
|
License: LGPL-2.1+
|
2010-04-22 11:02:35 +00:00
|
|
|
Group: System/Libraries
|
|
|
|
Provides: %{name} = %{version}
|
|
|
|
Obsoletes: %{name} < %{version}
|
|
|
|
Obsoletes: libiphone0 < 0.9.6
|
|
|
|
|
|
|
|
%description -n %{_name}
|
|
|
|
libimobiledevice is a software library that talks the protocols to support
|
2010-06-22 08:15:38 +00:00
|
|
|
iPhone, iPod Touch and iPad devices. Unlike other projects, it does not depend
|
2010-04-22 11:02:35 +00:00
|
|
|
on using any existing `.dll` or `.so` libraries from Apple.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development files for %{_name}
|
2012-04-18 14:28:28 +00:00
|
|
|
License: LGPL-2.1+
|
2010-04-22 11:02:35 +00:00
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: %{_name} = %{version}
|
2012-04-18 14:28:28 +00:00
|
|
|
Requires: libopenssl-devel
|
2011-01-07 08:36:34 +00:00
|
|
|
Requires: libplist-devel
|
2010-04-22 11:02:35 +00:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
The %{name}-devel package contains libraries and header files for
|
|
|
|
developing applications that use %{_name}.
|
|
|
|
|
|
|
|
%package tools
|
2010-06-22 08:15:38 +00:00
|
|
|
Summary: Tools using %{_name} for iPhone, iPod Touch and iPad
|
2013-01-21 16:38:47 +00:00
|
|
|
License: GPL-2.0+ and LGPL-2.1+
|
2010-04-22 11:02:35 +00:00
|
|
|
Group: Productivity/Multimedia/Other
|
|
|
|
Requires: %{_name} = %{version}
|
|
|
|
|
|
|
|
%description tools
|
|
|
|
libimobiledevice is a software library that talks the protocols to support
|
2010-06-22 08:15:38 +00:00
|
|
|
iPhone, iPod Touch and iPad devices. Unlike other projects, it does not depend
|
2010-04-22 11:02:35 +00:00
|
|
|
on using any existing `.dll` or `.so` libraries from Apple.
|
|
|
|
|
|
|
|
%package doc
|
|
|
|
Summary: API Reference Documentation for %{_name}
|
2012-04-18 14:28:28 +00:00
|
|
|
License: LGPL-2.1+
|
2010-04-22 11:02:35 +00:00
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
|
|
|
|
%description doc
|
|
|
|
Contains API reference documentation for developers using %{_name}.
|
|
|
|
|
2013-01-21 16:38:47 +00:00
|
|
|
%if %{?suse_version} > 1140 && %{with_python}
|
2010-04-22 11:02:35 +00:00
|
|
|
%package -n python-imobiledevice
|
|
|
|
Summary: Python bindings for %{_name}
|
2012-04-18 14:28:28 +00:00
|
|
|
License: LGPL-2.1+
|
2010-04-22 11:02:35 +00:00
|
|
|
Group: Development/Languages/Python
|
|
|
|
Requires: %{_name} = %{version}
|
2012-04-18 14:28:28 +00:00
|
|
|
Requires: libplist++1 >= 1.8
|
2010-04-22 11:02:35 +00:00
|
|
|
%{py_requires}
|
|
|
|
|
|
|
|
%description -n python-imobiledevice
|
|
|
|
Contains Python bindings for developing applications that use %{_name}.
|
2012-04-18 14:28:28 +00:00
|
|
|
%endif
|
2010-04-22 11:02:35 +00:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{name}-%{version}
|
2012-06-25 10:48:52 +00:00
|
|
|
%patch0 -p1
|
2012-07-12 08:46:59 +00:00
|
|
|
%patch1
|
2010-04-22 11:02:35 +00:00
|
|
|
|
|
|
|
%build
|
2011-05-30 14:06:47 +00:00
|
|
|
autoreconf -fi
|
2010-04-22 11:02:35 +00:00
|
|
|
sed -i -e '/Requires:/d' %{name}-1.0.pc.in
|
|
|
|
sed -i -e 's/-L${libdir}//' %{name}-1.0.pc.in
|
|
|
|
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
|
2011-01-07 08:36:34 +00:00
|
|
|
%configure --disable-silent-rules \
|
2013-01-21 16:38:47 +00:00
|
|
|
%if %{?suse_version} <= 1140 || !(%{with_python})
|
2012-04-18 14:28:28 +00:00
|
|
|
--without-cython \
|
|
|
|
%endif
|
2011-05-20 12:48:10 +00:00
|
|
|
--disable-static --disable-dev-tools
|
2012-04-18 14:28:28 +00:00
|
|
|
make %{?_smp_mflags}
|
2010-04-22 11:02:35 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
%{__make} install DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
find $RPM_BUILD_ROOT -type f -name "*.la" -exec %{__rm} -fv {} +
|
|
|
|
rm -rf $RPM_BUILD_ROOT/%{_libdir}/%{name}.*a*
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%post -n %{_name} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -n %{_name} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files -n %{_name}
|
|
|
|
%defattr(-,root,root)
|
2011-05-20 12:48:10 +00:00
|
|
|
%doc COPYING.LESSER
|
2010-04-22 11:02:35 +00:00
|
|
|
%{_libdir}/%{name}.so.*
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%dir %{_includedir}/%{name}
|
|
|
|
%{_includedir}/%{name}/*
|
|
|
|
%{_libdir}/%{name}.so
|
|
|
|
%{_libdir}/pkgconfig/%{name}-1.0.pc
|
|
|
|
|
|
|
|
%files tools
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_bindir}/idevice_id
|
2010-06-22 08:15:38 +00:00
|
|
|
%{_bindir}/idevicepair
|
2010-04-22 11:02:35 +00:00
|
|
|
%{_bindir}/ideviceinfo
|
|
|
|
%{_bindir}/idevicesyslog
|
|
|
|
%{_bindir}/idevicebackup
|
2011-05-20 12:48:10 +00:00
|
|
|
%{_bindir}/idevicebackup2
|
2010-04-22 11:02:35 +00:00
|
|
|
%{_bindir}/ideviceimagemounter
|
|
|
|
%{_bindir}/idevicescreenshot
|
2011-05-20 12:48:10 +00:00
|
|
|
%{_bindir}/ideviceenterrecovery
|
|
|
|
%{_bindir}/idevicedate
|
2010-04-22 11:02:35 +00:00
|
|
|
%doc %{_mandir}/man1/idevice_id.1.*
|
2011-05-20 12:48:10 +00:00
|
|
|
%doc %{_mandir}/man1/idevicepair.1.*
|
2010-04-22 11:02:35 +00:00
|
|
|
%doc %{_mandir}/man1/ideviceinfo.1.*
|
|
|
|
%doc %{_mandir}/man1/idevicesyslog.1.*
|
|
|
|
%doc %{_mandir}/man1/idevicebackup.1.*
|
2011-05-20 12:48:10 +00:00
|
|
|
%doc %{_mandir}/man1/idevicebackup2.1.*
|
2010-04-22 11:02:35 +00:00
|
|
|
%doc %{_mandir}/man1/ideviceimagemounter.1.*
|
|
|
|
%doc %{_mandir}/man1/idevicescreenshot.1.*
|
2011-05-20 12:48:10 +00:00
|
|
|
%doc %{_mandir}/man1/ideviceenterrecovery.1.*
|
|
|
|
%doc %{_mandir}/man1/idevicedate.1.*
|
2010-04-22 11:02:35 +00:00
|
|
|
|
|
|
|
%files doc
|
|
|
|
%defattr (-, root, root)
|
|
|
|
%doc AUTHORS COPYING COPYING.LESSER NEWS README
|
|
|
|
%docdir docs/html
|
|
|
|
|
2013-01-21 16:38:47 +00:00
|
|
|
%if %{?suse_version} > 1140 && %{with_python}
|
2010-04-22 11:02:35 +00:00
|
|
|
%files -n python-imobiledevice
|
|
|
|
%defattr(-,root,root,-)
|
2012-04-18 14:28:28 +00:00
|
|
|
%{py_sitedir}/imobiledevice.so
|
|
|
|
%endif
|
2010-04-22 11:02:35 +00:00
|
|
|
|
|
|
|
%changelog
|