]> git.pld-linux.org Git - packages/libimobiledevice.git/blame - libimobiledevice.spec
- updated to 1.3.0 (new library name; uses libplist 2.2.0 + libusbmuxd 2.0.2)
[packages/libimobiledevice.git] / libimobiledevice.spec
CommitLineData
e229af96
ER
1#
2# Conditional build:
d8f5f589
JB
3%bcond_without static_libs # static library
4%bcond_without cython # Cython based Python bindings
5%bcond_without python3 # Python 3 module
6%bcond_without openssl # OpenSSL for SSL support
7%bcond_with gnutls # GnuTLS for SSL support
42e766e1 8
d8f5f589
JB
9%if %{without cython}
10%undefine with_python3
11%endif
42e766e1
ER
12%if %{with gnutls}
13%undefine with_openssl
14%endif
6b6a2331
MB
15Summary: Library for connecting to mobile devices
16Summary(pl.UTF-8): Biblioteka do łączenia się z urządzeniami mobilnymi
17Name: libimobiledevice
d8f5f589
JB
18Version: 1.3.0
19Release: 1
6b6a2331
MB
20License: LGPL v2+
21Group: Libraries
d8f5f589
JB
22#Source0Download: https://www.libimobiledevice.org/
23Source0: https://github.com/libimobiledevice/libimobiledevice/releases/download/%{version}/%{name}-%{version}.tar.bz2
24# Source0-md5: c50a3a32acf33dc8c9ec88137ad12ec4
900a03c2 25Patch0: %{name}-cython.patch
d8f5f589 26URL: https://libimobiledevice.org/
bb67ab5f 27BuildRequires: autoconf >= 2.64
6b6a2331 28BuildRequires: automake
42e766e1 29%{?with_gnutls:BuildRequires: gnutls-devel >= 2.2.0}
6b6a2331 30BuildRequires: libgcrypt-devel
d8f5f589
JB
31BuildRequires: libplist-devel >= 2.2.0
32BuildRequires: libplist-c++-devel >= 2.2.0
7e9f6afa 33BuildRequires: libstdc++-devel
42e766e1 34%{?with_gnutls:BuildRequires: libtasn1-devel >= 1.1}
6b6a2331 35BuildRequires: libtool
d8f5f589 36BuildRequires: libusbmuxd-devel >= 2.0.2
42e766e1 37%{?with_openssl:BuildRequires: openssl-devel >= 0.9.8}
6b6a2331 38BuildRequires: pkgconfig
bb67ab5f
JB
39%if %{with cython}
40BuildRequires: python-Cython >= 0.17.0
41BuildRequires: python-devel >= 1:2.3
42BuildRequires: python-modules >= 1:2.3
d8f5f589 43BuildRequires: python-plist-devel >= 2.2.0
bb67ab5f 44%endif
d8f5f589
JB
45%if %{with python3}
46BuildRequires: python3-Cython >= 0.17.0
47BuildRequires: python3-devel >= 1:3.2
48BuildRequires: python3-modules >= 1:3.2
49%endif
50BuildRequires: rpm-pythonprov
51Requires: libplist >= 2.2.0
52Requires: libplist-c++ >= 2.2.0
53Requires: libusbmuxd >= 2.0.2
6b6a2331
MB
54BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
55
56%description
57libimobiledevice is a library for connecting to mobile devices.
58
59%description -l pl.UTF-8
60libimobiledevice jest biblioteką do łączenia się z urządzeniami
61mobilnymi.
62
63%package devel
64Summary: Header files for libimobiledevice library
65Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libimobiledevice
66Group: Development/Libraries
67Requires: %{name} = %{version}-%{release}
42e766e1 68%{?with_gnutls:Requires: gnutls-devel >= 2.2.0}
d8f5f589
JB
69Requires: libplist-devel >= 2.2.0
70Requires: libplist-c++-devel >= 2.2.0
42e766e1 71%{?with_gnutls:Requires: libtasn1-devel >= 1.1}
d8f5f589 72Requires: libusbmuxd-devel >= 2.0.2
42e766e1 73%{?with_openssl:Requires: openssl-devel >= 0.9.8}
6b6a2331
MB
74
75%description devel
76Header files for libimobiledevice library.
77
78%description devel -l pl.UTF-8
79Pliki nagłówkowe biblioteki libimobiledevice.
80
81%package static
82Summary: Static libimobiledevice library
83Summary(pl.UTF-8): Statyczna biblioteka libimobiledevice
84Group: Development/Libraries
85Requires: %{name}-devel = %{version}-%{release}
86
87%description static
88Static libimobiledevice library.
89
90%description static -l pl.UTF-8
91Statyczna biblioteka libimobiledevice.
92
ef114f6e
JB
93%package apidocs
94Summary: API documentation for libimobiledevice library
95Summary(pl.UTF-8): Dokumentacja API biblioteki libimobiledevice
96Group: Documentation
d8f5f589 97%if "%{_rpmversion}" >= "4.6"
ef114f6e
JB
98BuildArch: noarch
99%endif
100
101%description apidocs
102API documentation for libimobiledevice library.
103
104%description apidocs -l pl.UTF-8
105Dokumentacja API biblioteki libimobiledevice.
106
6b6a2331 107%package -n python-imobiledevice
d8f5f589
JB
108Summary: libimobiledevice Python 2 bindings
109Summary(pl.UTF-8): Wiązania libimobiledevice dla Pythona 2
6b6a2331
MB
110Group: Development/Languages/Python
111Requires: %{name} = %{version}-%{release}
d8f5f589 112Requires: python-plist >= 2.2.0
6b6a2331
MB
113
114%description -n python-imobiledevice
d8f5f589 115libimobiledevice Python 2 bindings.
6b6a2331
MB
116
117%description -n python-imobiledevice -l pl.UTF-8
d8f5f589
JB
118Wiązania libimobiledevice dla Pythona 2.
119
120%package -n python3-imobiledevice
121Summary: libimobiledevice Python 3 bindings
122Summary(pl.UTF-8): Wiązania libimobiledevice dla Pythona 3
123Group: Development/Languages/Python
124Requires: %{name} = %{version}-%{release}
125Requires: python3-plist >= 2.2.0
126
127%description -n python3-imobiledevice
128libimobiledevice Python 3 bindings.
129
130%description -n python3-imobiledevice -l pl.UTF-8
131Wiązania libimobiledevice dla Pythona 3.
6b6a2331
MB
132
133%prep
134%setup -q
900a03c2 135%patch0 -p1
6b6a2331
MB
136
137%build
138%{__libtoolize}
139%{__aclocal} -I m4
140%{__autoconf}
141%{__autoheader}
142%{__automake}
d8f5f589
JB
143install -d build
144cd build
145../%configure \
42e766e1 146 %{!?with_openssl:--disable-openssl} \
d8f5f589
JB
147 --disable-silent-rules \
148 %{!?with_static_libs:--disable-static} \
149 %{!?with_cython:--without-cython}
150
6b6a2331 151%{__make}
d8f5f589
JB
152cd ..
153
154%if %{with python3}
155topdir=$(pwd)
156install -d build-py3
157cd build-py3
158../%configure \
159 PYTHON=%{__python3} \
160 --disable-silent-rules \
161 %{!?with_static_libs:--disable-static}
162
163%{__make} -C cython \
164 top_builddir="${topdir}/build"
165%endif
6b6a2331
MB
166
167%install
168rm -rf $RPM_BUILD_ROOT
169
d8f5f589 170%{__make} -C build install \
6b6a2331
MB
171 DESTDIR=$RPM_BUILD_ROOT
172
d8f5f589
JB
173# obsoleted by pkg-config
174%{__rm} $RPM_BUILD_ROOT%{_libdir}/libimobiledevice-1.0.la
6b6a2331 175
b73c3a08 176%if %{with cython}
ef114f6e
JB
177%{__rm} $RPM_BUILD_ROOT%{py_sitedir}/*.la \
178 %{?with_static_libs:$RPM_BUILD_ROOT%{py_sitedir}/*.a}
d8f5f589
JB
179%endif
180
181%if %{with python3}
182%{__make} -C build-py3/cython install \
183 DESTDIR=$RPM_BUILD_ROOT \
184 top_builddir="$(pwd)/build"
185
186%{__rm} $RPM_BUILD_ROOT%{py3_sitedir}/*.la \
187 %{?with_static_libs:$RPM_BUILD_ROOT%{py3_sitedir}/*.a}
b73c3a08 188%endif
6b6a2331
MB
189
190%clean
191rm -rf $RPM_BUILD_ROOT
192
193%post -p /sbin/ldconfig
194%postun -p /sbin/ldconfig
195
196%files
197%defattr(644,root,root,755)
d8f5f589 198%doc AUTHORS NEWS README.md
b0e585fc 199%attr(755,root,root) %{_bindir}/idevice_id
6b6a2331 200%attr(755,root,root) %{_bindir}/idevicebackup
481c45a6 201%attr(755,root,root) %{_bindir}/idevicebackup2
b73c3a08 202%attr(755,root,root) %{_bindir}/idevicecrashreport
481c45a6 203%attr(755,root,root) %{_bindir}/idevicedate
568ba3da 204%attr(755,root,root) %{_bindir}/idevicedebug
b0e585fc
JB
205%attr(755,root,root) %{_bindir}/idevicedebugserverproxy
206%attr(755,root,root) %{_bindir}/idevicediagnostics
d4da4e3f 207%attr(755,root,root) %{_bindir}/ideviceenterrecovery
5f4040a2 208%attr(755,root,root) %{_bindir}/ideviceimagemounter
6b6a2331 209%attr(755,root,root) %{_bindir}/ideviceinfo
b73c3a08 210%attr(755,root,root) %{_bindir}/idevicename
568ba3da 211%attr(755,root,root) %{_bindir}/idevicenotificationproxy
e229af96 212%attr(755,root,root) %{_bindir}/idevicepair
b0e585fc 213%attr(755,root,root) %{_bindir}/ideviceprovision
5f4040a2 214%attr(755,root,root) %{_bindir}/idevicescreenshot
d8f5f589 215%attr(755,root,root) %{_bindir}/idevicesetlocation
6b6a2331 216%attr(755,root,root) %{_bindir}/idevicesyslog
d8f5f589
JB
217%attr(755,root,root) %{_libdir}/libimobiledevice-1.0.so.*.*.*
218%attr(755,root,root) %ghost %{_libdir}/libimobiledevice-1.0.so.6
b0e585fc 219%{_mandir}/man1/idevice_id.1*
5f4040a2 220%{_mandir}/man1/idevicebackup.1*
481c45a6 221%{_mandir}/man1/idevicebackup2.1*
b73c3a08 222%{_mandir}/man1/idevicecrashreport.1*
481c45a6 223%{_mandir}/man1/idevicedate.1*
568ba3da 224%{_mandir}/man1/idevicedebug.1*
b0e585fc
JB
225%{_mandir}/man1/idevicedebugserverproxy.1*
226%{_mandir}/man1/idevicediagnostics.1*
481c45a6 227%{_mandir}/man1/ideviceenterrecovery.1*
5f4040a2
MB
228%{_mandir}/man1/ideviceimagemounter.1*
229%{_mandir}/man1/ideviceinfo.1*
b73c3a08 230%{_mandir}/man1/idevicename.1*
568ba3da 231%{_mandir}/man1/idevicenotificationproxy.1*
481c45a6 232%{_mandir}/man1/idevicepair.1*
b0e585fc 233%{_mandir}/man1/ideviceprovision.1*
5f4040a2 234%{_mandir}/man1/idevicescreenshot.1*
d8f5f589 235%{_mandir}/man1/idevicesetlocation.1*
5f4040a2 236%{_mandir}/man1/idevicesyslog.1*
6b6a2331
MB
237
238%files devel
239%defattr(644,root,root,755)
d8f5f589 240%attr(755,root,root) %{_libdir}/libimobiledevice-1.0.so
6b6a2331
MB
241%{_includedir}/libimobiledevice
242%{_pkgconfigdir}/libimobiledevice-1.0.pc
243
e229af96 244%if %{with static_libs}
6b6a2331
MB
245%files static
246%defattr(644,root,root,755)
d8f5f589 247%{_libdir}/libimobiledevice-1.0.a
e229af96 248%endif
6b6a2331 249
ef114f6e
JB
250%files apidocs
251%defattr(644,root,root,755)
252%doc docs/html/*
253
42e766e1 254%if %{with cython}
6b6a2331
MB
255%files -n python-imobiledevice
256%defattr(644,root,root,755)
42e766e1
ER
257%attr(755,root,root) %{py_sitedir}/imobiledevice.so
258%endif
d8f5f589
JB
259
260%if %{with python3}
261%files -n python3-imobiledevice
262%defattr(644,root,root,755)
263%attr(755,root,root) %{py3_sitedir}/imobiledevice.so
264%endif
This page took 0.099825 seconds and 4 git commands to generate.