File guymager.spec of Package guymager

# spec file for package guymager
# Copyright (c) 2012 Greg Freemyer
# 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.

# norootforbuild

Summary:	Imager for forensic media acquisition
Name:	        guymager
Version:	0.6.5
Release:	0
License:	GPL

Group:		Applications/Forensics Tools

Source0:	%{name}-%{version}.tar.gz
%if 0%{?rhel} > 0
BuildRequires:  qt4-devel
BuildRequires:  qt-devel
BuildRequires:	libguytools2-devel
BuildRequires:	parted-devel 
BuildRequires:	openssl
BuildRequires:	libewf-devel
Requires:	libguytools2
Requires:	parted 
Requires:	libewf 
Requires:	procps
# provided by upstream
Patch1: 	suse.patch
Patch2: 	modern-QT.patch
Patch3: 	use-shared-libs.patch
# Patch112: 	%{name}-%{version}-patch-001.fc12
# Patch113: 	%{name}-%{version}-patch-001.fc13
# Patch114: 	%{name}-%{version}-patch-001.fc14
# Patch115: 	%{name}-%{version}-patch-001.fc15
# Patch116: 	%{name}-%{version}-patch-001.fc16
# Patch105: 	%{name}-%{version}-patch-001.el5
# Patch106: 	%{name}-%{version}-patch-001.el6
# Patch2:		%{name}-%{version}-patch-002
# Patch3:		%{name}-%{version}-patch-003
BuildRoot:	%{buildroot}

guymager is an imager for forensic media acquisition. Its main features are:

    * Easy user interface in different languages
    * Runs under Linux
    * Multi-threaded design, multi-threaded data compression
    * Makes full usage of multi-processor machines
    * Generates flat (dd) and EWF (E01) images

%setup -n %{name}-%{version}
%patch2 -p1
%patch3 -p1

# patch -p1 < %{_sourcedir}/%{name}-%{version}-patch-001%{?dist}
# %patch2 -p1
# %if 0%{?fedora} >= 16
# %patch3 -p1
# %endif

# %if 0%{?fedora} > 0
	# qmake-qt4
# %elseif 0%{?rhel} > 0
        # %{_libdir}/qt4/bin/qmake
# %endif
cd manuals; sh

rm -rf %{buildroot}
%__install -d %{buildroot}%{_bindir}
%__install -d %{buildroot}%{_sysconfdir}/%{name}
%__install -d  %{buildroot}%{_mandir}/man1
%__install -m 755 %{name} %{buildroot}%{_bindir}
%__install -m 644 %{name}.cfg %{buildroot}%{_sysconfdir}/%{name}
%__install -m 644 manuals/%{name}.1 %{buildroot}%{_mandir}/man1

%{__rm} -rf %{buildroot}

%defattr(-, root, root, 0755)
%attr(755, root, root)		%{_bindir}/*
%attr(644, root, root)		%{_sysconfdir}/%{name}/*
%attr(644, root, root)		%{_mandir}/man1/*

* Wed Dec 7 2011 Guy Voncken <> 0.5.9-1
* Release 0.6.3-1

* Fri Jul 8 2011 Guy Voncken <> 0.5.9-1
* Release 0.5.9-1
	- The 2GiB limit for EWF files no longer exists (the max. size now is 8EiB)
	- A new AutoExit function has been added. If activated, guymager ends as soon as all
	  acquisitions terminated successfully. By means of the program's exit code, a script might decide,
	  for instance, to shut down the system. This feature is interesting for acquisitions taking place
	  overnight or during the weekend.
	- A new menu point in Gnome allows for launching Guymager from the menu Application / System tools.
	- The problems with UDisks under KDE / Kubuntu no longer exist.

* Tue Sep 09 2008 Guy Voncken <> 0.3.1
- New branch, guymager (0.3.0beta3) becomes 0.3.1, no other changes

* Tue Sep 09 2008 Guy Voncken <> 0.3.0beta3
- Several things concerning Debian packaging
- New, flexible handling for acquisition dialog fields
- Language support

* Tue Sep 02 2008 Guy Voncken <> 0.3.0beta2
- New cfg param SpecialFilenameChars for allowing special chars in image and info filenames
- Writing version info also to log file
- Auto-detect number of CPUs for optimal multi-threaded compression
- Special sequence %size% in cfg file expands to non fractional value

* Tue Apr 15 2008 Guy Voncken <> 0.3.0beta1
- Possibility to chose between self-written or Qt file dialog (cfg param UseFileDialogFromQt)
- Correct display of libewf version in use
- Device matching on device rescan corrected (as some memsticks behave like 2 devices with identical serial nr.)
- When starting without root rights: Ask user if he really wants this

* Tue Apr 01 2008 Guy Voncken <> 0.2.0beta3
- Locale initialisation added
- MemWatch really switched off if UseMemWatch is false
- Simplified compilation
- Man page added
- Debian package corrections (lintian no longer reports errors)

* Tue Apr 01 2008 Guy Voncken <> 0.2.0beta2
- Current unstable

* Fri Mar 21 2008 Guy Voncken <> 0.2.0beta1
- Current unstable

* Wed Sep 12 2007 Guy Voncken <> 0.1.0-1
- First official branch, released for "BKA-Fachtagung forensische IuK", 18-19 Sept. 2007, D-Knuellwald.