1 |
%define oname imobiledevice |
2 |
%define major 4 |
3 |
%define libname %mklibname %{oname} %{major} |
4 |
%define libnamedev %mklibname -d %{oname} |
5 |
|
6 |
Name: libimobiledevice |
7 |
Version: 1.1.5 |
8 |
Release: %mkrel 4 |
9 |
Summary: Library for connecting to Apple devices |
10 |
Group: System/Libraries |
11 |
License: LGPLv2+ |
12 |
URL: http://libimobiledevice.org/ |
13 |
Source0: http://www.libimobiledevice.org/downloads/%{name}-%{version}.tar.bz2 |
14 |
Patch0: libimobiledevice-1.1.5-CVE-2013-2142.patch |
15 |
Patch1: libimobiledevice-1.1.5-cython.patch |
16 |
BuildRequires: pkgconfig(libplist) >= 1.8 |
17 |
BuildRequires: pkgconfig(libplist++) >= 1.8 |
18 |
BuildRequires: pkgconfig(libusbmuxd) >= 1.0.8 |
19 |
BuildRequires: pkgconfig(openssl) >= 0.9.8 |
20 |
BuildRequires: swig |
21 |
BuildRequires: python-devel |
22 |
BuildRequires: python-cython |
23 |
# for CVE-2013-2142 patch |
24 |
BuildRequires: autoconf automake |
25 |
|
26 |
%description |
27 |
libimobiledevice is a software library that talks the protocols to support |
28 |
iPhone®, iPod Touch®, iPad® and Apple TV® devices. |
29 |
|
30 |
Unlike other projects, it does not depend on using any existing proprietary |
31 |
libraries and does not require jailbreaking. It allows other software to |
32 |
easily access the device's filesystem, retrieve information about the device |
33 |
and it's internals, backup/restore the device, manage SpringBoard® icons, |
34 |
manage installed applications, retrieve addressbook/calendars/notes and |
35 |
bookmarks and (using libgpod) synchronize music and video to the device. |
36 |
|
37 |
%package -n %{libname} |
38 |
Group: System/Libraries |
39 |
Summary: Library for connecting to Apple devices |
40 |
Requires: %{name} >= %{version}-%{release} |
41 |
|
42 |
%description -n %{libname} |
43 |
libimobiledevice is a software library that talks the protocols to support |
44 |
iPhone®, iPod Touch®, iPad® and Apple TV® devices. |
45 |
|
46 |
%package -n %{libnamedev} |
47 |
Summary: Development package for %{name} |
48 |
Group: Development/C |
49 |
Provides: %{name}-devel = %{version}-%{release} |
50 |
Requires: %{libname} = %{version}-%{release} |
51 |
|
52 |
%description -n %{libnamedev} |
53 |
Files for development with %{name}. |
54 |
|
55 |
%package -n python-imobiledevice |
56 |
Summary: Python bindings for %{name} |
57 |
Group: Development/Python |
58 |
|
59 |
%description -n python-imobiledevice |
60 |
Python bindings for %{name}. |
61 |
|
62 |
%prep |
63 |
%setup -q |
64 |
%apply_patches |
65 |
|
66 |
%build |
67 |
autoreconf -fi # for CVE-2013-2142 patch |
68 |
%configure2_5x --disable-static |
69 |
%make |
70 |
|
71 |
%install |
72 |
%makeinstall_std |
73 |
|
74 |
#we don't want these |
75 |
find %{buildroot} -name "*.la" -delete |
76 |
|
77 |
%files |
78 |
%doc AUTHORS COPYING.LESSER README |
79 |
%{_bindir}/idevice_id |
80 |
%{_bindir}/ideviceinfo |
81 |
%{_bindir}/idevicepair |
82 |
%{_bindir}/idevicesyslog |
83 |
%{_bindir}/idevicebackup |
84 |
%{_bindir}/ideviceimagemounter |
85 |
%{_bindir}/ideviceenterrecovery |
86 |
%{_bindir}/idevicescreenshot |
87 |
%{_bindir}/idevicebackup2 |
88 |
%{_bindir}/idevicedate |
89 |
%{_bindir}/idevicedebugserverproxy |
90 |
%{_bindir}/idevicediagnostics |
91 |
%{_bindir}/ideviceprovision |
92 |
%{_mandir}/man1/idevice*.1.* |
93 |
|
94 |
%files -n %{libname} |
95 |
%{_libdir}/%{name}.so.%{major}* |
96 |
|
97 |
%files -n %{libnamedev} |
98 |
%{_libdir}/pkgconfig/%{name}-1.0.pc |
99 |
%{_libdir}/%{name}.so |
100 |
%{_includedir}/%{name} |
101 |
|
102 |
%files -n python-imobiledevice |
103 |
%{python_sitearch}/%{oname}.so |