## START: Set by rpmautospec ## (rpmautospec version 0.7.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 5; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec Name: ravada Version: 2.0.3 Release: %autorelease Summary: Remote Virtual Desktops Manager # AGPL-3.0-only: main program # Apache-2.0: public/css/sb-admin.css # public/js/main.js License: AGPL-3.0-only AND Apache-2.0 URL: https://ravada.upc.edu/ Source0: https://github.com/UPC/ravada/archive/v%{version}/%{name}-%{version}.tar.gz Source10: %{name}.sysusers BuildArch: noarch BuildRequires: make BuildRequires: perl-generators BuildRequires: perl-interpreter BuildRequires: perl(Authen::ModAuthPubTkt) BuildRequires: perl(Authen::Passphrase::SaltedDigest) BuildRequires: perl(Authen::Passphrase) BuildRequires: perl(base) BuildRequires: perl(Carp) BuildRequires: perl(Cwd) BuildRequires: perl(Data::Dumper) BuildRequires: perl(DateTime::Format::DateParse) BuildRequires: perl(DateTime) BuildRequires: perl(DBD::SQLite) BuildRequires: perl(DBIx::Connector) BuildRequires: perl(Digest::MD5) BuildRequires: perl(Digest::SHA) BuildRequires: perl(Encode::Locale) BuildRequires: perl(Encode) BuildRequires: perl(Exporter) BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 BuildRequires: perl(Fcntl) BuildRequires: perl(feature) BuildRequires: perl(File::Basename) BuildRequires: perl(File::Copy) BuildRequires: perl(File::Path) BuildRequires: perl(File::Rsync) BuildRequires: perl(Getopt::Long) BuildRequires: perl(Hash::Util) BuildRequires: perl(HTML::Lint) BuildRequires: perl(HTTP::Request) BuildRequires: perl(I18N::LangTags::Detect) BuildRequires: perl(Image::Magick) BuildRequires: perl(IO::Interface::Simple) BuildRequires: perl(IO::Interface) BuildRequires: perl(IO::Socket) BuildRequires: perl(IPC::Run3) BuildRequires: perl(JSON::XS) BuildRequires: perl(lib) BuildRequires: perl(Locale::Maketext::Lexicon) BuildRequires: perl(locale) BuildRequires: perl(LWP::UserAgent) BuildRequires: perl(MIME::Base64) BuildRequires: perl(Mojo::DOM) BuildRequires: perl(Mojo::File) BuildRequires: perl(Mojo::Home) BuildRequires: perl(Mojo::JSON) BuildRequires: perl(Mojo::UserAgent) BuildRequires: perl(Mojolicious::Lite) BuildRequires: perl(Mojolicious::Plugin::Config) BuildRequires: perl(Mojolicious::Plugin::I18N) BuildRequires: perl(Mojolicious) >= 7.01 BuildRequires: perl(Moose::Role) BuildRequires: perl(Moose::Util::TypeConstraints) BuildRequires: perl(Moose) BuildRequires: perl(MooseX::Types::NetAddr::IP) BuildRequires: perl(Net::DNS) BuildRequires: perl(Net::Domain) BuildRequires: perl(Net::LDAP::Entry) BuildRequires: perl(Net::LDAP::Util) BuildRequires: perl(Net::LDAP) BuildRequires: perl(Net::LDAPS) BuildRequires: perl(Net::OpenSSH) BuildRequires: perl(Net::Ping) BuildRequires: perl(NetAddr::IP) BuildRequires: perl(PBKDF2::Tiny) BuildRequires: perl(POSIX) BuildRequires: perl(Proc::PID::File) BuildRequires: perl(Socket) BuildRequires: perl(Storable) BuildRequires: perl(strict) BuildRequires: perl(Sys::Hostname) BuildRequires: perl(Sys::Statistics::Linux) BuildRequires: perl(Sys::Virt::Domain) BuildRequires: perl(Sys::Virt::Stream) BuildRequires: perl(Sys::Virt) BuildRequires: perl(Test::Mojo) BuildRequires: perl(Test::Moose::More) BuildRequires: perl(Test::More) BuildRequires: perl(Test::Perl::Critic) BuildRequires: perl(Time::HiRes) BuildRequires: perl(Time::Piece) BuildRequires: perl(URI::Escape) BuildRequires: perl(URI) BuildRequires: perl(vars) BuildRequires: perl(warnings) BuildRequires: perl(XML::LibXML) BuildRequires: perl(YAML) BuildRequires: systemd-rpm-macros # For tests BuildRequires: ImageMagick BuildRequires: iptables BuildRequires: libvirt BuildRequires: mariadb-common BuildRequires: qemu-img BuildRequires: wget Requires: iptables Requires: libvirt Requires: mariadb-common Requires: perl(Mojolicious::Plugin::Config) Requires: perl(Mojolicious::Plugin::I18N) Requires: perl(Mojolicious) >= 7.01 Requires: qemu-img Recommends: virt-viewer %description Ravada is a software that allows the user to connect to a remote virtual desktop. In the current release we use the KVM Hypervisors: KVM as the backend for the Virtual Machines. LXC support is currently in development. %prep %autosetup -p1 -n %{name}-%{version} # Fedora doesn't ship kvm-spice but qemu-kvm find . -type f -name "*.xml" -exec sed -i 's|kvm-spice|qemu-kvm|g' {} ';' %if 0%{?fedora} >= 38 || 0%{?rhel} >= 10 # For https://fedoraproject.org/wiki/Changes/ImageMagick7 sed -e 's/Image::Magick::Q16/Image::Magick::Q16HDRI/g' -i lib/Ravada.pm %endif %build perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 OPTIMIZE="$RPM_OPT_FLAGS" %make_build %install %make_install %{_fixperms} %{buildroot}/* install -Dpm 0755 script/rvd_front %{buildroot}%{_sbindir}/rvd_front install -Dpm 0755 script/rvd_back %{buildroot}%{_sbindir}/rvd_back install -Dpm 0644 etc/ravada.conf %{buildroot}%{_sysconfdir}/ravada.conf install -Dpm 0644 etc/rvd_front.conf.example %{buildroot}%{_sysconfdir}/rvd_front.conf install -Dpm 0644 etc/systemd/rvd_back.service %{buildroot}%{_unitdir}/rvd_back.service install -Dpm 0644 etc/systemd/rvd_front.service %{buildroot}%{_unitdir}/rvd_front.service mkdir -p %{buildroot}%{_localstatedir}/lib/%{name} cp -aR etc/xml %{buildroot}%{_localstatedir}/lib/%{name}/ mkdir -p %{buildroot}%{_datadir}/%{name} cp -aR public %{buildroot}%{_datadir}/%{name}/ cp -aR templates %{buildroot}%{_datadir}/%{name}/ # Remove empty files find %{buildroot} -size 0 -delete # Sysusers file install -Dpm 0644 %{SOURCE10} %{buildroot}%{_sysusersdir}/%{name}.conf %pre %sysusers_create_compat %{SOURCE10} %post %systemd_post rvd_back.service %systemd_post rvd_front.service %preun %systemd_preun rvd_back.service %systemd_preun rvd_front.service %postun %systemd_postun_with_restart rvd_back.service %systemd_postun_with_restart rvd_front.service %files %doc CHANGELOG.md CONTRIBUTING.md README.md sql %license LICENSE %{_sbindir}/rvd_back %{_sbindir}/rvd_front %{perl_vendorlib}/* %config(noreplace) %{_sysconfdir}/*.conf %{_datadir}/%{name}/ %{_localstatedir}/lib/%{name}/ %{_mandir}/man3/* %{_unitdir}/*.service %{_sysusersdir}/%{name}.conf %changelog ## START: Generated by rpmautospec * Fri Jul 19 2024 Fedora Release Engineering - 2.0.3-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Fri Jan 26 2024 Fedora Release Engineering - 2.0.3-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 2.0.3-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jul 21 2023 Fedora Release Engineering - 2.0.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Sun Mar 19 2023 Robert-André Mauchin - 2.0.3-1 - Update to 2.0.3 * Fri Jan 20 2023 Fedora Release Engineering - 1.8.3-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Jan 13 2023 Jitka Plesnikova - 1.8.3-3 - Remove perl(MODULE_COMPAT), it will be replaced by generators * Fri Jan 06 2023 Neal Gompa - 1.8.3-2 - Adapt for ImageMagick 7 on F38+ * Wed Dec 28 2022 Robert-André Mauchin - 1.8.3-1 - Update to 1.8.3 * Mon Dec 12 2022 Neal Gompa - 1.7.7-2 - Drop unneeded BR on perl(Image::Magick::Q16) * Sun Oct 23 2022 Robert-André Mauchin - 1.7.7-1 - Update to 1.7.7 * Sat Jul 23 2022 Fedora Release Engineering - 1.6.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Sun Jul 03 2022 Robert-André Mauchin - 1.6.0-3 - Remove failing tests * Sun Jul 03 2022 Robert-André Mauchin - 1.6.0-2 - Minor SPDX fix * Fri Jul 23 2021 Fedora Release Engineering - 1.0.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Mon May 24 2021 Jitka Plesnikova - 1.0.1-2 - Perl 5.34 re-rebuild updated packages * Mon May 24 2021 Robert-André Mauchin - 1.0.1-1 - Update to 1.0.1 - Close: rhbz#1953049 * Sat May 22 2021 Jitka Plesnikova - 0.11.4-2 - Perl 5.34 rebuild * Fri Mar 5 2021 Robert-André Mauchin - 0.11.4-1 - Update to 0.11.4 - Close: rhbz#1924142 * Tue Mar 02 2021 Zbigniew Jędrzejewski-Szmek - 0.10.5-3 - Rebuilt for updated systemd-rpm-macros See https://pagure.io/fesco/issue/2583. * Wed Jan 27 2021 Fedora Release Engineering - 0.10.5-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Sat Dec 26 2020 Robert-André Mauchin - 0.10.5-1 - Update to 0.10.5 - Close: rhbz#1906242 * Fri Dec 04 2020 Robert-André Mauchin - 0.10.2-2 - Fix archive upload * Fri Dec 04 2020 Robert-André Mauchin - 0.10.2-1 - Update to 0.10.2 - close: rhbz#1901770 * Sat Nov 14 2020 Robert-André Mauchin - 0.10.0-1 - Update to 0.10.0 - close: rhbz#1896685 * Mon Nov 09 2020 Robert-André Mauchin - 0.9.0-1 - Update to 0.9.0 - close: rhbz#1852587 * Sat Feb 22 2020 Robert-André Mauchin - 0.6.0-1 - Update to 0.6.0 * Tue Dec 17 2019 Robert-André Mauchin - 0.5.0-1 - Release 0.5.0 (#1784421) * Thu Aug 08 2019 Robert-André Mauchin - 0.4.8-1 - Release 0.4.8 * Fri Jul 26 2019 Fedora Release Engineering - 0.4.5-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Tue Jul 16 2019 Robert-André Mauchin - 0.4.5-1 - Release 0.4.5 * Mon Jun 10 2019 Robert-André Mauchin - 0.4.3-1 - Release 0.4.3 (#1716693) * Fri May 31 2019 Jitka Plesnikova - 0.4.1-2 - Perl 5.30 rebuild * Thu May 30 2019 Robert-André Mauchin - 0.4.1-1 - Release 0.4.1 (#1715450) * Mon May 27 2019 Robert-André Mauchin - 0.4.0-1 - Release 0.4.0 (#1714171) * Fri Apr 12 2019 Robert-André Mauchin - 0.3.5-1 - Release 0.3.5 (#1699383) * Thu Mar 14 2019 Robert-André Mauchin - 0.3.4-1 - Release 0.3.4 * Tue Feb 19 2019 Robert-André Mauchin - 0.3.3-1 - Release 0.3.3 * Sat Feb 02 2019 Fedora Release Engineering - 0.3.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Thu Nov 15 2018 Robert-André Mauchin - 0.3.2-1 - Release 0.3.2 * Wed Oct 24 2018 Robert-André Mauchin - 0.3.1-1 - Release 0.3.1 * Thu Oct 18 2018 Robert-André Mauchin - 0.3.0-1 - Release 0.3.0 * Wed Aug 01 2018 Robert-André Mauchin - 0.3.0-0.2.beta6 - Add missing BR for tests - Install rvd_benchmark_create * Fri Jul 27 2018 Robert-André Mauchin - 0.3.0-0.1.beta6 - Pre-release 0.3.0 beta6 * Sat Jul 14 2018 Fedora Release Engineering - 0.2.17-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Sat Jun 30 2018 Jitka Plesnikova - 0.2.17-2 - Perl 5.28 rebuild * Tue Jun 05 2018 Robert-André Mauchin - 0.2.17-1 - Release 0.2.17 * Fri Jun 01 2018 Robert-André Mauchin - 0.2.16-1 - Release 0.2.16 * Thu May 10 2018 Robert-André Mauchin - 0.2.15-1 - Release 0.2.15 * Mon Mar 19 2018 Robert-André Mauchin - 0.2.14-1 - Release 0.2.14 * Wed Feb 28 2018 Robert-André Mauchin - 0.2.13-2 - Fix incorrect kvm binary * Wed Feb 28 2018 Robert-André Mauchin - 0.2.13-1 - Release 0.2.13 - Fix rvd_back/rvd_front installation * Tue Feb 6 2018 Robert-André Mauchin - 0.2.13-0.1.20180117gitf70dfbf - Pre-release 0.2.13 * Tue Jan 16 2018 Robert-André Mauchin - 0.2.12-1 - Upstream release 0.2.12 * Mon Dec 04 2017 Robert-André Mauchin - 0.2.10-1 - Specfile autogenerated by cpanspec 1.78. ## END: Generated by rpmautospec