[packages/ipheth] - adjusted userspace package to build with libimobiledevice 1.3.0; rel 8
qboosh
qboosh at pld-linux.org
Sun Sep 13 15:57:30 CEST 2020
commit 0c9b31d52aaaa61bcfb9a86cda548f3e85bec578
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sun Sep 13 16:00:15 2020 +0200
- adjusted userspace package to build with libimobiledevice 1.3.0; rel 8
ipheth.spec | 36 ++++++++++++++++++++++++++++--------
1 file changed, 28 insertions(+), 8 deletions(-)
---
diff --git a/ipheth.spec b/ipheth.spec
index a35f291..c70c895 100644
--- a/ipheth.spec
+++ b/ipheth.spec
@@ -1,8 +1,8 @@
#
# Conditional build:
%bcond_without dist_kernel # allow non-distribution kernel
-%bcond_with kernel # don't build kernel modules
-%bcond_without userspace # don't build userspace programs
+%bcond_with kernel # kernel modules [already in Linux >= 2.6.34]
+%bcond_without userspace # userspace programs
%bcond_with verbose # verbose build (V=1)
%if %{without kernel}
@@ -16,18 +16,21 @@
%define _enable_debug_packages 0
%endif
-%define rel 7
+%define rel 8
%define pname ipheth
Summary: iPhone USB Ethernet Driver
+Summary(pl.UTF-8): Sterownik ethernetowy dla iPhone'a po USB
Name: %{pname}%{_alt_kernel}
Version: 1.0
Release: %{rel}
License: BSD/GPL v2
Group: X11/Applications
+#Source0Download: https://github.com/dgiagio/ipheth/releases/
Source0: https://github.com/downloads/dgiagio/ipheth/ipheth-%{version}.tar.gz
# Source0-md5: 80548f0d419ff0c2784d148b40b2aeb6
-URL: http://giagio.com/wiki/moin.cgi/iPhoneEthernetDriver
-BuildRequires: libimobiledevice-devel
+URL: https://github.com/dgiagio/ipheth
+BuildRequires: libimobiledevice-devel >= 1
+BuildRequires: pkgconfig
Requires: udev-core
Requires: usbmuxd
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -37,8 +40,19 @@ This is a Linux Kernel driver that adds support for iPhone tethering
through USB cables. Unlike other solutions out there, you don't need
to jailbreak your phone or install third-party proxy applications.
+This package contains the device pairing program.
+
+%description -l pl.UTF-8
+ipheth to sterownik jądra Linuksa dodające obsługę transmisji
+ethernetowej z iPhonem przez kabel USB. W przeciwieństwie do innych
+rozwiązań, nie wymaga to łamania zabezpieczeń telefonu ani
+instalowania zewnętrznych proxy.
+
+Ten pakiet zawiera program do parowania urządzeń.
+
%package -n kernel%{_alt_kernel}-net-ipheth
Summary: Linux driver for iPhone USB Ethernet Driver
+Summary(pl.UTF-8): Sterownik jądra Linuksa do ethernetu dla iPhone'a po USB
Release: %{rel}@%{_kernel_ver_str}
Group: Base/Kernel
Requires(post,postun): /sbin/depmod
@@ -50,6 +64,9 @@ Requires(postun): %releq_kernel
%description -n kernel%{_alt_kernel}-net-ipheth
Linux driver for iPhone USB Ethernet Driver.
+%description -n kernel%{_alt_kernel}-net-ipheth -l pl.UTF-8
+Sterownik jądra Linuksa do ethernetu dla iPhone'a po USB.
+
%prep
%setup -q
@@ -57,14 +74,17 @@ Linux driver for iPhone USB Ethernet Driver.
%if %{with kernel}
%build_kernel_modules -C ipheth-driver -m ipheth CONFIG_DEBUG_SECTION_MISMATCH=y
%endif
+
%if %{with userspace}
%{__make} -C ipheth-pair \
CC="%{__cc}" \
- CFLAGS="%{rpmcflags}"
+ CFLAGS="%{rpmcflags} -Wall" \
+ LDLIBS="%{rpmldflags} $(pkg-config --libs libimobiledevice-1.0)"
%endif
%install
rm -rf $RPM_BUILD_ROOT
+
%if %{with kernel}
%install_kernel_modules -m ipheth-driver/ipheth -d misc -s update -n %{pname}
cat <<'EOF' >> $RPM_BUILD_ROOT/etc/modprobe.d/%{_kernel_ver}/%{pname}.conf
@@ -95,6 +115,6 @@ rm -rf $RPM_BUILD_ROOT
%if %{with kernel}
%files -n kernel%{_alt_kernel}-net-ipheth
%defattr(644,root,root,755)
-/etc/modprobe.d/%{_kernel_ver}/%{pname}.conf
-/lib/modules/%{_kernel_ver}/misc/*.ko*
+/etc/modprobe.d/%{_kernel_ver}/ipheth.conf
+/lib/modules/%{_kernel_ver}/misc/ipheth.ko*
%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/ipheth.git/commitdiff/0c9b31d52aaaa61bcfb9a86cda548f3e85bec578
More information about the pld-cvs-commit
mailing list