From 298351c41a0ba46cbeb889bf4d99e11e6dfb9e68b039ea1f81d4d3eae44b3e61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Thu, 12 Mar 2020 11:01:55 +0000 Subject: [PATCH] - Switch python bindings to base on python3 OBS-URL: https://build.opensuse.org/package/show/hardware/libimobiledevice?expand=0&rev=14 --- ...iledevice-1.2.0+git20180427.26373b3.tar.xz | 3 - ...iledevice-1.2.0+git20200220.3d8d13f.tar.xz | 3 + libimobiledevice.changes | 1 + libimobiledevice.spec | 111 ++++++++---------- 4 files changed, 52 insertions(+), 66 deletions(-) delete mode 100644 libimobiledevice-1.2.0+git20180427.26373b3.tar.xz create mode 100644 libimobiledevice-1.2.0+git20200220.3d8d13f.tar.xz diff --git a/libimobiledevice-1.2.0+git20180427.26373b3.tar.xz b/libimobiledevice-1.2.0+git20180427.26373b3.tar.xz deleted file mode 100644 index 8e4ef97..0000000 --- a/libimobiledevice-1.2.0+git20180427.26373b3.tar.xz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:098c8ecb57f1fc65df71adaa950b4339fb9c73d13c1717c4194ff6bca0310099 -size 179424 diff --git a/libimobiledevice-1.2.0+git20200220.3d8d13f.tar.xz b/libimobiledevice-1.2.0+git20200220.3d8d13f.tar.xz new file mode 100644 index 0000000..369bcac --- /dev/null +++ b/libimobiledevice-1.2.0+git20200220.3d8d13f.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:464bb32ad83af9041c3c4c2aba18fdf764e886c8f972f897441a9bb77c6d8db9 +size 185220 diff --git a/libimobiledevice.changes b/libimobiledevice.changes index 46b96b8..d29f5ce 100644 --- a/libimobiledevice.changes +++ b/libimobiledevice.changes @@ -24,6 +24,7 @@ Tue Jun 12 01:28:19 UTC 2018 - i@marguerite.su * userpref: [GnuTLS] Fix 3.6.0 SHA1 compatibility * userpref: [GnuTLS] Use valid serial for >= 3.6.0 * build: Fix autogen.sh with srcdir != builddir +- Switch python bindings to base on python3 ------------------------------------------------------------------- Thu Feb 2 10:12:12 UTC 2017 - i@marguerite.su diff --git a/libimobiledevice.spec b/libimobiledevice.spec index eba8e9c..46a7e43 100644 --- a/libimobiledevice.spec +++ b/libimobiledevice.spec @@ -1,7 +1,7 @@ # # spec file for package libimobiledevice # -# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,34 +12,28 @@ # 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/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # %define soname 6 Name: libimobiledevice -Version: 1.2.0+git20180427.26373b3 +Version: 1.2.0+git20200220.3d8d13f Release: 0 Summary: Native protocols library for iOS devices -License: LGPL-2.1+ -Group: Development/Libraries/C and C++ -Url: http://www.libimobiledevice.org -#Source: http://www.libimobiledevice.org/downloads/%{name}-%{version}.tar.bz2 -Source: %{name}-%{version}.tar.xz +License: LGPL-2.1-or-later +URL: https://www.libimobiledevice.org +Source: %{name}-%{version}.tar.xz Source1: baselibs.conf BuildRequires: fdupes BuildRequires: gcc-c++ -BuildRequires: libopenssl-devel -BuildRequires: libplist++-devel >= 1.11 -BuildRequires: libplist-devel >= 1.11 BuildRequires: libtool -BuildRequires: libusbmuxd-devel >= 1.0.9 -BuildRequires: pkg-config -BuildRequires: python-cython -BuildRequires: python-devel -BuildRequires: python-plist +BuildRequires: pkgconfig +BuildRequires: python3-plist BuildRequires: readline-devel -BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: pkgconfig(libplist) >= 1.11 +BuildRequires: pkgconfig(libssl) +BuildRequires: pkgconfig(libusbmuxd) >= 1.1.0 %description libimobiledevice is a software library that talks the protocols to support @@ -47,8 +41,7 @@ iOS devices. It does not depend on any existing libraries from Apple. %package -n %{name}%{soname} Summary: Native protocols library for iOS devices -License: LGPL-2.1+ -Group: System/Libraries +License: LGPL-2.1-or-later Requires: libusbmuxd4 >= 1.0.9 Provides: %{name} = %{version} Obsoletes: %{name} < %{version} @@ -61,10 +54,9 @@ iOS devices. It does not depend on any existing libraries from Apple. %package devel Summary: Development files for %{name} -License: LGPL-2.1+ -Group: Development/Libraries/C and C++ +License: LGPL-2.1-or-later Requires: %{name}%{soname} = %{version} -Requires: libplist-devel +Requires: pkgconfig(libplist) %description devel The %{name}-devel package contains libraries and header files for @@ -72,8 +64,7 @@ developing applications that use %{name}. %package -n imobiledevice-tools Summary: Tools using %{name} for iOS devices -License: GPL-2.0+ and LGPL-2.1+ -Group: Productivity/Multimedia/Other +License: GPL-2.0-or-later AND LGPL-2.1-or-later Requires: %{name}%{soname} = %{version} Provides: %{name}-tools = %{version} Obsoletes: %{name}-tools < %{version} @@ -82,51 +73,46 @@ Obsoletes: %{name}-tools < %{version} libimobiledevice is a software library that talks the protocols to support iOS devices. It does not depend on any existing libraries from Apple. -%package -n python-imobiledevice +%package -n python3-imobiledevice Summary: Python bindings for %{name} -License: LGPL-2.1+ -Group: Development/Languages/Python +License: LGPL-2.1-or-later Requires: %{name}%{soname} = %{version} -Requires: python-plist >= 1.11 +Requires: python3-plist >= 1.11 -%description -n python-imobiledevice +%description -n python3-imobiledevice Contains Python bindings for developing applications that use %{name}. %prep %setup -q -autoreconf -fi sed -i -e '/Requires:/d' src/%{name}-1.0.pc.in sed -i -e 's/-L${libdir}//' src/%{name}-1.0.pc.in %build -%configure --disable-silent-rules \ - --disable-static --disable-dev-tools -make %{?_smp_mflags} +autoreconf -fvi +%configure \ + --disable-silent-rules \ + --disable-static \ + --disable-dev-tools +%make_build %install -make DESTDIR=%{buildroot} install %{?_smp_mflags} +%make_install find %{buildroot} -type f -name "*.la" -delete -print -rm -rf %{buildroot}/%{_libdir}/%{name}.*a* %post -n %{name}%{soname} -p /sbin/ldconfig - %postun -n %{name}%{soname} -p /sbin/ldconfig %files -n %{name}%{soname} -%defattr(-,root,root) -%doc COPYING.LESSER -%{_libdir}/%{name}.so.%{soname} -%{_libdir}/%{name}.so.%{soname}.0.0 +%license COPYING.LESSER +%{_libdir}/%{name}.so.%{soname}* %files devel -%defattr(-,root,root) %{_includedir}/%{name}/ %{_libdir}/%{name}.so %{_libdir}/pkgconfig/%{name}-1.0.pc %files -n imobiledevice-tools -%defattr(-,root,root) -%doc AUTHORS COPYING COPYING.LESSER NEWS README +%doc AUTHORS NEWS README.md %{_bindir}/idevice_id %{_bindir}/idevicecrashreport %{_bindir}/idevicepair @@ -144,26 +130,25 @@ rm -rf %{buildroot}/%{_libdir}/%{name}.*a* %{_bindir}/idevicedate %{_bindir}/ideviceprovision %{_bindir}/idevicenotificationproxy -%doc %{_mandir}/man1/idevice_id.1%{?ext_man} -%doc %{_mandir}/man1/idevicecrashreport.1%{?ext_man} -%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} -%doc %{_mandir}/man1/idevicedebug.1%{?ext_man} -%doc %{_mandir}/man1/idevicedebugserverproxy.1%{?ext_man} -%doc %{_mandir}/man1/idevicediagnostics.1%{?ext_man} -%doc %{_mandir}/man1/ideviceimagemounter.1%{?ext_man} -%doc %{_mandir}/man1/idevicename.1%{?ext_man} -%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} -%doc %{_mandir}/man1/idevicenotificationproxy.1%{?ext_man} +%{_mandir}/man1/idevice_id.1%{?ext_man} +%{_mandir}/man1/idevicecrashreport.1%{?ext_man} +%{_mandir}/man1/idevicepair.1%{?ext_man} +%{_mandir}/man1/ideviceinfo.1%{?ext_man} +%{_mandir}/man1/idevicesyslog.1%{?ext_man} +%{_mandir}/man1/idevicebackup.1%{?ext_man} +%{_mandir}/man1/idevicebackup2.1%{?ext_man} +%{_mandir}/man1/idevicedebug.1%{?ext_man} +%{_mandir}/man1/idevicedebugserverproxy.1%{?ext_man} +%{_mandir}/man1/idevicediagnostics.1%{?ext_man} +%{_mandir}/man1/ideviceimagemounter.1%{?ext_man} +%{_mandir}/man1/idevicename.1%{?ext_man} +%{_mandir}/man1/idevicescreenshot.1%{?ext_man} +%{_mandir}/man1/ideviceenterrecovery.1%{?ext_man} +%{_mandir}/man1/idevicedate.1%{?ext_man} +%{_mandir}/man1/ideviceprovision.1%{?ext_man} +%{_mandir}/man1/idevicenotificationproxy.1%{?ext_man} -%files -n python-imobiledevice -%defattr(-,root,root) -%{python_sitearch}/imobiledevice.so +%files -n python3-imobiledevice +%{python3_sitearch}/imobiledevice.so %changelog