| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| Name: clone-master-clean-up |
| Version: 1.12 |
| Release: 0 |
| Summary: Tool to clean up a system for cloning preparation |
| License: GPL-2.0-or-later |
| Group: System/Management |
| URL: https://www.suse.com |
| Source0: clone-master-clean-up.sh |
| Source1: clone-master-clean-up.1 |
| Source2: sysconfig.clone-master-clean-up |
| Source3: custom_remove.template |
| Source10: LICENSE |
| Source11: README.md |
| BuildRoot: %{_tmppath}/%{name}-%{version}-build |
| Requires: coreutils |
| Requires: curl |
| Requires: sed |
| Requires: systemd |
| Requires(post): %fillup_prereq |
| BuildArch: noarch |
| |
| %if ! %{defined _fillupdir} |
| %define _fillupdir /var/adm/fillup-templates |
| %endif |
| |
| %description |
| A tool to clean up a system for cloning preparation by cleaning up |
| usage history and log files, etc. |
| |
| %prep |
| |
| %build |
| cp %{S:10} %{S:11} . |
| |
| %install |
| mkdir -p %{buildroot}%{_sbindir} |
| install -m700 %{S:0} %{buildroot}/%{_sbindir}/clone-master-clean-up |
| |
| mkdir -p %{buildroot}%{_mandir}/man1 |
| install -m644 %{S:1} %{buildroot}/%{_mandir}/man1/clone-master-clean-up.1 |
| |
| mkdir -p %{buildroot}%{_fillupdir} |
| install -m644 %{S:2} %{buildroot}/%{_fillupdir}/sysconfig.clone-master-clean-up |
| |
| mkdir -p %{buildroot}/%{_datadir}/%{name}/ |
| install -m644 %{S:3} %{buildroot}/%{_datadir}/%{name}/custom_remove.template |
| |
| mkdir -p %{buildroot}/%{_sysconfdir}/%{name}/ |
| |
| %post |
| %fillup_only -n clone-master-clean-up |
| |
| %files |
| %doc README.md |
| %license LICENSE |
| %{_sbindir}/* |
| %{_mandir}/man1/* |
| %{_fillupdir}/* |
| %dir %{_datadir}/%{name} |
| %dir %{_sysconfdir}/%{name} |
| %{_datadir}/%{name}/custom_remove.template |
| %ghost %config %{_sysconfdir}/%{name}/custom_remove |
| |
| %changelog |