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

Summary:   LUKS In-Place Conversion Tool
Name:      luksipc
Version:   0.04
Release:   0
License:   GPL-3.0
Group:     System/Filesystems
Source1:   html-20120727.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build

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 

%setup -q -a 1

make CC="%__cc $RPM_OPT_FLAGS"

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

%doc ChangeLog html

openSUSE Build Service is sponsored by