65 lines
1.7 KiB
RPMSpec
65 lines
1.7 KiB
RPMSpec
Summary: LibreSchool Client Local Admin Users
|
|
Name: libreschool-adminusers
|
|
Version: 1.0.3
|
|
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.3-1.ns7
|
|
- Fix password setting
|
|
|
|
* 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
|