## START: Set by rpmautospec ## (rpmautospec version 0.8.4) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 4; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec Name: android-tools Version: 37.0.0 Release: %autorelease Epoch: 1 Summary: Android platform tools(adb, fastboot) License: Apache-2.0 AND BSD-3-Clause AND GPL-2.0-or-later AND LGPL-2.1-or-later AND MIT AND LicenseRef-Fedora-Public-Domain URL: http://developer.android.com/guide/developing/tools/ # Sources with all needed patches and cmakelists live there now: Source0: https://github.com/nmeum/%{name}/releases/download/%{version}/%{name}-%{version}.tar.xz # https://github.com/nmeum/android-tools/pull/208 Patch: https://github.com/nmeum/android-tools/pull/208.patch # https://github.com/nmeum/android-tools/pull/209 Patch: 209.patch # Automatically generated patch to strip dependencies and normalize metadata Patch: adb_mdns-fix-metadata-auto.diff # Manually created patch for downstream crate metadata changes Patch: adb_mdns-fix-metadata.diff BuildRequires: brotli-devel BuildRequires: cargo-rpm-macros BuildRequires: cmake BuildRequires: corrosion BuildRequires: fmt-devel BuildRequires: gcc BuildRequires: gcc-c++ BuildRequires: gtest-devel BuildRequires: libusbx-devel BuildRequires: libzstd-devel BuildRequires: lz4-devel BuildRequires: pcre2-devel BuildRequires: protobuf-devel Provides: adb = %{epoch}:%{version}-%{release} Provides: fastboot = %{epoch}:%{version}-%{release} Provides: mke2fs.android = %{epoch}:%{version}-%{release} # Bundled bits Provides: bundled(boringssl) # Bundled boringssl doesn't support the big endian architectures rhbz 1431379 ExcludeArch: ppc ppc64 s390x %description The Android Debug Bridge (ADB) is used to: - keep track of all Android devices and emulators instances connected to or running on a given host developer machine - implement various control commands (e.g. "adb shell", "adb pull", etc.) for the benefit of clients (command-line users, or helper programs like DDMS). These commands are what is called a 'service' in ADB. Fastboot is used to manipulate the flash partitions of the Android phone. It can also boot the phone using a kernel image or root filesystem image which reside on the host machine rather than in the phone flash. In order to use it, it is important to understand the flash partition layout for the phone. The fastboot program works in conjunction with firmware on the phone to read and write the flash partitions. It needs the same USB device setup between the host and the target phone as adb. %prep %autosetup -p1 pushd vendor/adb/client/adbmdns > /dev/null %cargo_prep popd > /dev/null %generate_buildrequires pushd vendor/adb/client/adbmdns > /dev/null %cargo_generate_buildrequires popd > /dev/null %build %cmake -DANDROID_TOOLS_ADB_ENABLE_MDNS:BOOL=ON -DBUILD_SHARED_LIBS:BOOL=OFF %cmake_build pushd vendor/adb/client/adbmdns > /dev/null %{cargo_license_summary} %{cargo_license} > LICENSE.dependencies popd > /dev/null %install %cmake_install %files %license vendor/adb/client/adbmdns/LICENSE.dependencies %{_bindir}/adb %{_bindir}/avbtool %{_bindir}/mke2fs.android %{_bindir}/simg2img %{_bindir}/img2simg %{_bindir}/fastboot %{_bindir}/append2simg %{_bindir}/e2fsdroid %{_bindir}/ext2simg %{_bindir}/lpadd %{_bindir}/lpdump %{_bindir}/lpflash %{_bindir}/lpmake %{_bindir}/lpunpack %{_bindir}/make_f2fs %{_bindir}/mkbootimg %{_bindir}/mkdtboimg %{_bindir}/repack_bootimg %{_bindir}/sload_f2fs %{_bindir}/unpack_bootimg %{_datadir}/android-tools/completions/adb %{_datadir}/android-tools/completions/fastboot %{_datadir}/android-tools/mkbootimg/gki/generate_gki_certificate.py %{_datadir}/android-tools/mkbootimg/mkbootimg.py %{_datadir}/bash-completion/completions/adb %{_datadir}/bash-completion/completions/fastboot %{_datadir}/zsh/site-functions/_adb %{_datadir}/zsh/site-functions/_fastboot %{_mandir}/man1/adb.1.* %changelog ## START: Generated by rpmautospec * Tue Aug 11 2026 LuK1337 - 1:37.0.0-4 - Enable mDNS * Sat Aug 01 2026 LuK1337 - 1:37.0.0-3 - Make generate_gki_certificate.py executable * Sat Aug 01 2026 LuK1337 - 1:37.0.0-2 - Update package license * Sat Aug 01 2026 LuK1337 - 1:37.0.0-1 - Update to 37.0.0 * Sun Jul 26 2026 LuK1337 - 1:35.0.2-22 - Drop some not needed build requirements * Wed Jul 15 2026 Fedora Release Engineering - 1:35.0.2-21 - Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild * Thu Jun 25 2026 František Zatloukal - 1:35.0.2-20 - Rebuilt for fmt/spdlog * Wed Jun 24 2026 Benjamin A. Beasley - 1:35.0.2-19 - Rebuilt for abseil-cpp 20260526.0 * Thu May 28 2026 Miroslav Suchý - 1:35.0.2-18 - rebuild for https://fedoraproject.org/wiki/Changes/Protobuf_5.x/6.x * Fri Jan 16 2026 LuK1337 - 1:35.0.2-17 - Drop golang build dependency * Fri Jan 16 2026 LuK1337 - 1:35.0.2-16 - Add missing includes for GCC 16 * Fri Jan 16 2026 Fedora Release Engineering - 1:35.0.2-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild * Fri Jan 16 2026 Fedora Release Engineering - 1:35.0.2-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild * Tue Jan 13 2026 LuK1337 - 1:35.0.2-13 - Backport "Make legacy USB driver default on Linux" from 16.0.0_r4 * Fri Oct 10 2025 Alejandro Sáez - 1:35.0.2-12 - rebuild * Sat Sep 06 2025 Zephyr Lykos - 1:35.0.2-11 - Fix compilation on Protobuf v30 * Fri Aug 15 2025 Maxwell G - 1:35.0.2-10 - Rebuild for golang-1.25.0 * Fri Aug 15 2025 Maxwell G - 1:35.0.2-9 - Revert "Rebuild for golang-1.25.0" * Fri Aug 15 2025 Maxwell G - 1:35.0.2-8 - Rebuild for golang-1.25.0 * Wed Jul 23 2025 Fedora Release Engineering - 1:35.0.2-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild * Sat May 10 2025 LuK1337 - 1:35.0.2-6 - Remove _hardened_build global * Fri May 09 2025 LuK1337 - 1:35.0.2-5 - Remove adb.service and udev rules * Fri May 09 2025 LuK1337 - 1:35.0.2-4 - Remove generate_build.rb * Thu Mar 27 2025 LuK1337 - 1:35.0.2-3 - Reenable libusb SuperSpeed+ support * Tue Mar 04 2025 Ivan Afonichev - 1:35.0.2-2 - RPMAUTOSPEC: unresolvable merge ## END: Generated by rpmautospec