Blob Blame Raw
Summary:        Uncompress the Apple compressed disk image files
Name:           dmg2img
Version:        1.6.2
Release:        2%{?dist}
# dmg2img is GPL without specific version
# vfdecrypt is MIT licensed
License:        GPL+ and MIT
Group:          Applications/File
Source0:        http://vu1tur.eu.org/tools/%{name}-%{version}.tar.gz
Patch0:         dmg2img-1.6.2-nostrip.patch
URL:            http://vu1tur.eu.org/tools/
BuildRequires:  bzip2-devel
BuildRequires:  openssl-devel
BuildRequires:  zlib-devel
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

%description
This package contains dmg2img utility that is able to uncompress compressed dmg 
files into plain disk or filesystem images.


%prep
%setup -q
%patch0 -p1


%build
make CC="%{__cc}" CFLAGS="%{optflags}" %{_smp_mflags}


%install
rm -rf $RPM_BUILD_ROOT

install -d $RPM_BUILD_ROOT%{_mandir}/man1
install -d $RPM_BUILD_ROOT%{_bindir}

install dmg2img $RPM_BUILD_ROOT%{_bindir}
install vfdecrypt $RPM_BUILD_ROOT%{_bindir}
install -pm644 vfdecrypt.1 $RPM_BUILD_ROOT%{_mandir}/man1


%clean
rm -rf $RPM_BUILD_ROOT


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


%changelog
* Mon Jan 09 2012 Lubomir Rintel <lkundrak@v3.sk> - 1.6.2-2
- Add a missing BR (Richard Shaw, #749752)
- Cosmetic fixes (Scott Tsai, #749752)

* Fri Oct 29 2011 Lubomir Rintel <lkundrak@v3.sk> - 1.6.2-1
- Initial packaging