diff --git a/README.md b/README.md index 303d5cf..85330a7 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # scrcpy +Display and control your Android device. + diff --git a/scrcpy-server-v2.4 b/scrcpy-server-v2.4 new file mode 100644 index 0000000..1d867f8 Binary files /dev/null and b/scrcpy-server-v2.4 differ diff --git a/scrcpy.spec b/scrcpy.spec new file mode 100644 index 0000000..cd36273 --- /dev/null +++ b/scrcpy.spec @@ -0,0 +1,64 @@ +Name: scrcpy +Version: 2.4 +Release: 1mamba +Summary: Display and control your Android device +Group: Applications/Multimedia +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://github.com/Genymobile/scrcpy +Source: https://github.com/Genymobile/scrcpy.git/v%{version}/scrcpy-%{version}.tar.bz2 +Source1: https://github.com/Genymobile/scrcpy/releases/download/v%{version}/scrcpy-server-v%{version} +License: Apache License 2.0 +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libSDL2-devel +BuildRequires: libavcodec-ffmpeg-devel +BuildRequires: libavdevice-ffmpeg-devel +BuildRequires: libavformat-ffmpeg-devel +BuildRequires: libavutil-ffmpeg-devel +BuildRequires: libswresample-ffmpeg-devel +BuildRequires: libusb-devel +## AUTOBUILDREQ-END +BuildRequires: meson +Requires: android-tools + +%description +Display and control your Android device. + +%debug_package + +%prep +%setup -q + +%build +%meson \ + -D b_lto=true \ + -D b_ndebug=true \ + -D prebuilt_server=%{SOURCE1} + +%meson_build + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%meson_install + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files +%defattr(-,root,root) +%{_bindir}/scrcpy +%{_datadir}/applications/scrcpy-console.desktop +%{_datadir}/applications/scrcpy.desktop +%dir %{_datadir}/scrcpy +%{_datadir}/scrcpy/scrcpy-server +%{_datadir}/bash-completion/completions/scrcpy +%{_datadir}/zsh/site-functions/_scrcpy +%{_datadir}/icons/hicolor/256x256/apps/scrcpy.png +%{_mandir}/man1/scrcpy.1* +%doc LICENSE + +%changelog +* Fri May 17 2024 Silvan Calarco 2.4-1mamba +- package created using the webbuild interface