[packages/idevicerestore] - new
qboosh
qboosh at pld-linux.org
Sun Sep 13 08:11:32 CEST 2020
commit 2af610142241a71a949504ca3ce0583b11e293fc
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sun Sep 13 08:14:06 2020 +0200
- new
idevicerestore-sh.patch | 22 +++++++++++++++
idevicerestore.spec | 72 +++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 94 insertions(+)
---
diff --git a/idevicerestore.spec b/idevicerestore.spec
new file mode 100644
index 0000000..16b99cf
--- /dev/null
+++ b/idevicerestore.spec
@@ -0,0 +1,72 @@
+Summary: Command-line application to restore firmware files to iOS devices
+Summary(pl.UTF-8): Narzędzie linii poleceń do przywracania plików firmware w urządzeniach iOS
+Name: idevicerestore
+Version: 1.0.0
+Release: 1
+License: LGPL v2.1+
+Group: Applications
+#Source0Download: https://libimobiledevice.org/
+Source0: https://github.com/libimobiledevice/idevicerestore/releases/download/%{version}/%{name}-%{version}.tar.bz2
+# Source0-md5: 72cd746457730875b82589d272138f95
+Patch0: %{name}-sh.patch
+URL: https://libimobiledevice.org/
+BuildRequires: autoconf >= 2.64
+BuildRequires: automake
+BuildRequires: curl-devel >= 7.0
+BuildRequires: libimobiledevice-devel >= 1.3.0
+BuildRequires: libirecovery-devel >= 1.0.0
+BuildRequires: libplist-devel >= 2.2.0
+BuildRequires: libtool
+BuildRequires: libzip-devel >= 0.8
+BuildRequires: openssl-devel >= 0.9.8
+BuildRequires: pkgconfig
+BuildRequires: zlib-devel
+Requires: libimobiledevice >= 1.3.0
+Requires: libirecovery >= 1.0.0
+Requires: libplist >= 2.2.0
+Requires: libzip >= 0.8
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+The idevicerestore application is a full reimplementation of all
+granular steps which are performed during the restore of a firmware to
+a device.
+
+In general, upgrades and downgrades are possible, however subject to
+availability of SHSH blobs from Apple for signing the firmare files.
+
+%description -l pl.UTF-8
+Aplikacja idevicerestore to pełna reimplementacja wszystkich kroków
+wykonywanych podczas przywracania firmware'u urządzenia.
+
+W ogólności możliwe są upgrade'y i downgrade'y, ale zależy to od
+dostępności blobów SHSH od Apple'a do podpisywania plików firmware'u.
+
+%prep
+%setup -q
+%patch0 -p1
+
+%build
+%{__libtoolize}
+%{__aclocal} -I m4
+%{__autoconf}
+%{__autoheader}
+%{__automake}
+%configure \
+ --disable-silent-rules
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS NEWS README.md
+%attr(755,root,root) %{_bindir}/idevicerestore
+%{_mandir}/man1/idevicerestore.1*
diff --git a/idevicerestore-sh.patch b/idevicerestore-sh.patch
new file mode 100644
index 0000000..d5674c7
--- /dev/null
+++ b/idevicerestore-sh.patch
@@ -0,0 +1,22 @@
+--- idevicerestore-1.0.0/configure.ac.orig 2020-06-12 20:12:09.000000000 +0200
++++ idevicerestore-1.0.0/configure.ac 2020-09-13 08:09:19.816252395 +0200
+@@ -53,8 +53,8 @@
+ *mingw32*|*cygwin*)
+ AC_MSG_RESULT([yes])
+ win32=true
+- GLOBAL_CFLAGS+="-DWIN32 -D__LITTLE_ENDIAN__=1"
+- AC_LDFLAGS+="-static-libgcc"
++ GLOBAL_CFLAGS="$GLOBAL_CFLAGS -DWIN32 -D__LITTLE_ENDIAN__=1"
++ AC_LDFLAGS="$AC_LDFLAGS -static-libgcc"
+ ;;
+ darwin*)
+ AC_MSG_RESULT([yes])
+@@ -76,7 +76,7 @@
+ fi
+
+ CACHED_CFLAGS="$CFLAGS"
+-CFLAGS+=" $libimobiledevice_CFLAGS"
++CFLAGS="$CFLAGS $libimobiledevice_CFLAGS"
+
+ # check if libimobiledevice has timeout errors
+ AC_CACHE_CHECK(for IDEVICE_E_TIMEOUT in enum idevice_error_t, ac_cv_idevice_error_has_timeout,
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/idevicerestore.git/commitdiff/2af610142241a71a949504ca3ce0583b11e293fc
More information about the pld-cvs-commit
mailing list