2010-04-22 13:02:35 +02:00
|
|
|
#
|
2011-05-20 14:48:10 +02:00
|
|
|
# spec file for package libimobiledevice
|
2010-04-22 13:02:35 +02:00
|
|
|
#
|
2015-03-01 14:50:37 +01:00
|
|
|
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
2010-04-22 13:02:35 +02:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2015-03-01 14:50:37 +01:00
|
|
|
%define soname 6
|
2014-07-17 06:57:54 +02:00
|
|
|
Name: libimobiledevice
|
2017-01-22 15:18:20 +01:00
|
|
|
Version: 1.2.0+git20170122.45fda81
|
2012-04-18 16:28:28 +02:00
|
|
|
Release: 0
|
2014-10-17 04:49:38 +02:00
|
|
|
Summary: Native protocols library for iOS devices
|
2014-07-17 06:57:54 +02:00
|
|
|
License: LGPL-2.1+
|
2017-02-02 06:04:13 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2014-07-17 06:57:54 +02:00
|
|
|
Url: http://www.libimobiledevice.org
|
2017-01-22 15:18:20 +01:00
|
|
|
#Source: http://www.libimobiledevice.org/downloads/%{name}-%{version}.tar.bz2
|
|
|
|
Source: %{name}-%{version}.tar.xz
|
2014-07-17 06:57:54 +02:00
|
|
|
Source1: baselibs.conf
|
|
|
|
BuildRequires: fdupes
|
2012-04-18 16:28:28 +02:00
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: libopenssl-devel
|
2014-07-17 06:57:54 +02:00
|
|
|
BuildRequires: libplist++-devel >= 1.11
|
|
|
|
BuildRequires: libplist-devel >= 1.11
|
2012-04-18 16:28:28 +02:00
|
|
|
BuildRequires: libtool
|
2014-07-17 06:57:54 +02:00
|
|
|
BuildRequires: libusbmuxd-devel >= 1.0.9
|
|
|
|
BuildRequires: pkg-config
|
2012-04-18 16:28:28 +02:00
|
|
|
BuildRequires: python-cython
|
|
|
|
BuildRequires: python-devel
|
|
|
|
BuildRequires: python-plist
|
|
|
|
BuildRequires: readline-devel
|
2010-04-22 13:02:35 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
2014-07-17 06:57:54 +02:00
|
|
|
libimobiledevice is a software library that talks the protocols to support
|
2017-02-02 06:04:13 +01:00
|
|
|
iOS devices. It does not depend on any existing libraries from Apple.
|
2010-04-22 13:02:35 +02:00
|
|
|
|
2015-03-01 14:50:37 +01:00
|
|
|
%package -n %{name}%{soname}
|
2014-10-17 04:49:38 +02:00
|
|
|
Summary: Native protocols library for iOS devices
|
2012-04-18 16:28:28 +02:00
|
|
|
License: LGPL-2.1+
|
2010-04-22 13:02:35 +02:00
|
|
|
Group: System/Libraries
|
2014-10-17 12:20:36 +02:00
|
|
|
Requires: libusbmuxd4 >= 1.0.9
|
2010-04-22 13:02:35 +02:00
|
|
|
Provides: %{name} = %{version}
|
|
|
|
Obsoletes: %{name} < %{version}
|
2014-10-17 04:49:38 +02:00
|
|
|
Provides: libiphone0 = %{version}
|
|
|
|
Obsoletes: libiphone0 < 0.9.6
|
2010-04-22 13:02:35 +02:00
|
|
|
|
2015-03-01 14:50:37 +01:00
|
|
|
%description -n %{name}%{soname}
|
2014-07-17 06:57:54 +02:00
|
|
|
libimobiledevice is a software library that talks the protocols to support
|
2017-02-02 06:04:13 +01:00
|
|
|
iOS devices. It does not depend on any existing libraries from Apple.
|
2010-04-22 13:02:35 +02:00
|
|
|
|
|
|
|
%package devel
|
2015-03-01 14:50:37 +01:00
|
|
|
Summary: Development files for %{name}
|
2012-04-18 16:28:28 +02:00
|
|
|
License: LGPL-2.1+
|
2010-04-22 13:02:35 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
2015-03-01 14:50:37 +01:00
|
|
|
Requires: %{name}%{soname} = %{version}
|
2014-10-17 04:49:38 +02:00
|
|
|
Requires: libplist-devel
|
2010-04-22 13:02:35 +02:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
The %{name}-devel package contains libraries and header files for
|
2015-03-01 14:50:37 +01:00
|
|
|
developing applications that use %{name}.
|
2010-04-22 13:02:35 +02:00
|
|
|
|
2014-07-17 06:57:54 +02:00
|
|
|
%package -n imobiledevice-tools
|
2015-03-01 14:50:37 +01:00
|
|
|
Summary: Tools using %{name} for iOS devices
|
2013-01-21 17:38:47 +01:00
|
|
|
License: GPL-2.0+ and LGPL-2.1+
|
2010-04-22 13:02:35 +02:00
|
|
|
Group: Productivity/Multimedia/Other
|
2015-03-01 14:50:37 +01:00
|
|
|
Requires: %{name}%{soname} = %{version}
|
2014-07-17 06:57:54 +02:00
|
|
|
Provides: %{name}-tools = %{version}
|
|
|
|
Obsoletes: %{name}-tools < %{version}
|
2010-04-22 13:02:35 +02:00
|
|
|
|
2014-07-17 06:57:54 +02:00
|
|
|
%description -n imobiledevice-tools
|
|
|
|
libimobiledevice is a software library that talks the protocols to support
|
2017-02-02 06:04:13 +01:00
|
|
|
iOS devices. It does not depend on any existing libraries from Apple.
|
2010-04-22 13:02:35 +02:00
|
|
|
|
|
|
|
%package -n python-imobiledevice
|
2015-03-01 14:50:37 +01:00
|
|
|
Summary: Python bindings for %{name}
|
2012-04-18 16:28:28 +02:00
|
|
|
License: LGPL-2.1+
|
2010-04-22 13:02:35 +02:00
|
|
|
Group: Development/Languages/Python
|
2015-03-01 14:50:37 +01:00
|
|
|
Requires: %{name}%{soname} = %{version}
|
2014-07-17 06:57:54 +02:00
|
|
|
Requires: python-plist >= 1.11
|
2010-04-22 13:02:35 +02:00
|
|
|
|
|
|
|
%description -n python-imobiledevice
|
2015-03-01 14:50:37 +01:00
|
|
|
Contains Python bindings for developing applications that use %{name}.
|
2010-04-22 13:02:35 +02:00
|
|
|
|
|
|
|
%prep
|
2014-07-17 06:57:54 +02:00
|
|
|
%setup -q
|
2011-05-30 16:06:47 +02:00
|
|
|
autoreconf -fi
|
2015-03-01 14:50:37 +01:00
|
|
|
sed -i -e '/Requires:/d' src/%{name}-1.0.pc.in
|
|
|
|
sed -i -e 's/-L${libdir}//' src/%{name}-1.0.pc.in
|
2014-07-17 06:57:54 +02:00
|
|
|
|
|
|
|
%build
|
2011-01-07 09:36:34 +01:00
|
|
|
%configure --disable-silent-rules \
|
2011-05-20 14:48:10 +02:00
|
|
|
--disable-static --disable-dev-tools
|
2012-04-18 16:28:28 +02:00
|
|
|
make %{?_smp_mflags}
|
2010-04-22 13:02:35 +02:00
|
|
|
|
|
|
|
%install
|
2014-07-17 06:57:54 +02:00
|
|
|
make DESTDIR=%{buildroot} install %{?_smp_mflags}
|
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
|
|
|
rm -rf %{buildroot}/%{_libdir}/%{name}.*a*
|
2010-04-22 13:02:35 +02:00
|
|
|
|
2015-03-01 14:50:37 +01:00
|
|
|
%post -n %{name}%{soname} -p /sbin/ldconfig
|
2010-04-22 13:02:35 +02:00
|
|
|
|
2015-03-01 14:50:37 +01:00
|
|
|
%postun -n %{name}%{soname} -p /sbin/ldconfig
|
2010-04-22 13:02:35 +02:00
|
|
|
|
2015-03-01 14:50:37 +01:00
|
|
|
%files -n %{name}%{soname}
|
2010-04-22 13:02:35 +02:00
|
|
|
%defattr(-,root,root)
|
2011-05-20 14:48:10 +02:00
|
|
|
%doc COPYING.LESSER
|
2015-03-01 14:50:37 +01:00
|
|
|
%{_libdir}/%{name}.so.%{soname}
|
|
|
|
%{_libdir}/%{name}.so.%{soname}.0.0
|
2010-04-22 13:02:35 +02:00
|
|
|
|
|
|
|
%files devel
|
2014-07-17 06:57:54 +02:00
|
|
|
%defattr(-,root,root)
|
2013-07-22 13:00:56 +02:00
|
|
|
%{_includedir}/%{name}/
|
2010-04-22 13:02:35 +02:00
|
|
|
%{_libdir}/%{name}.so
|
|
|
|
%{_libdir}/pkgconfig/%{name}-1.0.pc
|
|
|
|
|
2014-07-17 06:57:54 +02:00
|
|
|
%files -n imobiledevice-tools
|
|
|
|
%defattr(-,root,root)
|
2017-01-22 15:18:20 +01:00
|
|
|
%doc AUTHORS COPYING COPYING.LESSER NEWS README
|
2010-04-22 13:02:35 +02:00
|
|
|
%{_bindir}/idevice_id
|
2014-07-17 06:57:54 +02:00
|
|
|
%{_bindir}/idevicecrashreport
|
2010-06-22 10:15:38 +02:00
|
|
|
%{_bindir}/idevicepair
|
2010-04-22 13:02:35 +02:00
|
|
|
%{_bindir}/ideviceinfo
|
|
|
|
%{_bindir}/idevicesyslog
|
|
|
|
%{_bindir}/idevicebackup
|
2011-05-20 14:48:10 +02:00
|
|
|
%{_bindir}/idevicebackup2
|
2014-10-17 04:49:38 +02:00
|
|
|
%{_bindir}/idevicedebug
|
2013-07-11 13:29:44 +02:00
|
|
|
%{_bindir}/idevicedebugserverproxy
|
|
|
|
%{_bindir}/idevicediagnostics
|
2010-04-22 13:02:35 +02:00
|
|
|
%{_bindir}/ideviceimagemounter
|
2014-07-17 06:57:54 +02:00
|
|
|
%{_bindir}/idevicename
|
2010-04-22 13:02:35 +02:00
|
|
|
%{_bindir}/idevicescreenshot
|
2011-05-20 14:48:10 +02:00
|
|
|
%{_bindir}/ideviceenterrecovery
|
|
|
|
%{_bindir}/idevicedate
|
2013-07-11 13:29:44 +02:00
|
|
|
%{_bindir}/ideviceprovision
|
2015-03-01 14:50:37 +01:00
|
|
|
%{_bindir}/idevicenotificationproxy
|
2013-07-11 13:29:44 +02:00
|
|
|
%doc %{_mandir}/man1/idevice_id.1%{?ext_man}
|
2014-07-17 06:57:54 +02:00
|
|
|
%doc %{_mandir}/man1/idevicecrashreport.1%{?ext_man}
|
2013-07-11 13:29:44 +02:00
|
|
|
%doc %{_mandir}/man1/idevicepair.1%{?ext_man}
|
|
|
|
%doc %{_mandir}/man1/ideviceinfo.1%{?ext_man}
|
|
|
|
%doc %{_mandir}/man1/idevicesyslog.1%{?ext_man}
|
|
|
|
%doc %{_mandir}/man1/idevicebackup.1%{?ext_man}
|
|
|
|
%doc %{_mandir}/man1/idevicebackup2.1%{?ext_man}
|
2014-10-17 04:49:38 +02:00
|
|
|
%doc %{_mandir}/man1/idevicedebug.1%{?ext_man}
|
2013-07-11 13:29:44 +02:00
|
|
|
%doc %{_mandir}/man1/idevicedebugserverproxy.1%{?ext_man}
|
|
|
|
%doc %{_mandir}/man1/idevicediagnostics.1%{?ext_man}
|
|
|
|
%doc %{_mandir}/man1/ideviceimagemounter.1%{?ext_man}
|
2014-07-17 06:57:54 +02:00
|
|
|
%doc %{_mandir}/man1/idevicename.1%{?ext_man}
|
2013-07-11 13:29:44 +02:00
|
|
|
%doc %{_mandir}/man1/idevicescreenshot.1%{?ext_man}
|
|
|
|
%doc %{_mandir}/man1/ideviceenterrecovery.1%{?ext_man}
|
|
|
|
%doc %{_mandir}/man1/idevicedate.1%{?ext_man}
|
|
|
|
%doc %{_mandir}/man1/ideviceprovision.1%{?ext_man}
|
2015-03-01 14:50:37 +01:00
|
|
|
%doc %{_mandir}/man1/idevicenotificationproxy.1%{?ext_man}
|
2010-04-22 13:02:35 +02:00
|
|
|
|
|
|
|
%files -n python-imobiledevice
|
2014-07-17 06:57:54 +02:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%{python_sitearch}/imobiledevice.so
|
2010-04-22 13:02:35 +02:00
|
|
|
|
|
|
|
%changelog
|