File dmg2img.spec of Package dmg2img

#
# spec file for package dmg2img
#
# Copyright (c) 2014 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:           dmg2img
Summary:        An Apple's compressed dmg to standard (hfsplus) image disk file convert tool
Version:        1.6.7
Release:        1
Url:            http://vu1tur.eu.org/tools/
Source0:        dmg2img-%{version}.tar.gz
Patch0:         dmg2img-optflags.patch
Patch1:         dmg2img-openssl-1_1.patch
License:        GPL-2.0
Group:          System/Filesystems
BuildRequires:  zlib-devel
BuildRequires:  libbz2-devel
BuildRequires:  libopenssl-devel
BuildRoot:      %{_tmppath}/build-%{name}-%{version}

%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 dmg2img-%{version}
chmod 644 COPYING README
%patch -P0
%patch -P1 -p1

%build
%__make %{?jobs:-j %jobs}

%install
install -D -m 755 dmg2img %{buildroot}%{_bindir}/dmg2img
install -D -m 755 vfdecrypt %{buildroot}%{_bindir}/vfdecrypt
install -D -m 644 vfdecrypt.1 %{buildroot}%{_mandir}/man1/vfdecrypt.1

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%{_bindir}/dmg2img
%{_bindir}/vfdecrypt
%{_mandir}/man1/vfdecrypt.1*
%doc COPYING README

%changelog
openSUSE Build Service is sponsored by