60 lines
1.3 KiB
RPMSpec
60 lines
1.3 KiB
RPMSpec
Summary: LibreSchool Epoptes Management
|
|
Name: libreschool-epoptes
|
|
Version: 1.0.0
|
|
Release: 1.ns7
|
|
License: GPL
|
|
BuildArch: noarch
|
|
BuildRoot: %{_tmppath}/%{name}-root
|
|
Source0: %{name}-%{version}.tar.gz
|
|
Source1: LICENSE
|
|
URL: %{url_prefix}/%{name}
|
|
Requires: libreschool-release
|
|
Requires: libreschool-client-manager
|
|
Requires: perl-autodie
|
|
BuildRequires: nethserver-devtools
|
|
|
|
|
|
%description
|
|
LibreSchool epoptes customizations
|
|
|
|
|
|
%prep
|
|
%setup
|
|
|
|
|
|
%build
|
|
%{makedocs}
|
|
|
|
|
|
%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 LICENSE" >> %{name}-%{version}-%{release}-filelist
|
|
|
|
|
|
%files -f %{name}-%{version}-%{release}-filelist
|
|
%defattr(-,root,root)
|
|
|
|
|
|
%post
|
|
/sbin/e-smith/expand-template /etc/ansible/reconfigure_clients.yml
|
|
/sbin/e-smith/signal-event runlevel-adjust
|
|
/sbin/e-smith/signal-event firewall-adjust
|
|
|
|
%postun
|
|
#if [ "$1" = 1 ]; then
|
|
# #upgrade
|
|
#fi
|
|
if [ "$1" = 0 ]; then
|
|
#uninstallation
|
|
/sbin/e-smith/expand-template /etc/ansible/reconfigure_clients.yml
|
|
/sbin/e-smith/signal-event runlevel-adjust
|
|
/sbin/e-smith/signal-event firewall-adjust
|
|
fi
|
|
|
|
|
|
%changelog
|
|
* Mon Apr 27 2020 Paolo Asperti <paolo@asperti.com> - 1.0.0-1.ns7
|
|
- First release for NethServer 7
|