2014-06-27 06:19:00 +08:00
|
|
|
Name: radare2
|
|
|
|
Version: 0.9.8rc3
|
2014-11-10 10:06:41 +08:00
|
|
|
Release: 0%{?dist}
|
|
|
|
Summary: %{name} reverse engineering framework
|
2014-06-27 06:19:00 +08:00
|
|
|
Group: Applications/Engineering
|
|
|
|
License: GPLv3+
|
2014-11-10 10:06:41 +08:00
|
|
|
URL: http://www.radare.org
|
|
|
|
Source0: https://github.com/radare/%{name}/archive/%{name}-%{version}.tar.gz
|
2014-06-27 06:19:00 +08:00
|
|
|
BuildRequires: file-devel
|
2014-11-10 10:06:41 +08:00
|
|
|
Requires: %{name}-devel
|
2014-06-27 06:19:00 +08:00
|
|
|
|
|
|
|
%{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}-%{version}}
|
|
|
|
|
|
|
|
%description
|
2014-11-10 10:06:41 +08:00
|
|
|
The %{name} is a reverse-engineering framework that is multi-architecture,
|
|
|
|
multi-platform, and highly scriptable. %{name} provides a hexadecimal
|
|
|
|
editor, wrapped I/O, file system support, debugger support, diffing
|
2014-06-27 06:19:00 +08:00
|
|
|
between two functions or binaries, and code analysis at opcode,
|
|
|
|
basic block, and function levels.
|
|
|
|
|
2014-06-28 08:06:15 +08:00
|
|
|
%package devel
|
2014-11-10 10:06:41 +08:00
|
|
|
Summary: Development files for the %{name} package
|
2014-06-28 08:06:15 +08:00
|
|
|
|
|
|
|
%description devel
|
2014-11-10 10:06:41 +08:00
|
|
|
Development files for the %{name} package. See %{name} package for more
|
|
|
|
information.
|
2014-06-28 08:06:15 +08:00
|
|
|
|
2014-06-27 06:19:00 +08:00
|
|
|
%prep
|
2014-11-10 10:06:41 +08:00
|
|
|
%setup -q -n %{name}-%{version}
|
|
|
|
|
|
|
|
# oops :)
|
|
|
|
sed -i "s/PKGNAME='radare2' ; VERSION='.*' ;/PKGNAME='radare2' ; VERSION='%{version}' ;/" `dirname %{SOURCE0}`/%{name}-%{version}/configure
|
2014-06-27 06:19:00 +08:00
|
|
|
|
|
|
|
# Use system libmagic rather than bundled
|
|
|
|
%build
|
2014-11-10 10:06:41 +08:00
|
|
|
%configure --with-sysmagic --with-syscapstone
|
2014-06-27 06:19:00 +08:00
|
|
|
|
|
|
|
#The make fails if _smp_mflags passed on command line
|
2014-06-28 08:06:15 +08:00
|
|
|
CFLAGS="%{optflags} -fPIC -I. -Iinclude -I../include" make
|
2014-06-27 06:19:00 +08:00
|
|
|
|
2014-06-28 08:06:15 +08:00
|
|
|
# Do not run the testsuite yet
|
|
|
|
# %check
|
|
|
|
# make tests
|
2014-06-27 06:19:00 +08:00
|
|
|
|
|
|
|
%install
|
|
|
|
make install DESTDIR="%{buildroot}"
|
2014-11-10 10:06:41 +08:00
|
|
|
chmod 0755 %{buildroot}/%{_libdir}/%{name}/%{version}/*
|
2014-06-27 06:19:00 +08:00
|
|
|
|
|
|
|
%files
|
2014-06-28 08:06:15 +08:00
|
|
|
%doc %{_datadir}/doc/%{name}
|
2014-06-27 06:19:00 +08:00
|
|
|
%doc COPYING
|
2014-11-10 10:06:41 +08:00
|
|
|
%{_bindir}/r*
|
2014-06-28 08:06:15 +08:00
|
|
|
%{_mandir}/man1/r*.1.*
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%{_includedir}/libr/
|
|
|
|
%{_libdir}/pkgconfig/*.pc
|
2014-11-10 10:06:41 +08:00
|
|
|
%{_libdir}/%{name}/%{version}/
|
|
|
|
%{_libdir}/libr*
|
|
|
|
%{_exec_prefix}/lib/%{name}/%{version}/magic/
|
|
|
|
%{_libdir}/%{name}/last
|
|
|
|
%{_datarootdir}/%{name}/%{version}/
|
2014-06-27 06:19:00 +08:00
|
|
|
|
2014-11-10 10:06:41 +08:00
|
|
|
%post -n %{name}-devel -p /sbin/ldconfig
|
|
|
|
%postun -n %{name}-devel -p /sbin/ldconfig
|
2014-06-28 08:06:15 +08:00
|
|
|
|
2014-11-10 10:06:41 +08:00
|
|
|
%changelog
|
|
|
|
* Sun Nov 09 2014 Pavel Odvody <podvody@redhat.com> 0.9.8rc3-0
|
|
|
|
- Initial tito package
|