]>
Commit | Line | Data |
---|---|---|
6b6a2331 MB |
1 | Summary: Library for connecting to mobile devices |
2 | Summary(pl.UTF-8): Biblioteka do łączenia się z urządzeniami mobilnymi | |
3 | Name: libimobiledevice | |
4 | Version: 0.9.7 | |
5 | Release: 1 | |
6 | License: LGPL v2+ | |
7 | Group: Libraries | |
8 | Source0: http://cloud.github.com/downloads/MattColyer/libiphone/%{name}-%{version}.tar.bz2 | |
9 | # Source0-md5: b47cf0a645bc2ee2fa34dac11743b40f | |
10 | URL: http://matt.colyer.name/projects/iphone-linux/ | |
11 | BuildRequires: autoconf >= 2.61 | |
12 | BuildRequires: automake | |
13 | BuildRequires: glib2-devel >= 1:2.14.1 | |
14 | BuildRequires: gnutls-devel >= 1.6.3 | |
15 | BuildRequires: libgcrypt-devel | |
16 | BuildRequires: libplist-devel >= 0.15 | |
17 | BuildRequires: libtasn1-devel >= 1.1 | |
18 | BuildRequires: libtool | |
19 | BuildRequires: pkgconfig | |
20 | BuildRequires: swig-python | |
21 | BuildRequires: usbmuxd-devel >= 0.1.4 | |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
23 | ||
24 | %description | |
25 | libimobiledevice is a library for connecting to mobile devices. | |
26 | ||
27 | %description -l pl.UTF-8 | |
28 | libimobiledevice jest biblioteką do łączenia się z urządzeniami | |
29 | mobilnymi. | |
30 | ||
31 | %package devel | |
32 | Summary: Header files for libimobiledevice library | |
33 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libimobiledevice | |
34 | Group: Development/Libraries | |
35 | Requires: %{name} = %{version}-%{release} | |
36 | Requires: glib2-devel >= 1:2.14.1 | |
37 | Requires: gnutls-devel >= 1.6.3 | |
38 | Requires: libplist-devel >= 0.15 | |
39 | Requires: libtasn1-devel >= 1.1 | |
40 | Requires: usbmuxd-devel >= 0.1.4 | |
41 | ||
42 | %description devel | |
43 | Header files for libimobiledevice library. | |
44 | ||
45 | %description devel -l pl.UTF-8 | |
46 | Pliki nagłówkowe biblioteki libimobiledevice. | |
47 | ||
48 | %package static | |
49 | Summary: Static libimobiledevice library | |
50 | Summary(pl.UTF-8): Statyczna biblioteka libimobiledevice | |
51 | Group: Development/Libraries | |
52 | Requires: %{name}-devel = %{version}-%{release} | |
53 | ||
54 | %description static | |
55 | Static libimobiledevice library. | |
56 | ||
57 | %description static -l pl.UTF-8 | |
58 | Statyczna biblioteka libimobiledevice. | |
59 | ||
60 | %package -n python-imobiledevice | |
61 | Summary: libimobiledevice Python bindings | |
62 | Summary(pl.UTF-8): Wiązania libimobiledevice dla Pythona | |
63 | Group: Development/Languages/Python | |
64 | Requires: %{name} = %{version}-%{release} | |
65 | ||
66 | %description -n python-imobiledevice | |
67 | libimobiledevice Python bindings. | |
68 | ||
69 | %description -n python-imobiledevice -l pl.UTF-8 | |
70 | Wiązania libimobiledevice dla Pythona. | |
71 | ||
72 | %prep | |
73 | %setup -q | |
74 | ||
75 | %build | |
76 | %{__libtoolize} | |
77 | %{__aclocal} -I m4 | |
78 | %{__autoconf} | |
79 | %{__autoheader} | |
80 | %{__automake} | |
81 | %configure | |
82 | %{__make} | |
83 | ||
84 | %install | |
85 | rm -rf $RPM_BUILD_ROOT | |
86 | ||
87 | %{__make} install \ | |
88 | DESTDIR=$RPM_BUILD_ROOT | |
89 | ||
90 | rm -f $RPM_BUILD_ROOT%{py_sitedir}/imobiledevice/*.{a,la} | |
91 | ||
92 | %py_comp $RPM_BUILD_ROOT%{py_sitedir} | |
93 | %py_ocomp $RPM_BUILD_ROOT%{py_sitedir} | |
94 | %py_postclean | |
95 | ||
96 | %clean | |
97 | rm -rf $RPM_BUILD_ROOT | |
98 | ||
99 | %post -p /sbin/ldconfig | |
100 | %postun -p /sbin/ldconfig | |
101 | ||
102 | %files | |
103 | %defattr(644,root,root,755) | |
104 | %doc AUTHORS NEWS README | |
105 | %attr(755,root,root) %{_bindir}/idevice_id | |
106 | %attr(755,root,root) %{_bindir}/idevicebackup | |
107 | %attr(755,root,root) %{_bindir}/ideviceinfo | |
108 | %attr(755,root,root) %{_bindir}/idevicesyslog | |
109 | %attr(755,root,root) %{_libdir}/libimobiledevice.so.*.*.* | |
110 | %attr(755,root,root) %ghost %{_libdir}/libimobiledevice.so.0 | |
111 | %{_datadir}/hal/fdi/information/20thirdparty/31-apple-mobile-device.fdi | |
112 | ||
113 | %files devel | |
114 | %defattr(644,root,root,755) | |
115 | %doc docs/html/ | |
116 | %attr(755,root,root) %{_libdir}/libimobiledevice.so | |
117 | %{_libdir}/libimobiledevice.la | |
118 | %{_includedir}/libimobiledevice | |
119 | %{_pkgconfigdir}/libimobiledevice-1.0.pc | |
120 | ||
121 | %files static | |
122 | %defattr(644,root,root,755) | |
123 | %{_libdir}/libimobiledevice.a | |
124 | ||
125 | %files -n python-imobiledevice | |
126 | %defattr(644,root,root,755) | |
127 | %dir %{py_sitedir}/imobiledevice | |
128 | %attr(755,root,root) %{py_sitedir}/imobiledevice/_imobiledevice.so | |
129 | %{py_sitedir}/imobiledevice/*.py[co] |