Skip to content

Instantly share code, notes, and snippets.

@truatpasteurdotfr
Created June 10, 2020 19:36
Show Gist options
  • Save truatpasteurdotfr/d2b6033b7256389584895a4fbea38165 to your computer and use it in GitHub Desktop.
Save truatpasteurdotfr/d2b6033b7256389584895a4fbea38165 to your computer and use it in GitHub Desktop.
# -*- rpm-spec -*-
Summary: Open source computer monitoring and classroom management
Name: veyon
Version: 4.4.0
Release: 1%{?dist}
License: GPLv2
Group: unknown
Vendor: Veyon Solutions
# ~/rpmbuild/SOURCES/veyon-4.3.5-src.tar.bz2
Source: %{name}-%{version}-src.tar.bz2
#Source: %{name}-%{version}.tar.gz
Requires: qca-qt5-ossl
# CentOS-7 cmake is cmake3
BuildRequires: cmake3
BuildRequires: cyrus-sasl-devel
BuildRequires: devtoolset-7-gcc-c++
BuildRequires: libXcomposite-devel
BuildRequires: libXcursor-devel
BuildRequires: libXdamage-devel
BuildRequires: libXfixes-devel
BuildRequires: libXinerama-devel
BuildRequires: libXrandr-devel
BuildRequires: libXrandr-devel
BuildRequires: libXtst-devel
BuildRequires: libjpeg-turbo-devel
BuildRequires: lzo-devel
BuildRequires: make
BuildRequires: openldap-devel
BuildRequires: openssl-devel
BuildRequires: pam-devel
BuildRequires: procps-devel
BuildRequires: qca-qt5-devel
BuildRequires: qt5-qtquickcontrols2-devel
BuildRequires: rpm-build
BuildRequires: zlib-devel
%description
Open source computer monitoring and classroom management software
Veyon is a free and open source software for computer monitoring and classroom
management supporting Windows and Linux. It enables teachers to view and control
computer labs and interact with students. Veyon is available in many different
languages and provides numerous features supporting teachers and administrators
at their daily work:
.
* Overview: monitor all computers in one or multiple locations or classrooms
* Remote access: view or control computers to watch and support users
* Demo: broadcast the teacher's screen in realtime (fullscreen/window)
* Screen lock: draw attention to what matters right now
* Communication: send text messages to students
* Start and end lessons: log in and log out users all at once
* Screenshots: record learning progress and document infringements
* Programs & websites: launch programs and open website URLs remotely
* Teaching material: distribute and open documents, images and videos easily
* Administration: power on/off and reboot computers remotely
%prep
%setup -q -n %{name}-%{version}
%build
cat <<"EOF" >runme.sh
mkdir buildir
cd buildir
%{cmake3} ..
%{make_build}
EOF
chmod +x runme.sh
scl enable devtoolset-7 ./runme.sh
%install
if [ -e $RPM_BUILD_ROOT ];
then
rm -rf $RPM_BUILD_ROOT
fi
export DESTDIR=%{buildroot}
cd buildir && %{make_install}
%files
%defattr(-,root,root,-)
"/usr/bin/veyon-auth-helper"
"/usr/bin/veyon-cli"
"/usr/bin/veyon-configurator"
"/usr/bin/veyon-master"
"/usr/bin/veyon-server"
"/usr/bin/veyon-service"
"/usr/bin/veyon-worker"
"/usr/lib64/veyon/authkeys.so"
"/usr/lib64/veyon/builtin-x11vnc-server.so"
"/usr/lib64/veyon/builtindirectory.so"
"/usr/lib64/veyon/config.so"
"/usr/lib64/veyon/demo.so"
"/usr/lib64/veyon/desktopservices.so"
"/usr/lib64/veyon/external-vnc-server.so"
"/usr/lib64/veyon/filetransfer.so"
"/usr/lib64/veyon/ldap.so"
"/usr/lib64/veyon/libkldap-light.so"
"/usr/lib64/veyon/libldap-common.so"
"/usr/lib64/veyon/libveyon-core.so"
"/usr/lib64/veyon/linux-platform.so"
"/usr/lib64/veyon/powercontrol.so"
"/usr/lib64/veyon/remoteaccess.so"
"/usr/lib64/veyon/screenlock.so"
"/usr/lib64/veyon/screenshot.so"
"/usr/lib64/veyon/servicecontrol.so"
"/usr/lib64/veyon/shell.so"
"/usr/lib64/veyon/systemusergroups.so"
"/usr/lib64/veyon/textmessage.so"
"/usr/lib64/veyon/usersessioncontrol.so"
"/usr/share/veyon/translations/veyon.qm"
"/usr/share/veyon/translations/veyon_ar.qm"
"/usr/share/veyon/translations/veyon_bg.qm"
"/usr/share/veyon/translations/veyon_ca_ES.qm"
"/usr/share/veyon/translations/veyon_cs.qm"
"/usr/share/veyon/translations/veyon_de.qm"
"/usr/share/veyon/translations/veyon_el.qm"
"/usr/share/veyon/translations/veyon_es_ES.qm"
"/usr/share/veyon/translations/veyon_fa.qm"
"/usr/share/veyon/translations/veyon_fr.qm"
"/usr/share/veyon/translations/veyon_he.qm"
"/usr/share/veyon/translations/veyon_hu.qm"
"/usr/share/veyon/translations/veyon_id.qm"
"/usr/share/veyon/translations/veyon_it.qm"
"/usr/share/veyon/translations/veyon_ja.qm"
"/usr/share/veyon/translations/veyon_ko.qm"
"/usr/share/veyon/translations/veyon_lt.qm"
"/usr/share/veyon/translations/veyon_lv.qm"
"/usr/share/veyon/translations/veyon_mn.qm"
"/usr/share/veyon/translations/veyon_nl.qm"
"/usr/share/veyon/translations/veyon_no_NO.qm"
"/usr/share/veyon/translations/veyon_pl.qm"
"/usr/share/veyon/translations/veyon_pt_BR.qm"
"/usr/share/veyon/translations/veyon_pt_PT.qm"
"/usr/share/veyon/translations/veyon_ru.qm"
"/usr/share/veyon/translations/veyon_sl.qm"
"/usr/share/veyon/translations/veyon_sr.qm"
"/usr/share/veyon/translations/veyon_sv.qm"
"/usr/share/veyon/translations/veyon_th.qm"
"/usr/share/veyon/translations/veyon_tr.qm"
"/usr/share/veyon/translations/veyon_uk.qm"
"/usr/share/veyon/translations/veyon_vi.qm"
"/usr/share/veyon/translations/veyon_zh_CN.qm"
"/usr/share/veyon/translations/veyon_zh_TW.qm"
%config "/lib/systemd/system/veyon.service"
%config "/usr/share/applications/veyon-master.desktop"
%config "/usr/share/pixmaps/veyon-master.xpm"
%config "/usr/share/icons/hicolor/48x48/apps/veyon-master.png"
%config "/usr/share/icons/hicolor/scalable/apps/veyon-master.svg"
%config "/usr/share/applications/veyon-configurator.desktop"
%config "/usr/share/pixmaps/veyon-configurator.xpm"
%config "/usr/share/icons/hicolor/48x48/apps/veyon-configurator.png"
%config "/usr/share/icons/hicolor/scalable/apps/veyon-configurator.svg"
%config "/usr/share/polkit-1/actions/io.veyon.veyon-configurator.policy"
%changelog
* Wed Jun 10 2020 Tru Huynh <[email protected]> - 4.4.0-1
- upgrade to 4.4.0
* Sat Jun 6 2020 Tru Huynh <[email protected]> - 4.3.5-1
- initial release/adapted from cpack3 generated spec file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment