File dolly.spec of Package dolly

# spec file for package dolly
# Copyright (c) 2021 SUSE LLC
# 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.

# Please submit bugfixes or comments via

%define vers 0.63.4

Name:           dolly
Summary:        Tool for cloning the installation of one machine to other machines
License:        GPL-2.0-only
Group:          Productivity/Networking/Other
Version:        %vers
Release:        0
Source1:        dolly.conf

#SLE15* does not contain pandoc packages
%if 0%{?is_opensuse}
%ifnarch i586
BuildRequires:  pandoc
Requires:       gzip

Dolly is used to clone the installation of one machine to
(possibly many) other machines. It can distribute image files
(even gnu-zipped), partitions or whole hard disk drives to
other partitions or hard disk drives. As it forms a "virtual TCP
ring" to distribute data, it works best with fast switched
networks (a 2 GB Windows NT partition clone
to 15 machines over Gigabit Ethernet was originally measured
to be less than 4 minutes).

As dolly clones whole partitions block-wise, it works for most
filesystems, including the types for Linux, Windows NT, Oberon,

%autosetup -p1
#mv %{name}-%{version}/* .
#rmdir %{name}-%{commit}/

make %{?_smp_mflags}
%if 0%{?is_opensuse}
%ifnarch i586
pandoc --standalone -t man %{SOURCE2} -o dolly.1
gzip dolly.1

install -D -m 755 $RPM_BUILD_DIR/%{name}-%{version}/dolly %{buildroot}%{_sbindir}/dolly
install -D -m 644  %{SOURCE1} %{buildroot}%{_sysconfdir}/%{name}.conf
%if 0%{?is_opensuse}
%ifnarch i586
install -D -m 644 dolly.1.gz %{buildroot}%{_mandir}/man1/dolly.1.gz

%doc dolly.example
%attr(755,root,root) %{_sbindir}/dolly
%attr(644,root,root) %config(noreplace) %{_sysconfdir}/%{name}.conf
%if 0%{?is_opensuse}
%ifnarch i586

openSUSE Build Service is sponsored by