[packages/scrcpy] new
atler
atler at pld-linux.org
Fri Dec 30 00:21:15 CET 2022
commit 35184efebb434442cb74a5e08cbec4d0265a716a
Author: Jan Palus <atler at pld-linux.org>
Date: Fri Dec 30 00:20:48 2022 +0100
new
scrcpy.spec | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 52 insertions(+)
---
diff --git a/scrcpy.spec b/scrcpy.spec
new file mode 100644
index 0000000..0387cdf
--- /dev/null
+++ b/scrcpy.spec
@@ -0,0 +1,52 @@
+Summary: Display and control your Android device
+Name: scrcpy
+Version: 1.25
+Release: 1
+License: Apache v2.0
+Group: Applications
+Source0: https://github.com/Genymobile/scrcpy/archive/v%{version}/%{name}-%{version}.tar.gz
+# Source0-md5: 1e2173b606870aa28d81265f634a31d4
+Source1: https://github.com/Genymobile/scrcpy/releases/download/v%{version}/%{name}-server-v%{version}
+# Source1-md5: f636d4bacae28c10943e44266bebc967
+URL: https://github.com/Genymobile/scrcpy
+BuildRequires: SDL2-devel >= 2.0.5
+BuildRequires: ffmpeg-devel
+BuildRequires: libusb-devel
+BuildRequires: meson >= 0.48
+BuildRequires: ninja
+BuildRequires: pkgconfig
+BuildRequires: rpmbuild(macros) >= 1.736
+Requires: SDL2 >= 2.0.5
+Requires: android-tools
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Display and control your Android device.
+
+%prep
+%setup -q
+cp -p %{SOURCE1} %{name}-server
+
+%build
+%meson build \
+ -Dprebuilt_server=%{name}-server
+
+%ninja_build -C build
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%ninja_install -C build
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/scrcpy
+%dir %{_datadir}/scrcpy
+%attr(755,root,root) %{_datadir}/scrcpy/scrcpy-server
+%{_desktopdir}/scrcpy.desktop
+%{_desktopdir}/scrcpy-console.desktop
+%{_iconsdir}/hicolor/256x256/apps/scrcpy.png
+%{_mandir}/man1/scrcpy.1*
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/scrcpy.git/commitdiff/35184efebb434442cb74a5e08cbec4d0265a716a
More information about the pld-cvs-commit
mailing list