scrcpy/scrcpy.spec
Duarte Pousa 295189628e Accepting request 1045458 from home:munix9
- Update to version 1.25:
  * Bump version to 1.25
  * Upgrade FFmpeg (5.1.2) for Windows 64-bit
  * Upgrade SDL (2.26.1) for Windows
  * Upgrade platform-tools (33.0.3) for Windows
  * Force mouse source when --forward-all-clicks
  * Remove continuous resizing workaround for Windows
  * Add parent directory in release zipfile
  * Use "meson setup"
  * Adapt ClipboardManager for Android 13
  * Upgrade junit to 4.13.2
  * Use current adb port (if any) for --tcpip
  * Fix CommandParserTest code style
  * Always use --key=value in README
  * Fix DisplayInfo parsing for Android Q
  * Support wchar_t in argv for Windows
  * Avoid string concatenation in crossfiles
  * Build log.c for test_cli
  * Add missing include <string.h> for strlen()
  * Add missing include <string.h> for memmove()
  * Add -s auto-completion for zsh
  * Add -s auto-completion for bash
  * Make ServiceManager and Settings methods static
  * Fix typo in logs
  * Add fallback to get DisplayInfo
  * Use /dev/null instead of closing fds
  * Extract $BUILD_TOOLS_DIR
  * Add scrcpy-console.desktop
  * Use shell environment to execute launcher
  * Add desktop entry file for Linux app launchers
  * Replace hardcoded 'share/' by datadir variable
  * Upgrade Android SDK to 33
  * Upgrade gradle build tools to 7.2.2
  * Move from jcenter() to mavenCentral()
  * Use precise scrolling values
  * Add conversion from float to fixed-point i16
  * Add unit test for float encoding
  * Extract conversion from float to u16 fixed-point
  * Rename buffer_util.h to binary.h
  * Add unit test for float decoding
  * Extract conversion from u16 fixed-point to float
  * Move toUnsigned() to a Binary util class
  * Remove deprecated meson.source_root()
  * Move README and FAQ translations to the wiki
  * Fix FAQ formatting
  * Use DisplayManagerGlobal instance
  * Rename net_listen() parameter
  * Replace '%g' by '%f' as printf format
  * Detect Windows using _WIN32 in network util
  * Fix protocol documentation in comments
  * Add missing allocation failure check
  * Add missing LOG_OOM() on malloc failure
  * Remove useless dependencies reference
  * Document envvars for all platforms
  * Fix environment variable configuration in FAQ
  * Remove unused stream.h
  * Rename function to simplify
  * Add missing return 0 in tests
  * Fix function declarations
  * Reduce SHA-256 size in README and BUILD
  * Update links to v1.24

OBS-URL: https://build.opensuse.org/request/show/1045458
OBS-URL: https://build.opensuse.org/package/show/hardware/scrcpy?expand=0&rev=77
2022-12-28 12:43:28 +00:00

97 lines
2.9 KiB
RPMSpec

#
# spec file for package scrcpy
#
# Copyright (c) 2022 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: 1.25
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}
# 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: gcc
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
%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
%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 DEVELOP.md FAQ.md
%{_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