File luksipc.spec of Package luksipc

#
# spec file for package luksipc 
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/
#

Summary:   LUKS In-Place Conversion Tool
Name:      luksipc
Version:   0.04
Release:   0
License:   GPL-3.0
Group:     System/Filesystems
Source:    https://www.johannes-bauer.com/linux/luksipc/luksipc-0.04.tar.gz 
Source1:   html-20120727.tar.bz2
Url:       https://www.johannes-bauer.com/linux/luksipc/
BuildRoot: %{_tmppath}/%{name}-%{version}-build

%description
luksipc is a tool to convert (unencrypted) block devices to (encrypted) LUKS
devices in-place.  This means the conversion is performed without the need
of copying all data somewhere else, creating a LUKS container, creating a
new filesystem on the mapped LUKS device, and copying all data back. 
Instead, the process is reduced to:

- unmounting the filesystem 
- resizing the filesystem to shrink about 2 megabytes
  (1028 kB for current LUKS versions to be precise) 
- running luksipc 
- adding custom keys to the LUKS keyring 

%prep
%setup -q -a 1

%build
make CC="%__cc $RPM_OPT_FLAGS"

%install
install -D -m 755 luksipc ${RPM_BUILD_ROOT}%_bindir/luksipc

%files
%defattr(-,root,root)
%doc ChangeLog html
%{_bindir}/luksipc

%changelog
openSUSE Build Service is sponsored by