[packages/scrcpy] up to 2.0

atler atler at pld-linux.org
Sun Apr 9 18:20:56 CEST 2023


commit 4bba3dfff4ba511caf54b1dc098e9ffc44cdb779
Author: Jan Palus <atler at pld-linux.org>
Date:   Sun Apr 9 18:20:34 2023 +0200

    up to 2.0

 scrcpy.spec | 35 ++++++++++++++++++++++++++++++++---
 1 file changed, 32 insertions(+), 3 deletions(-)
---
diff --git a/scrcpy.spec b/scrcpy.spec
index 0387cdf..9d72dff 100644
--- a/scrcpy.spec
+++ b/scrcpy.spec
@@ -1,13 +1,13 @@
 Summary:	Display and control your Android device
 Name:		scrcpy
-Version:	1.25
+Version:	2.0
 Release:	1
 License:	Apache v2.0
 Group:		Applications
 Source0:	https://github.com/Genymobile/scrcpy/archive/v%{version}/%{name}-%{version}.tar.gz
-# Source0-md5:	1e2173b606870aa28d81265f634a31d4
+# Source0-md5:	7aaf3494112e8127cbafddcacf04d53d
 Source1:	https://github.com/Genymobile/scrcpy/releases/download/v%{version}/%{name}-server-v%{version}
-# Source1-md5:	f636d4bacae28c10943e44266bebc967
+# Source1-md5:	5ea87ea427c3fd63965db46a18342794
 URL:		https://github.com/Genymobile/scrcpy
 BuildRequires:	SDL2-devel >= 2.0.5
 BuildRequires:	ffmpeg-devel
@@ -15,6 +15,7 @@ BuildRequires:	libusb-devel
 BuildRequires:	meson >= 0.48
 BuildRequires:	ninja
 BuildRequires:	pkgconfig
+BuildRequires:	rpm-build >= 4.6
 BuildRequires:	rpmbuild(macros) >= 1.736
 Requires:	SDL2 >= 2.0.5
 Requires:	android-tools
@@ -23,6 +24,26 @@ BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 %description
 Display and control your Android device.
 
+%package -n bash-completion-scrcpy
+Summary:	bash-completion for scrcpy
+Group:		Applications/Shells
+Requires:	%{name} = %{version}-%{release}
+Requires:	bash-completion >= 1:2.0
+BuildArch:	noarch
+
+%description -n bash-completion-scrcpy
+bash-completion for scrcpy.
+
+%package -n zsh-completion-scrcpy
+Summary:	zsh-completion for scrcpy
+Group:		Applications/Shells
+Requires:	%{name} = %{version}-%{release}
+Requires:	zsh
+BuildArch:	noarch
+
+%description -n zsh-completion-scrcpy
+zsh-completion for scrcpy.
+
 %prep
 %setup -q
 cp -p %{SOURCE1} %{name}-server
@@ -50,3 +71,11 @@ rm -rf $RPM_BUILD_ROOT
 %{_desktopdir}/scrcpy-console.desktop
 %{_iconsdir}/hicolor/256x256/apps/scrcpy.png
 %{_mandir}/man1/scrcpy.1*
+
+%files -n bash-completion-scrcpy
+%defattr(644,root,root,755)
+%{bash_compdir}/scrcpy
+
+%files -n zsh-completion-scrcpy
+%defattr(644,root,root,755)
+%{zsh_compdir}/_scrcpy
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/scrcpy.git/commitdiff/4bba3dfff4ba511caf54b1dc098e9ffc44cdb779



More information about the pld-cvs-commit mailing list