From 6767e7f8ef5364894146d5767507ac285742b22e Mon Sep 17 00:00:00 2001 From: pancake Date: Fri, 27 Jun 2014 00:19:00 +0200 Subject: [PATCH] Add radare2 spec file --- radare2.spec | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 radare2.spec diff --git a/radare2.spec b/radare2.spec new file mode 100644 index 0000000000..e1d5316cff --- /dev/null +++ b/radare2.spec @@ -0,0 +1,40 @@ +Name: radare2 +Version: 0.9.8rc3 +Release: 1%{?dist} +Summary: radare2 reverse engineering framework +Group: Applications/Engineering +License: GPLv3+ +URL: http://www.radare.org/ +Source0: https://github.com/radare/radare2/archive/%{version}.tar.gz +BuildRequires: file-devel + +%{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}-%{version}} + +%description +Radare2 is a reverse-engineering framework that is multi-architecture, +multi-platform, and highly scriptable. Radare2 provides a hexadecmial +editor, wrapped I/O, filesystem support, debugger support, diffing +between two functions or binaries, and code analysis at opcode, +basic block, and function levels. + +%prep +%setup -q -n radare2-%{version} + +# Use system libmagic rather than bundled +%build +%configure --with-sysmagic + +#The make fails if _smp_mflags passed on command line +make CFLAGS="%{optflags} -fPIC -I../include" + +%check +make tests + +%install +make install DESTDIR="%{buildroot}" + +%files +%doc COPYING +%{_bindir}/%{name} + +%changelog