scrcpy/scrcpy.spec

71 lines
1.9 KiB
RPMSpec
Raw Normal View History

Name: scrcpy
Version: 2.6
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-devel
BuildRequires: libavdevice-devel
BuildRequires: libavformat-devel
BuildRequires: libavutil-devel
BuildRequires: libswresample-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 Aug 02 2024 Automatic Build System <autodist@openmamba.org> 2.6-1mamba
- automatic version update by autodist
* Sun Jun 30 2024 Automatic Build System <autodist@openmamba.org> 2.5-1mamba
- automatic version update by autodist
* Fri May 17 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 2.4-1mamba
- package created using the webbuild interface