From e7b366761493e2f8be6c16847d595d60ab0d4aa6d3d67d38a9c584a245d1b740 Mon Sep 17 00:00:00 2001 From: Paolo Panto Date: Thu, 22 Jun 2023 18:24:41 +0000 Subject: [PATCH] Accepting request 1094722 from home:munix9 - Update to version 2.1 OBS-URL: https://build.opensuse.org/request/show/1094722 OBS-URL: https://build.opensuse.org/package/show/hardware/scrcpy?expand=0&rev=79 --- .gitattributes | 2 +- _service | 2 +- _servicedata | 2 +- fix-desktop-file-exec.patch | 24 ------- scrcpy-2.0.tar.xz | 3 - scrcpy-2.1.tar.xz | 3 + scrcpy-server-v2.0 | 3 - scrcpy-server-v2.1 | 3 + scrcpy.changes | 121 ++++++++++++++++++++++++++++++++++++ scrcpy.spec | 7 +-- 10 files changed, 133 insertions(+), 37 deletions(-) delete mode 100644 fix-desktop-file-exec.patch delete mode 100644 scrcpy-2.0.tar.xz create mode 100644 scrcpy-2.1.tar.xz delete mode 100644 scrcpy-server-v2.0 create mode 100644 scrcpy-server-v2.1 diff --git a/.gitattributes b/.gitattributes index cf22f1b..5b158f9 100644 --- a/.gitattributes +++ b/.gitattributes @@ -22,4 +22,4 @@ *.zip filter=lfs diff=lfs merge=lfs -text *.zst filter=lfs diff=lfs merge=lfs -text ## Specific LFS patterns -scrcpy-server-v2.0 filter=lfs diff=lfs merge=lfs -text +scrcpy-server-v2.1 filter=lfs diff=lfs merge=lfs -text diff --git a/_service b/_service index 745f93f..63d410f 100644 --- a/_service +++ b/_service @@ -5,7 +5,7 @@ @PARENT_TAG@ v(.*) enable - v2.0 + v2.1 *.tar diff --git a/_servicedata b/_servicedata index c4ab1ce..af12e91 100644 --- a/_servicedata +++ b/_servicedata @@ -1,4 +1,4 @@ https://github.com/Genymobile/scrcpy.git - f1b2d6bbbb5afd1f95913a49b94eda7cfb85226b \ No newline at end of file + 2dab1f7024dd7edbd3b630a1a435c14b98f368c1 \ No newline at end of file diff --git a/fix-desktop-file-exec.patch b/fix-desktop-file-exec.patch deleted file mode 100644 index 4617845..0000000 --- a/fix-desktop-file-exec.patch +++ /dev/null @@ -1,24 +0,0 @@ -diff -ruN a/app/data/scrcpy.desktop b/app/data/scrcpy.desktop ---- a/app/data/scrcpy.desktop -+++ b/app/data/scrcpy.desktop -@@ -5,7 +5,7 @@ - # For some users, the PATH or ADB environment variables are set from the shell - # startup file, like .bashrc or .zshrc… Run an interactive shell to get - # environment correctly initialized. --Exec=/bin/sh -c '"$SHELL" -i -c scrcpy' -+Exec=/bin/sh -c "\\$SHELL -i -c scrcpy" - Icon=scrcpy - Terminal=false - Type=Application -diff -ruN a/app/data/scrcpy-console.desktop b/app/data/scrcpy-console.desktop ---- a/app/data/scrcpy-console.desktop -+++ b/app/data/scrcpy-console.desktop -@@ -5,7 +5,7 @@ - # For some users, the PATH or ADB environment variables are set from the shell - # startup file, like .bashrc or .zshrc… Run an interactive shell to get - # environment correctly initialized. --Exec=/bin/bash --norc --noprofile -i -c '"$SHELL" -i -c scrcpy || read -p "Press any key to quit..."' -+Exec=/bin/bash --norc --noprofile -i -c "\\$SHELL -i -c scrcpy || read -p 'Press any key to quit...'" - Icon=scrcpy - Terminal=true - Type=Application diff --git a/scrcpy-2.0.tar.xz b/scrcpy-2.0.tar.xz deleted file mode 100644 index 6d59a6e..0000000 --- a/scrcpy-2.0.tar.xz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:bcfe119893a03911209012d89700ef18d19a2fb4f390d818fd10691ae9786b43 -size 309880 diff --git a/scrcpy-2.1.tar.xz b/scrcpy-2.1.tar.xz new file mode 100644 index 0000000..237f330 --- /dev/null +++ b/scrcpy-2.1.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2bda06152e392be7bea35680677ef355c7f8142a39e68db6a7bfc7323f752b37 +size 317136 diff --git a/scrcpy-server-v2.0 b/scrcpy-server-v2.0 deleted file mode 100644 index 37dd6cf..0000000 --- a/scrcpy-server-v2.0 +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:9e241615f578cd690bb43311000debdecf6a9c50a7082b001952f18f6f21ddc2 -size 52867 diff --git a/scrcpy-server-v2.1 b/scrcpy-server-v2.1 new file mode 100644 index 0000000..06a17a8 --- /dev/null +++ b/scrcpy-server-v2.1 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5b8bf1940264b930c71a1c614c57da2247f52b2d4240bca865cc6d366dff6688 +size 56955 diff --git a/scrcpy.changes b/scrcpy.changes index 5f1f75f..bb3c546 100644 --- a/scrcpy.changes +++ b/scrcpy.changes @@ -1,3 +1,124 @@ +------------------------------------------------------------------- +Thu Jun 22 15:01:04 UTC 2023 - munix9@googlemail.com + +- Update to version 2.1: + * Bump version to 2.1 + * Fix adb forward initialization + * Fix code style + * Accept failure in rotation or fold registration + * Register DisplayFoldListener only for Android 10+ + * Upgrade platform-tools (34.0.3) for Windows + * Update developer documentation + * Fix build without gradle + * Upgrade SDL (2.28.0) for Windows + * Add workarounds for Honor devices + * Move workarounds execution + * Log device BRAND + * Fix lint warning + * Add InputManagerGlobal for Android 14 beta 3 + * Add --time-limit + * Improve recording documentation + * Rename raw_video_stream to raw_stream + * Remove spurious empty line + * Reformat Java code + * Name Java threads + * Add missing shortcut in documentation + * Add option to kill adb on close + * Fix adb server vs adb daemon confusion + * Fix options alphabetical order + * Simplify command in documentation + * Fix typo in recording documentation + * Fix PTS when not monotonically increasing + * Extract stream-specific structure in recorder + * Fix recorder waiting when stream disabled + * Use a single condvar in recorder + * Mention how to interrupt scrcpy without video + * Reorder options in alphabetical order + * Add option to select audio source + * Extract AudioCapture creation + * Reset video capture on folding event + * Rename rotationChanged to resetCapture + * Update demuxer comment + * Fix stream offset on audio buffer underflow + * Reorder options to maintain alphabetical order + * Turn device screen off after set up + * Document --no-{video,audio}-playback + * Add separate video and audio playback options + * Simplify V4L2/USB ifdefs + * Define v4l2_buffer only if HAVE_V4L2 + * Fix V4L2 error message when disabled + * Reorder command line options checks + * Rename --no-mirror to --no-playback + * Create AudioRecord by reflection as a fallback + * Rename FORMAT to ENCODING + * Extract audio source to a static constant + * Delay window resize when minimized + * Accept texture failures + * Document installation via winget on Windows + * Upgrade FFmpeg build to 6.0-scrcpy-4 + * Update audio recording documentation + * Upgrade FFmpeg build to 6.0-scrcpy-3 + * Add recording to aac file + * Add recording to opus file + * Accept .m4a and .mka + * Refactor command line checks + * Factorize record format parsing + * Add --no-video + * Remove unnecessary 'else' + * Convert screen encoder to async processor + * Add missing @Override annotations + * Close connection at the end of finally-block + * Disable controls on --no-mirror + * Rename --no-display to --no-mirror + * Clarify API versions that support Audio Forwarding + * Fix build for FFmpeg < 3.3 + * Force OpenGL Core Profile context on macOS + * Add missing --no-audio option in manpage + * Remove Options setters + * Move options parsing to Options class + * Fix checkstyle violation + * Extract sc_display from sc_screen + * Pass const pointers to events + * Add Android version check in raw audio recorder + * Fix "ip route" parsing + * Fix copy-paste for some devices + * Specify in README that OTG does not require adb + * Simplify clock estimation + * Fix documentation link in FAQ + * Fix typo in FAQ + * Fix debug build by adding compat.c to tests + * Mention necessary reboot + * Reference FAQ from HID/OTG documentation + * Adapt FakeContext for Android 14 + * Adapt clipboard wrappers to Android 14 + * Replace "bit-rate" with "bit rate" + * Fix typo in doc/audio.md + * Use separate audio capture code for Android 11 + * Make 3 attempts to start AudioRecord + * List available encoders on failure + * Fix pause message + * Simplify logic in setScreenPowerMode() + * Clarify V4L2 feature in README + * Document missing Opus encoder error + * Add --audio-output-buffer + * Fix bash auto-completion handling + * Add missing auto-completion for --audio-buffer + * Split workarounds to fix audio on some devices + * Fix linux desktop files validation + * Update Gentoo instructions + * Fail on empty AudioRecord read() + * Update broken link in documentation + * Replace link to enable USB debugging in README + * Add references to prerequisites + * Add blogpost link about scrcpy 2.0 + * Fix v4l2 sink + * Fix build issue on FFmpeg < 5.1 + * Fix comparison warning + * Fix an "expected expression" error + * Fix broken link in Windows download page + * Fix broken link in shortcuts documentation + * Update links to v2.0 + ------------------------------------------------------------------- Sun Mar 12 06:41:21 UTC 2023 - munix9@googlemail.com diff --git a/scrcpy.spec b/scrcpy.spec index 6955f91..6976693 100644 --- a/scrcpy.spec +++ b/scrcpy.spec @@ -17,7 +17,7 @@ Name: scrcpy -Version: 2.0 +Version: 2.1 Release: 0 Summary: Display and control your Android device License: Apache-2.0 @@ -25,8 +25,6 @@ Group: Hardware/Mobile URL: https://github.com/Genymobile/scrcpy Source0: %{name}-%{version}.tar.xz Source1: https://github.com/Genymobile/scrcpy/releases/download/v%{version}/scrcpy-server-v%{version} -# PATCH-FIX-OPENSUSE fix-desktop-file-exec.patch gh#Genymobile/scrcpy#3633 munix9@googlemail.com -- Fix "E: invalid-desktopfile" -Patch0: fix-desktop-file-exec.patch BuildRequires: hicolor-icon-theme BuildRequires: meson >= 0.48 BuildRequires: pkgconfig @@ -39,6 +37,7 @@ BuildRequires: pkgconfig(sdl2) Recommends: android-tools %if 0%{?suse_version} <= 1500 BuildRequires: gcc11 +BuildRequires: gcc11-PIE %else BuildRequires: gcc %endif @@ -88,7 +87,7 @@ export CC=gcc-11 %files %license LICENSE -%doc README.md FAQ.md +%doc README.md FAQ.md doc/* %{_bindir}/%{name} %{_datadir}/%{name} %{_mandir}/man1/%{name}.1%{?ext_man}