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
This commit is contained in:
Paolo Panto 2023-06-22 18:24:41 +00:00 committed by Git OBS Bridge
parent f8d5ea0f93
commit e7b3667614
10 changed files with 133 additions and 37 deletions

2
.gitattributes vendored
View File

@ -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

View File

@ -5,7 +5,7 @@
<param name="versionformat">@PARENT_TAG@</param>
<param name="versionrewrite-pattern">v(.*)</param>
<param name="changesgenerate">enable</param>
<param name="revision">v2.0</param>
<param name="revision">v2.1</param>
</service>
<service name="recompress" mode="disabled">
<param name="file">*.tar</param>

View File

@ -1,4 +1,4 @@
<servicedata>
<service name="tar_scm">
<param name="url">https://github.com/Genymobile/scrcpy.git</param>
<param name="changesrevision">f1b2d6bbbb5afd1f95913a49b94eda7cfb85226b</param></service></servicedata>
<param name="changesrevision">2dab1f7024dd7edbd3b630a1a435c14b98f368c1</param></service></servicedata>

View File

@ -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

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:bcfe119893a03911209012d89700ef18d19a2fb4f390d818fd10691ae9786b43
size 309880

3
scrcpy-2.1.tar.xz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:2bda06152e392be7bea35680677ef355c7f8142a39e68db6a7bfc7323f752b37
size 317136

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9e241615f578cd690bb43311000debdecf6a9c50a7082b001952f18f6f21ddc2
size 52867

3
scrcpy-server-v2.1 Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:5b8bf1940264b930c71a1c614c57da2247f52b2d4240bca865cc6d366dff6688
size 56955

View File

@ -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

View File

@ -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}