File controlaula.spec of Package controlaula

#
# spec file for package controlaula
#
# 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.

# norootforbuild

Name:           controlaula
Summary:        Classroom management tool 
Version:        1.3.1
Release:        1
License:        GPL Version 2 or any later 
Group:          Productivity/Networking/Other 
Url:            http://www.itais.net/help/en/ 
Vendor:         openSUSE-Education
BuildRequires:  make autoconf automake gcc gcc-c++
BuildRequires:  gambas2-runtime
BuildRequires:  gambas2-gb-crypt
BuildRequires:  gambas2-gb-form
BuildRequires:  gambas2-gb-gui
BuildRequires:  gambas2-gb-net-curl
BuildRequires:  gambas2-gb-net
BuildRequires:  gambas2-gb-settings
BuildRequires:  gambas2-devel
%if 0%{?suse_version}
BuildRequires:  fdupes
BuildRequires:  update-desktop-files
%endif
Requires:       gambas2-runtime gambas2-gb-crypt gambas2-gb-form gambas2-gb-gtk
#Requires:       kdesktop, gambas2-gb-qt 
Requires:       gambas2-gb-gtk 
Requires:       kdeaddons
Requires:       gambas2-gb-gui
Requires:       gambas2-gb-net-curl
Requires:       gambas2-gb-settings
#Requires:       xvnc4viewer 
#Requires:        xtightvncviewer, vlc, libdvdplay0 
#Recommends:     libdvdnav4 zenity 
Recommends:     kdebase wakeonlan x11vnc 
Requires:       cups-client
Requires:       avahi-utils
#Requires:       sendfile
#Requires:       libnotify
#Requires:       mini-httpd
#Requires:       bittornado
Requires:       curl
#Requires:       gksu 
Recommends:     iptables
Suggests:       libdvdcss2 finger
Source0:        controlaula-1.3.1.orig.tar.bz2
#Patch0:         
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root

%description
ControlAula assists teachers in the management of a classroom with 
computers in the students desktops.
It also gives to the student tools to share files and work in groups
and send messages to the teacher or the other collegues.

This package has to be installed in the teacher pc and the students
workstations. When using LTSP this package must not be installed
inside the clients chroot.

Check the documentation for detailed instructions to set it up.

Author:
-------
    José L. Redrejo Rodríguez


%package -n ltsp-controlaula
Summary:        Classroom management tool with ltsp clients
Group:          Productivity/Networking/Other
Conflicts:      %name
Requires:       gambas2-runtime
Requires:       gambas2-gb-crypt
#Requires:       gambas2-gb-settings
Requires:       avahi-utils >= 0.6.16
Requires:       avahi-daemon >= 0.6.16
Requires:       vlc
Requires:       ldm
Requires:       sshfs >= 2.0-1
Requires:       iptables

%description -n ltsp-controlaula
ControlAula assists teachers in the management of a classroom with 
computers in the students desktops.
It also gives to the student tools to share files and work in groups
and send messages to the teacher or the other collegues.

When using LTSP this package must be installed in the clients chroot.

Author:
-------
    José L. Redrejo Rodríguez


%prep
%setup -q -n %{name}-%{version}.orig
#%patch0 -p1

%build
%configure
%__make %{?jobs:-j%{jobs}}

%install
%makeinstall
%suse_update_desktop_file -n controlaula Qt KDE Education X-KDE-Edu-Teaching
%if 0%{?suse_version}
%fdupes -s %{buildroot}
%endif
#mkdir -p %{buildroot}%{_sysconfdir}/init.d
mkdir -p %{buildroot}%{_datadir}/ldm/rc.d
mkdir -p %{buildroot}/var/cache/ltsp-localapps

%clean
rm -fr %buildroot

%files
%defattr(-,root,root)
%doc AUTHORS COPYING TODO
%dir %{_datadir}/controlaula
%config(noreplace) %{_sysconfdir}/xdg/autostart/startcontrolaula.desktop
%{_bindir}/*
%{_sbindir}/pwd_controlaula
%{_datadir}/applications/controlaula.desktop
%{_datadir}/controlaula/*
%{_datadir}/pixmaps/CA2pp.png

%files -n ltsp-controlaula
%defattr(-,root,root)
%dir /var/cache/ltsp-localapps
#%{_sysconfdir}/init.d
%dir %{_datadir}/ldm
%{_datadir}/ldm/rc.d


%changelog
openSUSE Build Service is sponsored by