2018-03-19 13:28:50 +00:00
|
|
|
#
|
|
|
|
# spec file for package scrcpy
|
|
|
|
#
|
2024-03-03 21:10:35 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2018-03-19 13:28:50 +00:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2020-03-03 08:51:28 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2018-03-19 13:28:50 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: scrcpy
|
2024-06-29 16:43:23 +00:00
|
|
|
Version: 2.5
|
2018-03-19 13:28:50 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: Display and control your Android device
|
|
|
|
License: Apache-2.0
|
|
|
|
Group: Hardware/Mobile
|
2020-03-03 08:51:28 +00:00
|
|
|
URL: https://github.com/Genymobile/scrcpy
|
2024-06-29 16:43:23 +00:00
|
|
|
Source0: %{url}/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
|
|
|
Source1: %{url}/releases/download/v%{version}/scrcpy-server-v%{version}
|
2022-01-11 13:07:56 +00:00
|
|
|
BuildRequires: hicolor-icon-theme
|
2020-05-10 13:56:26 +00:00
|
|
|
BuildRequires: meson >= 0.48
|
2020-03-03 08:51:28 +00:00
|
|
|
BuildRequires: pkgconfig
|
2022-12-28 12:43:28 +00:00
|
|
|
BuildRequires: update-desktop-files
|
2018-03-19 13:28:50 +00:00
|
|
|
BuildRequires: pkgconfig(libavcodec)
|
2021-09-01 11:08:44 +00:00
|
|
|
BuildRequires: pkgconfig(libavdevice)
|
2018-03-19 13:28:50 +00:00
|
|
|
BuildRequires: pkgconfig(libavformat)
|
2022-01-11 13:07:56 +00:00
|
|
|
BuildRequires: pkgconfig(libusb-1.0)
|
2020-03-03 08:51:28 +00:00
|
|
|
BuildRequires: pkgconfig(sdl2)
|
2024-03-03 21:10:35 +00:00
|
|
|
Requires: android-tools
|
2023-03-17 17:40:36 +00:00
|
|
|
%if 0%{?suse_version} <= 1500
|
|
|
|
BuildRequires: gcc11
|
2023-06-22 18:24:41 +00:00
|
|
|
BuildRequires: gcc11-PIE
|
2023-03-17 17:40:36 +00:00
|
|
|
%else
|
|
|
|
BuildRequires: gcc
|
|
|
|
%endif
|
2022-06-17 09:07:38 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
This application provides display and control of Android devices
|
|
|
|
connected on USB. It does not require any root access.
|
2018-03-19 13:28:50 +00:00
|
|
|
|
2022-03-19 09:33:11 +00:00
|
|
|
%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.
|
|
|
|
|
2018-03-19 13:28:50 +00:00
|
|
|
%prep
|
2022-06-17 09:07:38 +00:00
|
|
|
%autosetup -p1
|
2018-03-19 13:28:50 +00:00
|
|
|
|
|
|
|
%build
|
2023-03-17 17:40:36 +00:00
|
|
|
%if 0%{?suse_version} <= 1500
|
|
|
|
export CC=gcc-11
|
|
|
|
%endif
|
|
|
|
|
2022-06-17 09:07:38 +00:00
|
|
|
%meson -Dprebuilt_server='%{SOURCE1}'
|
2018-03-19 13:28:50 +00:00
|
|
|
%meson_build
|
|
|
|
|
|
|
|
%install
|
2021-04-24 16:45:57 +00:00
|
|
|
%meson_install
|
2018-03-19 13:28:50 +00:00
|
|
|
|
2022-12-28 12:43:28 +00:00
|
|
|
%suse_update_desktop_file scrcpy Network
|
|
|
|
%suse_update_desktop_file scrcpy-console Network
|
|
|
|
|
2018-03-19 13:28:50 +00:00
|
|
|
%files
|
|
|
|
%license LICENSE
|
2023-06-22 18:24:41 +00:00
|
|
|
%doc README.md FAQ.md doc/*
|
2018-03-19 13:28:50 +00:00
|
|
|
%{_bindir}/%{name}
|
|
|
|
%{_datadir}/%{name}
|
2020-03-03 08:51:28 +00:00
|
|
|
%{_mandir}/man1/%{name}.1%{?ext_man}
|
2022-12-28 12:43:28 +00:00
|
|
|
%{_datadir}/applications/scrcpy{,-console}.desktop
|
2022-01-11 13:07:56 +00:00
|
|
|
%{_datadir}/icons/hicolor/*/apps/scrcpy.png
|
2018-03-19 13:28:50 +00:00
|
|
|
|
2022-03-19 09:33:11 +00:00
|
|
|
%files bash-completion
|
|
|
|
%{_datadir}/bash-completion/completions/scrcpy
|
|
|
|
|
|
|
|
%files zsh-completion
|
|
|
|
%{_datadir}/zsh/site-functions/_scrcpy
|
|
|
|
|
2018-03-19 13:28:50 +00:00
|
|
|
%changelog
|