]>
Commit | Line | Data |
---|---|---|
e229af96 ER |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without static_libs # don't build static libraries | |
4 | ||
6b6a2331 MB |
5 | Summary: Library for connecting to mobile devices |
6 | Summary(pl.UTF-8): Biblioteka do łączenia się z urządzeniami mobilnymi | |
7 | Name: libimobiledevice | |
481c45a6 ER |
8 | Version: 1.1.1 |
9 | Release: 1 | |
6b6a2331 MB |
10 | License: LGPL v2+ |
11 | Group: Libraries | |
5f4040a2 | 12 | Source0: http://www.libimobiledevice.org/downloads/%{name}-%{version}.tar.bz2 |
481c45a6 | 13 | # Source0-md5: cdc13037e822d9ac2e109536701d153a |
ac172af3 | 14 | Patch0: swig2.patch |
5f4040a2 | 15 | URL: http://www.libimobiledevice.org/ |
6b6a2331 MB |
16 | BuildRequires: autoconf >= 2.61 |
17 | BuildRequires: automake | |
18 | BuildRequires: glib2-devel >= 1:2.14.1 | |
19 | BuildRequires: gnutls-devel >= 1.6.3 | |
20 | BuildRequires: libgcrypt-devel | |
21 | BuildRequires: libplist-devel >= 0.15 | |
7e9f6afa | 22 | BuildRequires: libstdc++-devel |
6b6a2331 MB |
23 | BuildRequires: libtasn1-devel >= 1.1 |
24 | BuildRequires: libtool | |
25 | BuildRequires: pkgconfig | |
7e9f6afa | 26 | BuildRequires: python-devel |
27 | BuildRequires: python-modules | |
28 | BuildRequires: rpm-pythonprov | |
3291c863 | 29 | BuildRequires: swig-python >= 2.0.0 |
6b6a2331 MB |
30 | BuildRequires: usbmuxd-devel >= 0.1.4 |
31 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
32 | ||
33 | %description | |
34 | libimobiledevice is a library for connecting to mobile devices. | |
35 | ||
36 | %description -l pl.UTF-8 | |
37 | libimobiledevice jest biblioteką do łączenia się z urządzeniami | |
38 | mobilnymi. | |
39 | ||
40 | %package devel | |
41 | Summary: Header files for libimobiledevice library | |
42 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libimobiledevice | |
43 | Group: Development/Libraries | |
44 | Requires: %{name} = %{version}-%{release} | |
45 | Requires: glib2-devel >= 1:2.14.1 | |
46 | Requires: gnutls-devel >= 1.6.3 | |
47 | Requires: libplist-devel >= 0.15 | |
48 | Requires: libtasn1-devel >= 1.1 | |
49 | Requires: usbmuxd-devel >= 0.1.4 | |
50 | ||
51 | %description devel | |
52 | Header files for libimobiledevice library. | |
53 | ||
54 | %description devel -l pl.UTF-8 | |
55 | Pliki nagłówkowe biblioteki libimobiledevice. | |
56 | ||
57 | %package static | |
58 | Summary: Static libimobiledevice library | |
59 | Summary(pl.UTF-8): Statyczna biblioteka libimobiledevice | |
60 | Group: Development/Libraries | |
61 | Requires: %{name}-devel = %{version}-%{release} | |
62 | ||
63 | %description static | |
64 | Static libimobiledevice library. | |
65 | ||
66 | %description static -l pl.UTF-8 | |
67 | Statyczna biblioteka libimobiledevice. | |
68 | ||
69 | %package -n python-imobiledevice | |
70 | Summary: libimobiledevice Python bindings | |
71 | Summary(pl.UTF-8): Wiązania libimobiledevice dla Pythona | |
72 | Group: Development/Languages/Python | |
73 | Requires: %{name} = %{version}-%{release} | |
74 | ||
75 | %description -n python-imobiledevice | |
76 | libimobiledevice Python bindings. | |
77 | ||
78 | %description -n python-imobiledevice -l pl.UTF-8 | |
79 | Wiązania libimobiledevice dla Pythona. | |
80 | ||
81 | %prep | |
82 | %setup -q | |
ac172af3 | 83 | %patch0 -p1 |
6b6a2331 MB |
84 | |
85 | %build | |
86 | %{__libtoolize} | |
87 | %{__aclocal} -I m4 | |
88 | %{__autoconf} | |
89 | %{__autoheader} | |
90 | %{__automake} | |
5f4040a2 | 91 | %configure \ |
20b1646b | 92 | %{!?with_static_libs:--disable-static} \ |
5f4040a2 | 93 | --disable-silent-rules |
6b6a2331 MB |
94 | %{__make} |
95 | ||
96 | %install | |
97 | rm -rf $RPM_BUILD_ROOT | |
98 | ||
99 | %{__make} install \ | |
100 | DESTDIR=$RPM_BUILD_ROOT | |
101 | ||
de1a937b | 102 | %{__rm} $RPM_BUILD_ROOT%{py_sitedir}/imobiledevice/*.{a,la} |
c4321516 | 103 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la |
6b6a2331 MB |
104 | |
105 | %py_comp $RPM_BUILD_ROOT%{py_sitedir} | |
106 | %py_ocomp $RPM_BUILD_ROOT%{py_sitedir} | |
107 | %py_postclean | |
108 | ||
109 | %clean | |
110 | rm -rf $RPM_BUILD_ROOT | |
111 | ||
112 | %post -p /sbin/ldconfig | |
113 | %postun -p /sbin/ldconfig | |
114 | ||
115 | %files | |
116 | %defattr(644,root,root,755) | |
117 | %doc AUTHORS NEWS README | |
6b6a2331 | 118 | %attr(755,root,root) %{_bindir}/idevicebackup |
481c45a6 ER |
119 | %attr(755,root,root) %{_bindir}/idevicebackup2 |
120 | %attr(755,root,root) %{_bindir}/idevicedate | |
d4da4e3f | 121 | %attr(755,root,root) %{_bindir}/ideviceenterrecovery |
e229af96 | 122 | %attr(755,root,root) %{_bindir}/idevice_id |
5f4040a2 | 123 | %attr(755,root,root) %{_bindir}/ideviceimagemounter |
6b6a2331 | 124 | %attr(755,root,root) %{_bindir}/ideviceinfo |
e229af96 | 125 | %attr(755,root,root) %{_bindir}/idevicepair |
5f4040a2 | 126 | %attr(755,root,root) %{_bindir}/idevicescreenshot |
6b6a2331 MB |
127 | %attr(755,root,root) %{_bindir}/idevicesyslog |
128 | %attr(755,root,root) %{_libdir}/libimobiledevice.so.*.*.* | |
de1a937b | 129 | %attr(755,root,root) %ghost %{_libdir}/libimobiledevice.so.2 |
5f4040a2 | 130 | %{_mandir}/man1/idevicebackup.1* |
481c45a6 ER |
131 | %{_mandir}/man1/idevicebackup2.1* |
132 | %{_mandir}/man1/idevicedate.1* | |
133 | %{_mandir}/man1/ideviceenterrecovery.1* | |
d4da4e3f | 134 | %{_mandir}/man1/idevice_id.1* |
5f4040a2 MB |
135 | %{_mandir}/man1/ideviceimagemounter.1* |
136 | %{_mandir}/man1/ideviceinfo.1* | |
481c45a6 | 137 | %{_mandir}/man1/idevicepair.1* |
5f4040a2 MB |
138 | %{_mandir}/man1/idevicescreenshot.1* |
139 | %{_mandir}/man1/idevicesyslog.1* | |
6b6a2331 MB |
140 | |
141 | %files devel | |
142 | %defattr(644,root,root,755) | |
143 | %doc docs/html/ | |
144 | %attr(755,root,root) %{_libdir}/libimobiledevice.so | |
6b6a2331 MB |
145 | %{_includedir}/libimobiledevice |
146 | %{_pkgconfigdir}/libimobiledevice-1.0.pc | |
147 | ||
e229af96 | 148 | %if %{with static_libs} |
6b6a2331 MB |
149 | %files static |
150 | %defattr(644,root,root,755) | |
151 | %{_libdir}/libimobiledevice.a | |
e229af96 | 152 | %endif |
6b6a2331 MB |
153 | |
154 | %files -n python-imobiledevice | |
155 | %defattr(644,root,root,755) | |
156 | %dir %{py_sitedir}/imobiledevice | |
157 | %attr(755,root,root) %{py_sitedir}/imobiledevice/_imobiledevice.so | |
158 | %{py_sitedir}/imobiledevice/*.py[co] |