]>
Commit | Line | Data |
---|---|---|
b73c3a08 ER |
1 | # TODO |
2 | # - investigate python (cython) build failure (missing files) | |
37b051a8 ER |
3 | # checking for libplist Cython bindings... no |
4 | # configure: WARNING: cannot find libplist Cython bindings. You should install your distribution specific libplist Cython bindings package. | |
e229af96 ER |
5 | # |
6 | # Conditional build: | |
7 | %bcond_without static_libs # don't build static libraries | |
900a03c2 JB |
8 | %bcond_without cython # build with Cython based Python bindings |
9 | %bcond_without openssl # build with openssl for SSL support | |
10 | %bcond_with gnutls # build with GnuTLS for SSL support | |
42e766e1 ER |
11 | |
12 | %if %{with gnutls} | |
13 | %undefine with_openssl | |
14 | %endif | |
e229af96 | 15 | |
6b6a2331 MB |
16 | Summary: Library for connecting to mobile devices |
17 | Summary(pl.UTF-8): Biblioteka do łączenia się z urządzeniami mobilnymi | |
18 | Name: libimobiledevice | |
b73c3a08 ER |
19 | Version: 1.1.6 |
20 | Release: 0.1 | |
6b6a2331 MB |
21 | License: LGPL v2+ |
22 | Group: Libraries | |
900a03c2 | 23 | #Source0Download: http://www.libimobiledevice.org/ |
5f4040a2 | 24 | Source0: http://www.libimobiledevice.org/downloads/%{name}-%{version}.tar.bz2 |
b73c3a08 | 25 | # Source0-md5: 274783651e9b772774cd9fed2fc52e08 |
900a03c2 | 26 | Patch0: %{name}-cython.patch |
5f4040a2 | 27 | URL: http://www.libimobiledevice.org/ |
6b6a2331 MB |
28 | BuildRequires: autoconf >= 2.61 |
29 | BuildRequires: automake | |
42e766e1 | 30 | %{?with_gnutls:BuildRequires: gnutls-devel >= 2.2.0} |
6b6a2331 | 31 | BuildRequires: libgcrypt-devel |
b73c3a08 | 32 | BuildRequires: libplist-devel >= 1.11 |
7e9f6afa | 33 | BuildRequires: libstdc++-devel |
42e766e1 | 34 | %{?with_gnutls:BuildRequires: libtasn1-devel >= 1.1} |
6b6a2331 | 35 | BuildRequires: libtool |
b73c3a08 | 36 | BuildRequires: libusbmuxd-devel >= 1.0.9 |
42e766e1 | 37 | %{?with_openssl:BuildRequires: openssl-devel >= 0.9.8} |
6b6a2331 | 38 | BuildRequires: pkgconfig |
b0e585fc | 39 | %{?with_cython:BuildRequires: python-Cython >= 0.17.0} |
038becac JB |
40 | BuildRequires: python-devel >= 2.3 |
41 | BuildRequires: python-modules >= 2.3 | |
37b051a8 | 42 | %{?with_cython:BuildRequires: python-plist} |
7e9f6afa | 43 | BuildRequires: rpm-pythonprov |
6b6a2331 MB |
44 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
45 | ||
46 | %description | |
47 | libimobiledevice is a library for connecting to mobile devices. | |
48 | ||
49 | %description -l pl.UTF-8 | |
50 | libimobiledevice jest biblioteką do łączenia się z urządzeniami | |
51 | mobilnymi. | |
52 | ||
53 | %package devel | |
54 | Summary: Header files for libimobiledevice library | |
55 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libimobiledevice | |
56 | Group: Development/Libraries | |
57 | Requires: %{name} = %{version}-%{release} | |
42e766e1 ER |
58 | %{?with_gnutls:Requires: gnutls-devel >= 2.2.0} |
59 | Requires: libplist-devel >= 1.8 | |
60 | %{?with_gnutls:Requires: libtasn1-devel >= 1.1} | |
b73c3a08 | 61 | Requires: libusbmuxd-devel >= 1.0.9 |
42e766e1 | 62 | %{?with_openssl:Requires: openssl-devel >= 0.9.8} |
6b6a2331 MB |
63 | |
64 | %description devel | |
65 | Header files for libimobiledevice library. | |
66 | ||
67 | %description devel -l pl.UTF-8 | |
68 | Pliki nagłówkowe biblioteki libimobiledevice. | |
69 | ||
70 | %package static | |
71 | Summary: Static libimobiledevice library | |
72 | Summary(pl.UTF-8): Statyczna biblioteka libimobiledevice | |
73 | Group: Development/Libraries | |
74 | Requires: %{name}-devel = %{version}-%{release} | |
75 | ||
76 | %description static | |
77 | Static libimobiledevice library. | |
78 | ||
79 | %description static -l pl.UTF-8 | |
80 | Statyczna biblioteka libimobiledevice. | |
81 | ||
82 | %package -n python-imobiledevice | |
83 | Summary: libimobiledevice Python bindings | |
84 | Summary(pl.UTF-8): Wiązania libimobiledevice dla Pythona | |
85 | Group: Development/Languages/Python | |
86 | Requires: %{name} = %{version}-%{release} | |
87 | ||
88 | %description -n python-imobiledevice | |
89 | libimobiledevice Python bindings. | |
90 | ||
91 | %description -n python-imobiledevice -l pl.UTF-8 | |
92 | Wiązania libimobiledevice dla Pythona. | |
93 | ||
94 | %prep | |
95 | %setup -q | |
900a03c2 | 96 | %patch0 -p1 |
6b6a2331 MB |
97 | |
98 | %build | |
99 | %{__libtoolize} | |
100 | %{__aclocal} -I m4 | |
101 | %{__autoconf} | |
102 | %{__autoheader} | |
103 | %{__automake} | |
5f4040a2 | 104 | %configure \ |
20b1646b | 105 | %{!?with_static_libs:--disable-static} \ |
42e766e1 ER |
106 | %{!?with_cython:--without-cython} \ |
107 | %{!?with_openssl:--disable-openssl} \ | |
5f4040a2 | 108 | --disable-silent-rules |
6b6a2331 MB |
109 | %{__make} |
110 | ||
111 | %install | |
112 | rm -rf $RPM_BUILD_ROOT | |
113 | ||
114 | %{__make} install \ | |
115 | DESTDIR=$RPM_BUILD_ROOT | |
116 | ||
c4321516 | 117 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la |
6b6a2331 | 118 | |
b73c3a08 ER |
119 | %if %{with cython} |
120 | %{__rm} $RPM_BUILD_ROOT%{py_sitedir}/*.{a,la} | |
6b6a2331 MB |
121 | %py_comp $RPM_BUILD_ROOT%{py_sitedir} |
122 | %py_ocomp $RPM_BUILD_ROOT%{py_sitedir} | |
123 | %py_postclean | |
b73c3a08 | 124 | %endif |
6b6a2331 MB |
125 | |
126 | %clean | |
127 | rm -rf $RPM_BUILD_ROOT | |
128 | ||
129 | %post -p /sbin/ldconfig | |
130 | %postun -p /sbin/ldconfig | |
131 | ||
132 | %files | |
133 | %defattr(644,root,root,755) | |
134 | %doc AUTHORS NEWS README | |
b0e585fc | 135 | %attr(755,root,root) %{_bindir}/idevice_id |
6b6a2331 | 136 | %attr(755,root,root) %{_bindir}/idevicebackup |
481c45a6 | 137 | %attr(755,root,root) %{_bindir}/idevicebackup2 |
b73c3a08 | 138 | %attr(755,root,root) %{_bindir}/idevicecrashreport |
481c45a6 | 139 | %attr(755,root,root) %{_bindir}/idevicedate |
b0e585fc JB |
140 | %attr(755,root,root) %{_bindir}/idevicedebugserverproxy |
141 | %attr(755,root,root) %{_bindir}/idevicediagnostics | |
d4da4e3f | 142 | %attr(755,root,root) %{_bindir}/ideviceenterrecovery |
5f4040a2 | 143 | %attr(755,root,root) %{_bindir}/ideviceimagemounter |
6b6a2331 | 144 | %attr(755,root,root) %{_bindir}/ideviceinfo |
b73c3a08 | 145 | %attr(755,root,root) %{_bindir}/idevicename |
e229af96 | 146 | %attr(755,root,root) %{_bindir}/idevicepair |
b0e585fc | 147 | %attr(755,root,root) %{_bindir}/ideviceprovision |
5f4040a2 | 148 | %attr(755,root,root) %{_bindir}/idevicescreenshot |
6b6a2331 MB |
149 | %attr(755,root,root) %{_bindir}/idevicesyslog |
150 | %attr(755,root,root) %{_libdir}/libimobiledevice.so.*.*.* | |
b0e585fc JB |
151 | %attr(755,root,root) %ghost %{_libdir}/libimobiledevice.so.4 |
152 | %{_mandir}/man1/idevice_id.1* | |
5f4040a2 | 153 | %{_mandir}/man1/idevicebackup.1* |
481c45a6 | 154 | %{_mandir}/man1/idevicebackup2.1* |
b73c3a08 | 155 | %{_mandir}/man1/idevicecrashreport.1* |
481c45a6 | 156 | %{_mandir}/man1/idevicedate.1* |
b0e585fc JB |
157 | %{_mandir}/man1/idevicedebugserverproxy.1* |
158 | %{_mandir}/man1/idevicediagnostics.1* | |
481c45a6 | 159 | %{_mandir}/man1/ideviceenterrecovery.1* |
5f4040a2 MB |
160 | %{_mandir}/man1/ideviceimagemounter.1* |
161 | %{_mandir}/man1/ideviceinfo.1* | |
b73c3a08 | 162 | %{_mandir}/man1/idevicename.1* |
481c45a6 | 163 | %{_mandir}/man1/idevicepair.1* |
b0e585fc | 164 | %{_mandir}/man1/ideviceprovision.1* |
5f4040a2 MB |
165 | %{_mandir}/man1/idevicescreenshot.1* |
166 | %{_mandir}/man1/idevicesyslog.1* | |
6b6a2331 MB |
167 | |
168 | %files devel | |
169 | %defattr(644,root,root,755) | |
170 | %doc docs/html/ | |
171 | %attr(755,root,root) %{_libdir}/libimobiledevice.so | |
6b6a2331 MB |
172 | %{_includedir}/libimobiledevice |
173 | %{_pkgconfigdir}/libimobiledevice-1.0.pc | |
174 | ||
e229af96 | 175 | %if %{with static_libs} |
6b6a2331 MB |
176 | %files static |
177 | %defattr(644,root,root,755) | |
178 | %{_libdir}/libimobiledevice.a | |
e229af96 | 179 | %endif |
6b6a2331 | 180 | |
42e766e1 | 181 | %if %{with cython} |
6b6a2331 MB |
182 | %files -n python-imobiledevice |
183 | %defattr(644,root,root,755) | |
42e766e1 ER |
184 | %attr(755,root,root) %{py_sitedir}/imobiledevice.so |
185 | %endif |