Skip to content

Commit c5b7006

Browse files
Upgrade libusbmuxd to 2.1.0, libimobiledevice to 1.3.0, libplist to 2.7.0 and usbmuxd to 1.1.1 (#14876)
Co-authored-by: Sandeep Karambelkar <[email protected]>
1 parent 67c0c70 commit c5b7006

13 files changed

+192
-19925
lines changed

SPECS-EXTENDED/libimobiledevice/a7568f456d10f1aff61534e3216201a857865247...9b857fc42cdc4921e1e3f190c5ea907774e04758.patch

Lines changed: 0 additions & 15694 deletions
This file was deleted.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"Signatures": {
3-
"libimobiledevice-1.2.0.tar.bz2": "786b0de0875053bf61b5531a86ae8119e320edab724fc62fe2150cc931f11037"
3+
"libimobiledevice-1.3.0.tar.bz2": "53f2640c6365cd9f302a6248f531822dc94a6cced3f17128d4479a77bd75b0f6"
44
}
55
}

SPECS-EXTENDED/libimobiledevice/libimobiledevice.spec

Lines changed: 24 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,15 @@
11
Vendor: Microsoft Corporation
22
Distribution: Azure Linux
3-
Name: libimobiledevice
4-
Version: 1.2.1
5-
Release: 1%{?dist}
6-
Summary: Library for connecting to mobile devices
7-
8-
License: LGPLv2+
9-
URL: http://www.libimobiledevice.org/
10-
Source0: http://www.libimobiledevice.org/downloads/%{name}-1.2.0.tar.bz2
11-
# Upstream patches, generated with:
12-
# git format-patch --stdout 344409e1d1ad917d377b256214c5411dda82e6b0...9b857fc42cdc4921e1e3f190c5ea907774e04758
13-
# b5a70e9aaf538dad0aba0b800b122955e8ac494b
14-
# 26373b334889f5ae2e2737ff447eb25b1700fa2f
15-
# 97f8ac9e9ad9ee73ca635a26831bfe950a5d673b
16-
# were manually removed
17-
Patch0: a7568f456d10f1aff61534e3216201a857865247...9b857fc42cdc4921e1e3f190c5ea907774e04758.patch
3+
Name: libimobiledevice
4+
Version: 1.3.0
5+
Release: 1%{?dist}
6+
Summary: Library for connecting to mobile devices
7+
8+
License: LGPLv2+
9+
URL: http://www.libimobiledevice.org/
10+
Source0: https://github.com/libimobiledevice/libimobiledevice/releases/download/%{version}/%{name}-%{version}.tar.bz2
11+
# Patch to fix 1.3.0 redefining enum from libplist
12+
Patch0: upgrade-fixes-1.3.0.patch
1813

1914
BuildRequires: glib2-devel
2015
BuildRequires: openssl-devel
@@ -30,7 +25,7 @@ BuildRequires: git-core
3025
BuildRequires: autoconf automake libtool
3126

3227
%description
33-
libimobiledevice is a library for connecting to mobile devices including phones
28+
libimobiledevice is a library for connecting to mobile devices including phones
3429
and music players
3530

3631
%package devel
@@ -48,34 +43,31 @@ Requires: %{name}%{?_isa} = %{version}-%{release}
4843
Utilites for use with libimobiledevice.
4944

5045
%prep
51-
%autosetup -S git_am -n %{name}-1.2.0
52-
53-
# Fix dir permissions on html docs
54-
chmod +x docs/html
55-
46+
%autosetup -p1 -S git_am -n %{name}-%{version}
5647
ACLOCAL="aclocal -I m4" autoreconf -f -i
5748

5849
%build
5950
%configure --disable-static --enable-openssl --enable-dev-tools --without-cython
6051
# Remove rpath as per https://fedoraproject.org/wiki/Packaging/Guidelines#Beware_of_Rpath
6152
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
6253
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
63-
64-
make %{?_smp_mflags} V=1
54+
%make_build
55+
#make %{?_smp_mflags} V=1
6556

6657
%install
67-
make install DESTDIR=%{buildroot}
58+
%make_install
59+
#make install DESTDIR=%{buildroot}
6860

6961
#Remove libtool archives.
70-
find %{buildroot} -type f -name "*.la" -delete
62+
#find %{buildroot} -type f -name "*.la" -delete
7163

7264
%ldconfig_scriptlets
7365

7466
%files
7567
%{!?_licensedir:%global license %%doc}
7668
%license COPYING.LESSER
7769
%doc AUTHORS README.md
78-
%{_libdir}/libimobiledevice.so.6*
70+
%{_libdir}/libimobiledevice-1.0.so.6*
7971

