Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:MaxxedSUSE:Emulators
rustdesk-server
rustdesk-server.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File rustdesk-server.spec of Package rustdesk-server
# # spec file for package rustdesk-server # # Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # Name: rustdesk-server Version: 1.1.11~1 Release: 0 Summary: RustDesk Server Program License: AGPL-3.0-only Group: Productivity/Networking/Other URL: https://rustdesk.com/ Source0: %{name}-%{version}.tar.xz Source1: vendor.tar.xz Source2: cargo_config Source3: system-user-rustdesk.conf Source10: %{name}.firewalld Source11: %{name}-hbbs.service Source12: %{name}-hbbr.service Source13: %{name}.logrotate BuildRequires: firewall-macros BuildRequires: cargo-packaging BuildRequires: rust BuildRequires: sysuser-tools Requires(pre): user(rustdesk) Requires(pre): group(rustdesk) #!BuildIgnore: user(rustdesk) #!BuildIgnore: group(rustdesk) %description Self-host your own RustDesk server, it is free and open source. %package -n system-user-rustdesk Summary: System user and group for rustdesk-server BuildArch: noarch #Provides: user(rustdesk) #Provides: group(rustdesk) %{sysusers_requires} %description -n system-user-rustdesk %summary. %prep %autosetup -a1 if ! [ -d ".cargo" ]; then mkdir .cargo fi cp %{SOURCE2} .cargo/config %build %sysusers_generate_pre %{SOURCE3} rustdesk system-user-rustdesk.conf %{cargo_build} %install %{cargo_install} --frozen install -d %{buildroot}%{_sharedstatedir}/%{name} # sysuser install -D -m 0644 %{SOURCE3} %{buildroot}%{_sysusersdir}/system-user-rustdesk.conf # firewalld install -d %{buildroot}%{_libexecdir}/firewalld/services/ install -D -m 0644 %{SOURCE10} %{buildroot}%{_libexecdir}/firewalld/services/%{name}.xml # systemd install -D -m 644 %{SOURCE11} %{buildroot}%{_unitdir}/%{name}-hbbs.service install -D -m 644 %{SOURCE12} %{buildroot}%{_unitdir}/%{name}-hbbr.service mkdir -p %{buildroot}%{_sbindir} ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rcrustdesk-server-hbbs ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rcrustdesk-server-hbbr # logdir + logrotate install -d %{buildroot}%{_localstatedir}/log/%{name}/ install -Dm644 %{SOURCE13} %{buildroot}%{_sysconfdir}/logrotate.d/%{name} %check %{cargo_test} %pre -n system-user-rustdesk -f rustdesk.pre %pre %service_add_pre rustdesk-server-hbbs.service %service_add_pre rustdesk-server-hbbr.service %post %service_add_post rustdesk-server-hbbs.service %service_add_post rustdesk-server-hbbr.service %firewalld_reload %preun %service_del_preun rustdesk-server-hbbs.service %service_del_preun rustdesk-server-hbbr.service %postun %service_del_postun rustdesk-server-hbbs.service %service_del_postun rustdesk-server-hbbr.service %files %license LICENSE %doc README.md %{_bindir}/hbbr %{_bindir}/hbbs %{_bindir}/rustdesk-utils %dir %{_libexecdir}/firewalld %dir %{_libexecdir}/firewalld/services %config(noreplace) %{_libexecdir}/firewalld/services/%{name}.xml %config(noreplace) %{_sysconfdir}/logrotate.d/%{name} %{_unitdir}/%{name}-hbbs.service %{_unitdir}/%{name}-hbbr.service %{_sbindir}/rcrustdesk-server-hbbs %{_sbindir}/rcrustdesk-server-hbbr %{_localstatedir}/log/%{name}/ #%%defattr(664,rustdesk,rustdesk,775) #%%{_sharedstatedir}/%%{name} %files -n system-user-rustdesk %defattr(-,root,root) %dir %attr(775,rustdesk,rustdesk) %{_sharedstatedir}/%{name} %{_sysusersdir}/system-user-rustdesk.conf %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor