| |
@@ -1,16 +1,24 @@
|
| |
Name: edb
|
| |
- Version: 0.9.18
|
| |
- Release: 23%{?dist}
|
| |
+ Version: 0.9.21
|
| |
+ Release: 1%{?dist}
|
| |
Summary: A debugger based on the ptrace API and Qt4
|
| |
|
| |
- Group: Development/Debuggers
|
| |
License: GPLv2+
|
| |
- URL: http://www.codef00.com/projects.php#Debugger
|
| |
- Source0: http://www.codef00.com/projects/debugger-%{version}.tgz
|
| |
+ URL: https://github.com/eteran/edb-debugger
|
| |
+ Source0: https://github.com/eteran/edb-debugger/releases/download/%{version}/edb-debugger-%{version}.tgz
|
| |
|
| |
+ # it builds without these upstream patches but is non-functional
|
| |
+ Patch0: 0001-perhaps-a-fix-for-issues-350-361-and-546.patch
|
| |
+ Patch1: 0002-typo-that-s-what-I-get-for-commiting-without-testing.patch
|
| |
+
|
| |
+ BuildRequires: gcc-c++
|
| |
BuildRequires: desktop-file-utils
|
| |
- BuildRequires: qt4-devel
|
| |
+ BuildRequires: qt5-devel
|
| |
+ BuildRequires: cmake
|
| |
BuildRequires: boost-devel
|
| |
+ BuildRequires: capstone-devel
|
| |
+ BuildRequires: libappstream-glib
|
| |
+
|
| |
# as edb is an x86 debugger
|
| |
ExclusiveArch: %{ix86} x86_64
|
| |
|
| |
@@ -28,76 +36,45 @@
|
| |
|
| |
|
| |
%prep
|
| |
- %setup -q -n debugger
|
| |
- sed -i -e 's/\.uic/uic/' -e 's/\.moc/moc/' -e 's/\.rcc/rcc/' src/src.pro
|
| |
- sed -i -e 's/\.ui/ui/' -e 's/\.moc/moc/' -e 's/\.rcc/rcc/' plugins/plugins.pri
|
| |
+ %autosetup -n edb-debugger-%{version} -p1
|
| |
|
| |
%build
|
| |
- %{qmake_qt4} -makefile DEFAULT_PLUGIN_PATH="%{_libdir}/%{name}/"
|
| |
+ %cmake .
|
| |
make %{?_smp_mflags}
|
| |
|
| |
|
| |
%install
|
| |
- mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1/
|
| |
- install -d $RPM_BUILD_ROOT%{_datadir}/pixmaps/
|
| |
- install -Dm 644 -p src/images/%{name}48-logo.png $RPM_BUILD_ROOT%{_datadir}/pixmaps/%{name}.png
|
| |
- make install INSTALL_ROOT=$RPM_BUILD_ROOT%{_prefix}
|
| |
- install -Dm 644 -p %{name}.1 $RPM_BUILD_ROOT%{_mandir}/man1/
|
| |
- desktop-file-install --vendor="" \
|
| |
- --dir=%{buildroot}%{_datadir}/applications/ \
|
| |
- %{name}.desktop
|
| |
-
|
| |
- # Register as an application to be visible in the software center
|
| |
- #
|
| |
- # NOTE: It would be *awesome* if this file was maintained by the upstream
|
| |
- # project, translated and installed into the right place during `make install`.
|
| |
- #
|
| |
- # See http://www.freedesktop.org/software/appstream/docs/ for more details.
|
| |
- #
|
| |
- mkdir -p $RPM_BUILD_ROOT%{_datadir}/appdata
|
| |
- cat > $RPM_BUILD_ROOT%{_datadir}/appdata/%{name}.appdata.xml <<EOF
|
| |
- <?xml version="1.0" encoding="UTF-8"?>
|
| |
- <!-- Copyright 2014 Evan Teran <evan.teran@gmail.com> -->
|
| |
- <!--
|
| |
- BugReportURL: https://code.google.com/p/edb-debugger/issues/detail?id=130
|
| |
- SentUpstream: 2014-09-18
|
| |
- -->
|
| |
- <application>
|
| |
- <id type="desktop">edb.desktop</id>
|
| |
- <metadata_license>CC0</metadata_license>
|
| |
- <project_license>GPL-2.0</project_license>
|
| |
- <name>edb</name>
|
| |
- <summary>A reverse engineer's debugger</summary>
|
| |
- <description>
|
| |
- <p>
|
| |
- edb is a cross platform x86/x86-64 debugger.
|
| |
- It was inspired by OllyDbg, but aims to function on x86 and x86-64 as well
|
| |
- as multiple OS's.
|
| |
- </p>
|
| |
- <p>
|
| |
- Linux is the only officially supported platform at the moment, but FreeBSD,
|
| |
- OpenBSD, OSX and Windows ports are underway with varying degrees of functionality.
|
| |
- </p>
|
| |
- </description>
|
| |
- <screenshots>
|
| |
- <screenshot type="default" width="1121" height="839">http://codef00.com/img/debugger.png</screenshot>
|
| |
- </screenshots>
|
| |
- <url type="homepage">http://codef00.com/projects</url>
|
| |
- <updatecontact>evan.teran_at_gmail.com</updatecontact>
|
| |
- </application>
|
| |
- EOF
|
| |
+ make install DESTDIR=%{buildroot}
|
| |
+ desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.desktop
|
| |
+
|
| |
+ #fix man page location
|
| |
+ mkdir -p %{buildroot}/%{_mandir}/man1/
|
| |
+ mv %{buildroot}%{_mandir}/%{name}.1 %{buildroot}/%{_mandir}/man1/
|
| |
+
|
| |
+ #install appdata file
|
| |
+ mkdir -p %{buildroot}%{_datadir}/metainfo/
|
| |
+ install -m 644 %{name}.appdata.xml %{buildroot}%{_datadir}/metainfo/
|
| |
+ appstream-util validate-relax --nonet %{buildroot}%{_datadir}/metainfo/%{name}.appdata.xml
|
| |
|
| |
+ #icon
|
| |
+ mv %{buildroot}%{_datadir}/pixmaps/%{name}48-logo.png %{buildroot}%{_datadir}/pixmaps/%{name}.png
|
| |
|
| |
%files
|
| |
- %doc CHANGELOG COPYING README TODO VERSION README.plugins doc
|
| |
+ %doc CHANGELOG COPYING README.md TODO doc
|
| |
%{_bindir}/%{name}
|
| |
%{_libdir}/%{name}
|
| |
- %{_datadir}/appdata/%{name}.appdata.xml
|
| |
+ %{_datadir}/metainfo/%{name}.appdata.xml
|
| |
%{_datadir}/applications/%{name}.desktop
|
| |
%{_datadir}/pixmaps/%{name}.png
|
| |
- %{_mandir}/man1/%{name}.1.gz
|
| |
+ %{_mandir}/man1/%{name}.1*
|
| |
|
| |
%changelog
|
| |
+ * Sat Oct 14 2017 Michael Cullen <mich181189@fedoraproject.org> - 0.9.21-1
|
| |
+ - Updated to new version
|
| |
+ - Changed to use Qt5
|
| |
+ * Sat Oct 14 2017 Michael Cullen <mich181189@fedoraproject.org> - 0.9.18-24
|
| |
+ - Repointed to GitHub for project link
|
| |
+ - Fixed FTBFS in qmake invocation
|
| |
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.18-23
|
| |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
| |
|
| |
This package is many years behind the latest release.
This PR contains two commits: One to fix the existing build, the other to update to the newest project, switch to CMake and use Qt5 instead of Qt4
I'd be happy to take over this package if you don't have time or don't want to maintain it!