8072
%files utils
8173
%doc %{_datadir}/man/man1/idevice*
@@ -84,10 +76,14 @@ find %{buildroot} -type f -name "*.la" -delete
8476
%files devel
8577
%doc docs/html/
8678
%{_libdir}/pkgconfig/libimobiledevice-1.0.pc
87-
%{_libdir}/libimobiledevice.so
79+
%{_libdir}/libimobiledevice-1.0.*
8880
%{_includedir}/libimobiledevice/
8981

9082
%changelog
83+
* Fri Nov 14 2025 Sandeep Karambelkar <[email protected]> - 1.3.0-1
84+
- Update to version 1.3.0
85+
- License verified
86+
9187
* Thu Oct 14 2021 Pawel Winogrodzki <[email protected]> - 1.2.1-1
9288
- Initial CBL-Mariner import from Fedora 32 (license: MIT).
9389
- Converting the 'Release' tag to the '[number].[distribution]' format.
@@ -317,7 +313,7 @@ find %{buildroot} -type f -name "*.la" -delete
317313
- New git snapshot
318314

319315
* Mon Dec 8 2008 Peter Robinson <[email protected]> 0.1.0-6.git8c3a01e
320-
- Fix devel dependency
316+
- Fix devel dependency
321317

322318
* Mon Dec 8 2008 Peter Robinson <[email protected]> 0.1.0-5.git8c3a01e
323319
- Fix gnutls check for new rawhide version
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
From 0e1a8d973c105a1bbc9d60b2e71f49268d9a8617 Mon Sep 17 00:00:00 2001
2+
From: Sandeep Karambelkar <[email protected]>
3+
Date: Fri, 14 Nov 2025 14:49:32
4+
Subject: [PATCH] Patch out plist.h redefinitions
5+
6+
---
7+
common/utils.c | 4 ++++
8+
common/utils.h | 10 ++++++++--
9+
2 files changed, 12 insertions(+), 2 deletions(-)
10+
11+
diff --git a/common/utils.c b/common/utils.c
12+
index 7f66ec2..e06debf 100644
13+
--- a/common/utils.c
14+
+++ b/common/utils.c
15+
@@ -314,7 +314,11 @@ int plist_read_from_filename(plist_t *plist, const char *filename)
16+
return 1;
17+
}
18+
19+
+#ifndef LIBPLIST_H
20+
int plist_write_to_filename(plist_t plist, const char *filename, enum plist_format_t format)
21+
+#else
22+
+int plist_write_to_filename(plist_t plist, const char *filename, plist_format_t format)
23+
+#endif
24+
{
25+
char *buffer = NULL;
26+
uint32_t length;
27+
diff --git a/common/utils.h b/common/utils.h
28+
index 2c3acec..dc5b8a3 100644
29+
--- a/common/utils.h
30+
+++ b/common/utils.h
31+
@@ -51,13 +51,19 @@ char *generate_uuid(void);
32+
void buffer_read_from_filename(const char *filename, char **buffer, uint64_t *length);
33+
void buffer_write_to_filename(const char *filename, const char *buffer, uint64_t length);
34+
35+
-enum plist_format_t {
36+
+#ifndef LIBPLIST_H
37+
+typedef enum plist_format_t {
38+
PLIST_FORMAT_XML,
39+
PLIST_FORMAT_BINARY
40+
-};
41+
+} plist_format_t;
42+
+#endif
43+
44+
int plist_read_from_filename(plist_t *plist, const char *filename);
45+
+#ifndef LIBPLIST_H
46+
int plist_write_to_filename(plist_t plist, const char *filename, enum plist_format_t format);
47+
+#else
48+
+int plist_write_to_filename(plist_t plist, const char *filename, plist_format_t format);
49+
+#endif
50+
51+
void plist_print_to_stream(plist_t plist, FILE* stream);
52+
53+
--
54+
2.45.4
55+
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"Signatures": {
3-
"libplist-2.6.0.tar.bz2": "67be9ee3169366589c92dc7c22809b90f51911dd9de22520c39c9a64fb047c9c"
3+
"libplist-2.7.0.tar.bz2": "7ac42301e896b1ebe3c654634780c82baa7cb70df8554e683ff89f7c2643eb8b"
44
}
5-
}
5+
}

