1 |
blino |
18989 |
%define name libimobiledevice |
2 |
|
|
%define version 1.0.4 |
3 |
|
|
%define major 1 |
4 |
|
|
%define libname %mklibname imobiledevice %major |
5 |
|
|
%define libnamedev %mklibname -d imobiledevice |
6 |
|
|
|
7 |
|
|
Name: %{name} |
8 |
|
|
Version: %{version} |
9 |
|
|
Release: %mkrel 1 |
10 |
|
|
Summary: Library for connecting to Apple iPhone and iPod touch |
11 |
|
|
Group: System/Libraries |
12 |
|
|
License: LGPLv2+ |
13 |
|
|
URL: http://libimobiledevice.org/ |
14 |
|
|
Source0: http://www.libimobiledevice.org/downloads/%{name}-%{version}.tar.bz2 |
15 |
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot |
16 |
|
|
BuildRequires: libtasn1-devel |
17 |
|
|
BuildRequires: libplist-devel |
18 |
|
|
BuildRequires: usbmuxd-devel >= 0.1.4 |
19 |
|
|
BuildRequires: glib2-devel |
20 |
|
|
BuildRequires: gnutls-devel |
21 |
|
|
BuildRequires: python-devel |
22 |
|
|
|
23 |
|
|
%description |
24 |
|
|
libimobiledevice is a library for connecting to Apple's iPhone or iPod touch devices |
25 |
|
|
|
26 |
|
|
%package -n %libname |
27 |
|
|
Group: System/Libraries |
28 |
|
|
Summary: Library for connecting to Apple iPhone and iPod touch |
29 |
|
|
Requires: %name >= %version |
30 |
|
|
|
31 |
|
|
%description -n %libname |
32 |
|
|
libimobiledevice is a library for connecting to Apple's iPhone or iPod touch devices |
33 |
|
|
|
34 |
|
|
%package -n %libnamedev |
35 |
|
|
Summary: Development package for libimobiledevice |
36 |
|
|
Group: Development/C |
37 |
|
|
Provides: %name-devel = %version-%release |
38 |
|
|
Requires: %libname = %{version}-%{release} |
39 |
|
|
|
40 |
|
|
%description -n %libnamedev |
41 |
|
|
Files for development with libimobiledevice. |
42 |
|
|
|
43 |
|
|
%package -n python-imobiledevice |
44 |
|
|
Summary: Python bindings for libimobiledevice |
45 |
|
|
Group: Development/Python |
46 |
|
|
BuildRequires: swig |
47 |
|
|
BuildRequires: libplist++-devel |
48 |
|
|
%py_requires -d |
49 |
|
|
|
50 |
|
|
|
51 |
|
|
%description -n python-imobiledevice |
52 |
|
|
Python bindings for libimobiledevice. |
53 |
|
|
|
54 |
|
|
%prep |
55 |
|
|
%setup -q |
56 |
|
|
#%patch0 -p1 |
57 |
|
|
#autoreconf -fi |
58 |
|
|
|
59 |
|
|
%build |
60 |
|
|
%configure2_5x |
61 |
|
|
%make |
62 |
|
|
|
63 |
|
|
%install |
64 |
|
|
rm -rf %{buildroot} |
65 |
|
|
%makeinstall_std |
66 |
|
|
|
67 |
|
|
%clean |
68 |
|
|
rm -rf %{buildroot} |
69 |
|
|
|
70 |
|
|
%if %mdkversion < 200900 |
71 |
|
|
%post -n %libname -p /sbin/ldconfig |
72 |
|
|
%endif |
73 |
|
|
%if %mdkversion < 200900 |
74 |
|
|
%postun -n %libname -p /sbin/ldconfig |
75 |
|
|
%endif |
76 |
|
|
|
77 |
|
|
%files |
78 |
|
|
%defattr(-,root,root,-) |
79 |
|
|
%doc AUTHORS COPYING.LESSER README |
80 |
|
|
%{_bindir}/idevice_id |
81 |
|
|
%{_bindir}/ideviceinfo |
82 |
|
|
%{_bindir}/idevicepair |
83 |
|
|
%{_bindir}/idevicesyslog |
84 |
|
|
%{_bindir}/idevicebackup |
85 |
|
|
%{_bindir}/ideviceimagemounter |
86 |
|
|
%{_bindir}/idevicescreenshot |
87 |
|
|
%{_mandir}/man1/idevice*.1.* |
88 |
|
|
|
89 |
|
|
%files -n %libname |
90 |
|
|
%defattr(-,root,root) |
91 |
|
|
%_libdir/lib*.so.%{major}* |
92 |
|
|
|
93 |
|
|
%files -n %libnamedev |
94 |
|
|
%defattr(-,root,root,-) |
95 |
|
|
%{_libdir}/pkgconfig/libimobiledevice-1.0.pc |
96 |
|
|
%{_libdir}/libimobiledevice.so |
97 |
|
|
%{_libdir}/libimobiledevice*a |
98 |
|
|
%{_includedir}/libimobiledevice |
99 |
|
|
|
100 |
|
|
%files -n python-imobiledevice |
101 |
|
|
%defattr(-,root,root,-) |
102 |
|
|
%{python_sitearch}/imobiledevice/ |
103 |
|
|
|
104 |
|
|
|