libreschool-adminusers/libreschool-adminusers.spec
Paolo Asperti a7051f1cb8
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
Added full name / Support for libreschool-pxeserver
2020-03-30 17:42:10 +02:00

62 lines
1.6 KiB
RPMSpec

Summary: LibreSchool Client Local Admin Users
Name: libreschool-adminusers
Version: 1.0.2
Release: 1.ns7
License: GPL
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-root
Source0: %{name}-%{version}.tar.gz
Source1: COPYING
URL: %{url_prefix}/%{name}
Requires: libreschool-release
Requires: libreschool-client-manager
Requires(post): systemd
Requires(preun): systemd
Requires(postun): systemd
BuildRequires: nethserver-devtools
BuildRequires: systemd
%description
LibreSchool Client Local Admin Users
%prep
%setup
%build
%install
rm -rf $RPM_BUILD_ROOT
(cd root ; find . -depth -not -name '*.orig' -print | cpio -dump $RPM_BUILD_ROOT)
%{genfilelist} $RPM_BUILD_ROOT > %{name}-%{version}-%{release}-filelist
echo "%doc COPYING" >> %{name}-%{version}-%{release}-filelist
%files -f %{name}-%{version}-%{release}-filelist
%defattr(-,root,root)
%post
/etc/e-smith/events/actions/initialize-default-databases
/sbin/e-smith/expand-template /etc/ansible/reconfigure_clients.yml
/sbin/e-smith/expand-template /srv/ipxe/default_preseed.txt
%postun
#if [ "$1" = 1 ]; then
# #upgrade
#fi
if [ "$1" = 0 ]; then
#uninstallation
/sbin/e-smith/db configuration delete adminusers
/sbin/e-smith/expand-template /etc/ansible/reconfigure_clients.yml
/sbin/e-smith/expand-template /srv/ipxe/default_preseed.txt
fi
%changelog
* Mon Mar 30 2020 Paolo Asperti <paolo@asperti.com> - 1.0.2-1.ns7
- Added full name
- Support for libreschool-pxeserver
* Sun Mar 8 2020 Paolo Asperti <paolo@asperti.com> - 1.0.1-1.ns7
- First round of fixes
* Sun Mar 8 2020 Paolo Asperti <paolo@asperti.com> - 1.0.0-1.ns7
- First release