File scanmem.spec of Package scanmem

Name:          scanmem
Version:       0.15.2
Summary:       Simple interactive debugging utility
Release:       1
License:       GPL-3.0
Group:         Development/Tools/Debuggers
URL:           https://github.com/scanmem/scanmem

BuildRoot:     %{_tmppath}/%{name}-%{version}-build
BuildRequires: readline-devel, libtool, intltool
Source0:       %{name}-%{version}.tar.gz
Patch1:        gameconqueror-incomplete-desktop.patch

%package -n gameconqueror
Summary:       Scanmem GTK GUI
Group:         Development/Tools/Debuggers
Requires:      scanmem = %{version}, python, python-gtk, python-gobject, polkit
BuildArch:     noarch

%description
scanmem is a debugging utility designed to isolate the address of an arbitrary variable in an executing process. scanmem simply needs to be told the pid of the process, and the value of the variable at several different times.
After several scans of the process, scanmem isolates the position of the variable and allows you to modify it's value.

%description -n gameconqueror
GameConqueror is a GUI of scanmem and more than that, it provides flexible syntax for searching, multiple memory locking and a memory editor.

%prep
%setup -q
%patch1 -p1

%build
./autogen.sh
%configure --prefix=/usr --enable-gui
%{__make} %{?_smp_mflags} CFLAGS='%{optflags}'

%install
%{__rm} -rf %{buildroot}
%{__make} install DESTDIR=%{buildroot}

%clean
%{__rm} -rf %{buildroot}

%files
%defattr(-, root, root)
%dir %{_datadir}/doc/scanmem/
%{_datadir}/doc/scanmem/*
%doc %{_mandir}/man1/scanmem.1*
%{_bindir}/scanmem
%{_libdir}/libscanmem.*

%files -n gameconqueror
%defattr(-, root, root)
%doc %{_mandir}/man1/gameconqueror.1*
%dir %{_datadir}/gameconqueror/
%{_datadir}/gameconqueror/*
%{_datadir}/applications/GameConqueror.desktop
%dir %{_datadir}/appdata/
%{_datadir}/appdata/GameConqueror.appdata.xml
%{_bindir}/gameconqueror
%dir %{_datadir}/icons/hicolor
%dir %{_datadir}/icons/hicolor/72x72
%dir %{_datadir}/icons/hicolor/72x72/apps
%{_datadir}/icons/hicolor/72x72/apps/GameConqueror.png
%dir %{_datadir}/icons/hicolor/128x128
%dir %{_datadir}/icons/hicolor/128x128/apps
%{_datadir}/icons/hicolor/128x128/apps/GameConqueror.png
%lang(ja) %{_datadir}/locale/ja/LC_MESSAGES/GameConqueror.mo
%lang(ru) %{_datadir}/locale/ru/LC_MESSAGES/GameConqueror.mo
%dir %{_datadir}/polkit-1
%dir %{_datadir}/polkit-1/actions
%attr(644,root,root) %config %{_datadir}/polkit-1/actions/org.freedesktop.gameconqueror.policy

%changelog
* Fri Jul 3 2015 Sebastian Parschauer <s.parschauer@gmx.de>
- Update to version 0.15.2
 * Scan performance optimization: up to half the scan time than before in scanmem, further up to 40% less scan time when using the GUI - all that due to scan progress optimization
 * Python 3 GUI fixes for the string and bytearray search as well as for the hexview
 * Python 2 and 3 GUI fixes for the differential number search and cursor movement in the hexview
* Sun Oct 28 2012 Javier Garcia Capel <javilete@gmail.com>
- Update to version 0.13