File dmg2img.spec of Package dmg2img
#
# spec file for package dmg2img
#
# Copyright (c) 2018 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/
#
Name: dmg2img
Version: 1.6.7
Release: 0
Summary: An Apple's compressed dmg to standard (hfsplus) image disk file convert tool
License: GPL-2.0-only
Group: System/Filesystems
Url: http://vu1tur.eu.org/tools
Source0: http://vu1tur.eu.org/tools/%{name}-%{version}.tar.gz
Patch0: %{name}-optflags.patch
# PATCH-FIX-UPSTREAM dmg2img-fix-openssl-1.1.patch -- vfdecrypt: OpenSSL 1.1 compatibility
Patch1: %{name}-fix-openssl-1.1.patch
BuildRequires: libbz2-devel
BuildRequires: libopenssl-devel
BuildRequires: zlib-devel
%description
DMG2IMG is a tool which allows converting Apple compressed dmg archives to
standard (hfsplus) image disk files.
This tool handles zlib and bzip2 compressed dmg images.
%prep
%setup -q -n %{name}-%{version}
%{__chmod} 644 COPYING README
%patch -P 0
%patch -P 1 -p1
%build
%make_build
%install
%{__install} -D -p -m 0755 %{name} %{buildroot}%{_bindir}/%{name}
%{__install} -D -p -m 0755 vfdecrypt %{buildroot}%{_bindir}/vfdecrypt
%{__install} -D -p -m 0644 vfdecrypt.1 %{buildroot}%{_mandir}/man1/vfdecrypt.1
%check
%files
%defattr(-,root,root)
%doc COPYING README
%{_bindir}/%{name}
%{_bindir}/vfdecrypt
%{_mandir}/man1/vfdecrypt.1%{ext_man}
%changelog