scrcpy/scrcpy.spec
Paolo Panto 589fc5fda9 Accepting request 1121675 from home:munix9
- Update to version 2.2:
  * Bump version to v2.2
  * Upgrade SDL (2.28.4) for Windows
  * Upgrade platform-tools (34.0.5) for Windows
  * Shutdown connection before joining threads
  * Disable default stdout/stderr
  * Improve manpage formatting
  * Simplify URLs in manpage
  * Always print device model and version
  * Add camera documentation
  * Add support for high frame rate camera capture
  * Add --camera-fps
  * Do not arbitrary limit --max-fps to 1000
  * Fail-fast camera mirroring on Android 11 and older
  * Support camera size selection using -m/--camera-ar
  * Add --camera-facing
  * Make camera id optional
  * Handle camera disconnection
  * Automatically select audio source
  * Add camera mirroring
  * Add --list-camera-sizes
  * Add --list-cameras
  * Factorize --list- options handling
  * Extract SurfaceCapture from ScreenEncoder
  * Force server exit at the end of main()
  * Rename --display to --display-id
  * Make separator configurable for parsing integers
  * Fix incorrect comment about AV1 constant
  * Move empty string test for crop option parsing
  * Replace raw number by its name
  * Replace sprintf() with safer snprintf()
  * Use `char *` for pointer arithmetic
  * Enable missing-prototypes warning
  * Declare local functions as static
  * Wrap macros in do-while(0)
  * Fix --pause-on-exit parsing
  * Add missing `void`s for empty parameter list
  * Make sc_usb_devices_destroy() static
  * Remove redundant `;`
  * Use `void` for empty function parameter list
  * Add scrcpy-server to .gitignore
  * Use --pause-on-exit from launchers
  * Add --pause-on-exit
  * Make fillBaseContext() method private
  * Add missing 'final' in Java classes
  * Fix warning typo
  * Report device disconnection on audio EOS
  * Do not disable controls without video playback
  * Fix TCP/IP link in README
  * Add missing syntax highlighting in audio doc
  * Add Encoder section
  * Extract device connection to a separate doc page
  * Move display section to video documentation
  * Update links to v2.1.1

OBS-URL: https://build.opensuse.org/request/show/1121675
OBS-URL: https://build.opensuse.org/package/show/hardware/scrcpy?expand=0&rev=81
2023-11-01 18:40:09 +00:00

104 lines
2.8 KiB
RPMSpec

#
# spec file for package scrcpy
#
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: scrcpy
Version: 2.2
Release: 0
Summary: Display and control your Android device
License: Apache-2.0
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}
BuildRequires: hicolor-icon-theme
BuildRequires: meson >= 0.48
BuildRequires: pkgconfig
BuildRequires: update-desktop-files
BuildRequires: pkgconfig(libavcodec)
BuildRequires: pkgconfig(libavdevice)
BuildRequires: pkgconfig(libavformat)
BuildRequires: pkgconfig(libusb-1.0)
BuildRequires: pkgconfig(sdl2)
Recommends: android-tools
%if 0%{?suse_version} <= 1500
BuildRequires: gcc11
BuildRequires: gcc11-PIE
%else
BuildRequires: gcc
%endif
%description
This application provides display and control of Android devices
connected on USB. It does not require any root access.
%package bash-completion
Summary: Scrcpy Bash completion
BuildRequires: bash-completion
Requires: %{name} = %{version}
Requires: bash-completion
Supplements: (%{name} and bash-completion)
BuildArch: noarch
%description bash-completion
Optional dependency offering bash completion for scrcpy.
%package zsh-completion
Summary: Scrcpy zsh completion
BuildRequires: zsh
Requires: %{name} = %{version}
Requires: zsh
Supplements: (%{name} and zsh)
BuildArch: noarch
%description zsh-completion
Optional dependency offering zsh completion for scrcpy.
%prep
%autosetup -p1
%build
%if 0%{?suse_version} <= 1500
export CC=gcc-11
%endif
%meson -Dprebuilt_server='%{SOURCE1}'
%meson_build
%install
%meson_install
%suse_update_desktop_file scrcpy Network
%suse_update_desktop_file scrcpy-console Network
%files
%license LICENSE
%doc README.md FAQ.md doc/*
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_mandir}/man1/%{name}.1%{?ext_man}
%{_datadir}/applications/scrcpy{,-console}.desktop
%{_datadir}/icons/hicolor/*/apps/scrcpy.png
%files bash-completion
%{_datadir}/bash-completion/completions/scrcpy
%files zsh-completion
%{_datadir}/zsh/site-functions/_scrcpy
%changelog