2019-08-06 16:23:57 +02:00
|
|
|
#
|
|
|
|
# spec file for package clone-master-clean-up
|
|
|
|
#
|
2024-06-11 13:15:59 +02:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2019-08-06 16:23:57 +02:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2019-10-08 15:31:37 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2019-08-06 16:23:57 +02:00
|
|
|
#
|
|
|
|
|
2019-10-08 15:31:37 +02:00
|
|
|
|
2019-08-06 16:23:57 +02:00
|
|
|
Name: clone-master-clean-up
|
2024-06-11 13:15:59 +02:00
|
|
|
Version: 1.12
|
2019-08-06 16:23:57 +02:00
|
|
|
Release: 0
|
2019-10-08 15:31:37 +02:00
|
|
|
Summary: Tool to clean up a system for cloning preparation
|
|
|
|
License: GPL-2.0-or-later
|
2019-08-06 16:23:57 +02:00
|
|
|
Group: System/Management
|
2020-08-17 17:20:06 +02:00
|
|
|
URL: https://www.suse.com
|
2019-08-06 16:23:57 +02:00
|
|
|
Source0: clone-master-clean-up.sh
|
|
|
|
Source1: clone-master-clean-up.1
|
|
|
|
Source2: sysconfig.clone-master-clean-up
|
|
|
|
Source3: custom_remove.template
|
2019-08-07 15:07:45 +02:00
|
|
|
Source10: LICENSE
|
|
|
|
Source11: README.md
|
2019-08-06 16:23:57 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2019-10-08 15:31:37 +02:00
|
|
|
Requires: coreutils
|
|
|
|
Requires: curl
|
|
|
|
Requires: sed
|
|
|
|
Requires: systemd
|
2019-08-06 16:23:57 +02:00
|
|
|
Requires(post): %fillup_prereq
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%if ! %{defined _fillupdir}
|
|
|
|
%define _fillupdir /var/adm/fillup-templates
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%description
|
2019-10-08 15:31:37 +02:00
|
|
|
A tool to clean up a system for cloning preparation by cleaning up
|
|
|
|
usage history and log files, etc.
|
2019-08-06 16:23:57 +02:00
|
|
|
|
|
|
|
%prep
|
|
|
|
|
|
|
|
%build
|
2019-08-07 15:07:45 +02:00
|
|
|
cp %{S:10} %{S:11} .
|
2019-08-06 16:23:57 +02:00
|
|
|
|
|
|
|
%install
|
|
|
|
mkdir -p %{buildroot}%{_sbindir}
|
|
|
|
install -m700 %{S:0} %{buildroot}/%{_sbindir}/clone-master-clean-up
|
|
|
|
# manpage
|
|
|
|
mkdir -p %{buildroot}%{_mandir}/man1
|
|
|
|
install -m644 %{S:1} %{buildroot}/%{_mandir}/man1/clone-master-clean-up.1
|
|
|
|
# sysconfig file
|
|
|
|
mkdir -p %{buildroot}%{_fillupdir}
|
|
|
|
install -m644 %{S:2} %{buildroot}/%{_fillupdir}/sysconfig.clone-master-clean-up
|
|
|
|
# template
|
|
|
|
mkdir -p %{buildroot}/%{_datadir}/%{name}/
|
|
|
|
install -m644 %{S:3} %{buildroot}/%{_datadir}/%{name}/custom_remove.template
|
|
|
|
# custom_remove file location
|
|
|
|
mkdir -p %{buildroot}/%{_sysconfdir}/%{name}/
|
|
|
|
|
|
|
|
%post
|
|
|
|
%fillup_only -n clone-master-clean-up
|
|
|
|
|
|
|
|
%files
|
2019-10-08 19:54:05 +02:00
|
|
|
%doc README.md
|
|
|
|
%license LICENSE
|
2019-08-06 16:23:57 +02:00
|
|
|
%{_sbindir}/*
|
|
|
|
%{_mandir}/man1/*
|
2019-08-07 15:07:45 +02:00
|
|
|
%{_fillupdir}/*
|
2019-08-06 16:23:57 +02:00
|
|
|
%dir %{_datadir}/%{name}
|
|
|
|
%dir %{_sysconfdir}/%{name}
|
2019-08-07 15:07:45 +02:00
|
|
|
%{_datadir}/%{name}/custom_remove.template
|
2019-08-06 16:23:57 +02:00
|
|
|
%ghost %config %{_sysconfdir}/%{name}/custom_remove
|
2019-10-08 15:31:37 +02:00
|
|
|
|
|
|
|
%changelog
|