]>
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 | |
5f4040a2 | 4 | Version: 1.0.1 |
6b6a2331 MB |
5 | Release: 1 |
6 | License: LGPL v2+ | |
7 | Group: Libraries | |
5f4040a2 MB |
8 | Source0: http://www.libimobiledevice.org/downloads/%{name}-%{version}.tar.bz2 |
9 | # Source0-md5: 684edcf0946f5a8db95bfcced7626dbe | |
10 | URL: http://www.libimobiledevice.org/ | |
6b6a2331 MB |
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 | |
5f4040a2 | 20 | BuildRequires: swig-python >= 1.3.21 |
6b6a2331 MB |
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} | |
5f4040a2 MB |
81 | %configure \ |
82 | --disable-silent-rules | |
6b6a2331 MB |
83 | %{__make} |
84 | ||
85 | %install | |
86 | rm -rf $RPM_BUILD_ROOT | |
87 | ||
88 | %{__make} install \ | |
89 | DESTDIR=$RPM_BUILD_ROOT | |
90 | ||
91 | rm -f $RPM_BUILD_ROOT%{py_sitedir}/imobiledevice/*.{a,la} | |
92 | ||
93 | %py_comp $RPM_BUILD_ROOT%{py_sitedir} | |
94 | %py_ocomp $RPM_BUILD_ROOT%{py_sitedir} | |
95 | %py_postclean | |
96 | ||
97 | %clean | |
98 | rm -rf $RPM_BUILD_ROOT | |
99 | ||
100 | %post -p /sbin/ldconfig | |
101 | %postun -p /sbin/ldconfig | |
102 | ||
103 | %files | |
104 | %defattr(644,root,root,755) | |
105 | %doc AUTHORS NEWS README | |
106 | %attr(755,root,root) %{_bindir}/idevice_id | |
107 | %attr(755,root,root) %{_bindir}/idevicebackup | |
5f4040a2 | 108 | %attr(755,root,root) %{_bindir}/ideviceimagemounter |
6b6a2331 | 109 | %attr(755,root,root) %{_bindir}/ideviceinfo |
5f4040a2 | 110 | %attr(755,root,root) %{_bindir}/idevicescreenshot |
6b6a2331 MB |
111 | %attr(755,root,root) %{_bindir}/idevicesyslog |
112 | %attr(755,root,root) %{_libdir}/libimobiledevice.so.*.*.* | |
5f4040a2 MB |
113 | %attr(755,root,root) %ghost %{_libdir}/libimobiledevice.so.1 |
114 | %{_mandir}/man1/idevice_id.1* | |
115 | %{_mandir}/man1/idevicebackup.1* | |
116 | %{_mandir}/man1/ideviceimagemounter.1* | |
117 | %{_mandir}/man1/ideviceinfo.1* | |
118 | %{_mandir}/man1/idevicescreenshot.1* | |
119 | %{_mandir}/man1/idevicesyslog.1* | |
6b6a2331 MB |
120 | |
121 | %files devel | |
122 | %defattr(644,root,root,755) | |
123 | %doc docs/html/ | |
124 | %attr(755,root,root) %{_libdir}/libimobiledevice.so | |
125 | %{_libdir}/libimobiledevice.la | |
126 | %{_includedir}/libimobiledevice | |
127 | %{_pkgconfigdir}/libimobiledevice-1.0.pc | |
128 | ||
129 | %files static | |
130 | %defattr(644,root,root,755) | |
131 | %{_libdir}/libimobiledevice.a | |
132 | ||
133 | %files -n python-imobiledevice | |
134 | %defattr(644,root,root,755) | |
135 | %dir %{py_sitedir}/imobiledevice | |
136 | %attr(755,root,root) %{py_sitedir}/imobiledevice/_imobiledevice.so | |
137 | %{py_sitedir}/imobiledevice/*.py[co] |