File dislocker.spec of Package dislocker

#
# spec file for package dislocker
#
# Copyright (c) 2016 SUSE LINUX Products 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/
#

Name:           dislocker
Version:        0.7.3
Release:        0
License:        GPL-2.0
Summary:        FUSE driver to read/write Windows' BitLocker-ed volumes under Linux / Mac OSX 
Url:            https://github.com/Aorimn/dislocker
Group:          BLAH
Source:         https://github.com/Aorimn/dislocker/archive/v%{version}/%{name}-%{version}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  cmake
%if 0%{?suse_version} >= 1315
BuildRequires:  mbedtls-devel
%else
BuildRequires:  polarssl-devel
%endif
BuildRequires:  fuse-devel
BuildRequires:  ruby-devel
#BuildRequires:  mbedtls-devel
%description
This software has been designed to read BitLocker encrypted partitions
under a Linux system. The driver used to only read volumes encrypted
under a Windows 7 system but see now its capabilities extended to:

Windows Vista, 7, 8, 8.1 and 10 encrypted partitions;
BitLocker-To-Go encrypted partitions - that's USB/FAT32 partitions;
be able to write on the above partitions.



%prep
%setup -q

%build
%cmake
# workaround cmake curious error with location of manpage...
ln -s ../man man
cmake --build .

%install
%cmake_install

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%defattr(-,root,root)
%doc README.md INSTALL.md LICENSE.txt CHANGELOG.md
%{_bindir}/dislocker
%{_bindir}/dislocker-bek
%{_bindir}/dislocker-file
%{_bindir}/dislocker-find
%{_bindir}/dislocker-fuse
%{_bindir}/dislocker-metadata
%{_libdir}/libdislocker.so
%{_libdir}/libdislocker.so.*
%{_mandir}/man1/dislocker-file.1*
%{_mandir}/man1/dislocker-find.1*
%{_mandir}/man1/dislocker-fuse.1*
%{_mandir}/man1/dislocker.1*



%changelog
openSUSE Build Service is sponsored by