2018-03-19 14:28:50 +01:00
|
|
|
#
|
|
|
|
# spec file for package scrcpy
|
|
|
|
#
|
2022-03-19 10:33:11 +01:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2018-03-19 14:28:50 +01: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 09:51:28 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2018-03-19 14:28:50 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: scrcpy
|
2022-03-19 10:33:11 +01:00
|
|
|
Version: 1.23
|
2018-03-19 14:28:50 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: Display and control your Android device
|
|
|
|
License: Apache-2.0
|
|
|
|
Group: Hardware/Mobile
|
2020-03-03 09:51:28 +01:00
|
|
|
URL: https://github.com/Genymobile/scrcpy
|
2020-06-02 18:09:28 +02:00
|
|
|
Source0: %{name}-%{version}.tar.xz
|
2020-03-03 09:51:28 +01:00
|
|
|
Source1: https://github.com/Genymobile/scrcpy/releases/download/v%{version}/scrcpy-server-v%{version}
|
2018-03-19 14:28:50 +01:00
|
|
|
BuildRequires: gcc
|
2022-01-11 14:07:56 +01:00
|
|
|
BuildRequires: hicolor-icon-theme
|
2020-05-10 15:56:26 +02:00
|
|
|
BuildRequires: meson >= 0.48
|
2020-03-03 09:51:28 +01:00
|
|
|
BuildRequires: pkgconfig
|
2018-03-19 14:28:50 +01:00
|
|
|
BuildRequires: pkgconfig(libavcodec)
|
2021-09-01 13:08:44 +02:00
|
|
|
BuildRequires: pkgconfig(libavdevice)
|
2018-03-19 14:28:50 +01:00
|
|
|
BuildRequires: pkgconfig(libavformat)
|
2022-01-11 14:07:56 +01:00
|
|
|
BuildRequires: pkgconfig(libusb-1.0)
|
2020-03-03 09:51:28 +01:00
|
|
|
BuildRequires: pkgconfig(sdl2)
|
2018-03-19 14:28:50 +01:00
|
|
|
|
2022-03-19 10:33:11 +01: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 14:28:50 +01:00
|
|
|
%description
|
|
|
|
This application provides display and control of Android devices connected on USB. It does not require any root access
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
|
|
|
%meson \
|
2020-03-03 09:51:28 +01:00
|
|
|
-Dprebuilt_server='%{SOURCE1}'
|
2018-03-19 14:28:50 +01:00
|
|
|
|
|
|
|
%meson_build
|
|
|
|
|
|
|
|
%install
|
2021-04-24 18:45:57 +02:00
|
|
|
%meson_install
|
2018-03-19 14:28:50 +01:00
|
|
|
|
|
|
|
%files
|
|
|
|
%license LICENSE
|
2020-03-03 09:51:28 +01:00
|
|
|
%doc README.md DEVELOP.md FAQ.md
|
2018-03-19 14:28:50 +01:00
|
|
|
%{_bindir}/%{name}
|
|
|
|
%{_datadir}/%{name}
|
2020-03-03 09:51:28 +01:00
|
|
|
%{_mandir}/man1/%{name}.1%{?ext_man}
|
2022-01-11 14:07:56 +01:00
|
|
|
%{_datadir}/icons/hicolor/*/apps/scrcpy.png
|
2018-03-19 14:28:50 +01:00
|
|
|
|
2022-03-19 10:33:11 +01:00
|
|
|
%files bash-completion
|
|
|
|
%{_datadir}/bash-completion/completions/scrcpy
|
|
|
|
|
|
|
|
%files zsh-completion
|
|
|
|
%{_datadir}/zsh/site-functions/_scrcpy
|
|
|
|
|
2018-03-19 14:28:50 +01:00
|
|
|
%changelog
|