65 lines
1.7 KiB
RPMSpec
65 lines
1.7 KiB
RPMSpec
Name: scrcpy
|
|
Version: 2.4
|
|
Release: 1mamba
|
|
Summary: Display and control your Android device
|
|
Group: Applications/Multimedia
|
|
Vendor: openmamba
|
|
Distribution: openmamba
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
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 <silvan.calarco@mambasoft.it> 2.4-1mamba
|
|
- package created using the webbuild interface
|