SPECS-EXTENDED/libplist/libplist.spec

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Distribution: Azure Linux
33
%{!?python3_sitearch: %global python_sitearch %(%{__python3} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
44

55
Name: libplist
6-
Version: 2.6.0
6+
Version: 2.7.0
77
Release: 1%{?dist}
88
Summary: Library for manipulating Apple Binary and XML Property Lists
99

@@ -62,6 +62,8 @@ export PYTHON='%{_bindir}/python3'
6262

6363
%install
6464
%make_install
65+
cd %{buildroot}%{_libdir}/pkgconfig/
66+
ln -s libplist-2.0.pc libplist.pc
6567

6668
find $RPM_BUILD_ROOT -type f -name "*.la" -delete
6769

@@ -83,6 +85,8 @@ make check
8385
%{_libdir}/libplist++-2.0.so.4*
8486

8587
%files devel
88+
# This is required for some old package reference
89+
%{_libdir}/pkgconfig/libplist.pc
8690
%{_libdir}/pkgconfig/libplist-2.0.pc
8791
%{_libdir}/pkgconfig/libplist++-2.0.pc
8892
%{_libdir}/libplist-2.0.so
@@ -93,6 +97,10 @@ make check
9397
%{python3_sitearch}/plist*
9498

9599
%changelog
100+
* Fri Nov 14 2025 Sandeep Karambelkar <[email protected]> - 2.7.0-1
101+
- Update to version 2.7.0
102+
- License verified
103+
96104
* Tue Oct 29 2024 Kevin Lockwood <[email protected]> - 2.6.0-1
97105
- Update to 2.6.0
98106
- License verified.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"Signatures": {
3-
"libusbmuxd-2.0.0.tar.gz": "ecf287b9d5fa28645a6b5ed640b6bd174134227c4fd8fde28d0678df2be0e97a"
3+
"libusbmuxd-2.1.0.tar.bz2": "c35bf68f8e248434957bd5b234c389b02206a06ecd9303a7fb931ed7a5636b16"
44
}
55
}

SPECS-EXTENDED/libusbmuxd/libusbmuxd.spec

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
11
Vendor: Microsoft Corporation
22
Distribution: Azure Linux
33
Name: libusbmuxd
4-
Version: 2.0.0
5-
Release: 3%{?dist}
4+
Version: 2.1.0
5+
Release: 1%{?dist}
66
Summary: Client library USB multiplex daemon for Apple's iOS devices
77

8-
License: LGPLv2+
8+
License: LGPL-2.1-or-later
99
URL: http://www.libimobiledevice.org/
10-
Source0: https://github.com/libimobiledevice/%{name}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
10+
Source: https://github.com/libimobiledevice/%{name}/releases/download/%{version}/%{name}-%{version}.tar.bz2
1111

1212
BuildRequires: gcc
1313
BuildRequires: libplist-devel >= 2.1.0
1414
BuildRequires: autoconf automake libtool
15+
BuildRequires: libimobiledevice-glue-devel
1516

1617
%description
1718
libusbmuxd is the client library used for communicating with Apple's iPod Touch,
@@ -35,9 +36,7 @@ Obsoletes: usbmuxd-devel < 1.0.9
3536
Files for development with %{name}.
3637

3738
%prep
38-
%setup -q
39-
40-
NOCONFIGURE=1 ./autogen.sh
39+
%autosetup -p1
4140

4241
%build
4342
%configure --disable-static
@@ -62,18 +61,24 @@ make check
6261
%{!?_licensedir:%global license %%doc}
6362
%license COPYING
6463
%doc README.md AUTHORS
65-
%{_libdir}/libusbmuxd.so.*
64+
%{_libdir}/libusbmuxd-2.0.so.*
6665

6766
%files utils
6867
%{_bindir}/iproxy
69-
%{_bindir}/icat
68+
%{_bindir}/inetcat
69+
%doc %{_mandir}/man1/inetcat.1.gz
70+
%doc %{_mandir}/man1/iproxy.1.gz
7071

7172
%files devel
7273
%{_includedir}/usbmuxd*
73-
%{_libdir}/pkgconfig/libusbmuxd.pc
74-
%{_libdir}/libusbmuxd.so
74+
%{_libdir}/pkgconfig/libusbmuxd-2.0.pc
75+
%{_libdir}/libusbmuxd-2.0.so
7576

7677
%changelog
78+
* Wed Oct 15 2025 Aditya Singh <[email protected]> - 2.1.0-1
79+
- Upgrade to 2.1.0
80+
- License verified
81+
7782
* Fri Oct 15 2021 Pawel Winogrodzki <[email protected]> - 2.0.0-3
7883
- Initial CBL-Mariner import from Fedora 32 (license: MIT).
7984

0 commit comments

Comments
 (0)