radare2/radare2.spec

115 lines
3.5 KiB
RPMSpec
Raw Normal View History

2015-10-22 20:15:11 +00:00
%global gituser radare
%global gitname radare2
#global commit a093958b6d24015d82782eb20a2e10d8f4afcd85
%global commit 5a3dab0a86e1452c0bb0c13d869f95b41f50b9a9
%global shortcommit %(c=%{commit}; echo ${c:0:7})
2014-06-26 22:19:00 +00:00
Name: radare2
2015-10-22 20:15:11 +00:00
Version: 0.10.0
Release: 1%{?dist}
Summary: The %{name} reverse engineering framework
2014-06-26 22:19:00 +00:00
Group: Applications/Engineering
2015-10-22 20:15:11 +00:00
License: LGPLv3
URL: http://radare.org/
#Source0: http://radare.org/get/%{name}-%{version}.tar.gz
#Source0: http://radare.org/get/%{name}-%{version}.tar.xz
Source0: https://github.com/%{gituser}/%{gitname}/archive/%{commit}/%{name}-%{version}-%{shortcommit}.tar.gz
2014-06-26 22:19:00 +00:00
BuildRequires: file-devel
2015-10-22 20:15:11 +00:00
BuildRequires: libzip-devel
#BuildRequires: capstone-devel >= 3.0.4
2014-06-26 22:19:00 +00:00
2015-10-22 20:15:11 +00:00
#Assume more versions installed in paraller side-by-side
2014-06-26 22:19:00 +00:00
%{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}-%{version}}
%description
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-26 22:19:00 +00:00
between two functions or binaries, and code analysis at opcode,
basic block, and function levels.
2015-10-22 20:15:11 +00:00
%package devel
Summary: Development files for the %{name} package
2015-10-22 20:15:11 +00:00
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
2015-10-22 20:15:11 +00:00
%description devel
Development files for the %{name} package. See %{name} package for more
2015-10-22 20:15:11 +00:00
information.
2014-06-26 22:19:00 +00:00
%prep
2015-10-22 20:15:11 +00:00
#%setup -q -n %{name}-%{version}
%setup -q -n %{gitname}-%{commit}
2014-06-26 22:19:00 +00:00
%build
2015-10-22 20:15:11 +00:00
%configure --with-sysmagic --with-syszip #--with-syscapstone
CFLAGS="%{optflags} -fPIC -I../include" make %{?_smp_mflags} LIBDIR=%{_libdir} PREFIX=%{_prefix} DATADIR=%{DATADIR}
2014-06-26 22:19:00 +00:00
# Do not run the testsuite yet
# %check
# make tests
2014-06-26 22:19:00 +00:00
2015-10-22 20:15:11 +00:00
2014-06-26 22:19:00 +00:00
%install
2015-10-22 20:15:11 +00:00
rm -rf %{buildroot}
NOSUDO=1 make install DESTDIR=%{buildroot} LIBDIR=%{_libdir} PREFIX=%{_prefix}
cp shlr/sdb/src/libsdb.a %{buildroot}/%{_libdir}/libsdb.a
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
2014-06-26 22:19:00 +00:00
%files
2015-10-22 20:15:11 +00:00
%doc AUTHORS.md CONTRIBUTING.md DEVELOPERS.md README.md TODO.md
%license COPYING
%{_bindir}/r*
2015-10-22 20:15:11 +00:00
%{_libdir}/libr*
%dir %{_libdir}/%{name}
%dir %{_libdir}/%{name}/%{version}-git
%{_libdir}/%{name}/last
%{_libdir}/%{name}/%{version}-git/*.so
#%{_libdir}/%{name}/%{version}-git/*.py*
#%{_libdir}/%{name}/%{version}-git/*.lua
#%{_libdir}/%{name}/%{version}-git/*.rb
%{_libdir}/%{name}/%{version}-git/hud
%{_libdir}/%{name}/%{version}-git/syscall
%{_libdir}/%{name}/%{version}-git/opcodes
%dir %{_prefix}/lib/%{name}
%dir %{_prefix}/lib/%{name}/%{version}-git
%dir %{_prefix}/lib/%{name}/%{version}-git/magic
%{_prefix}/lib/%{name}/%{version}-git/magic/*
%{_mandir}/man1/r*.1.*
2015-10-22 20:15:11 +00:00
%dir %{_datadir}/%{name}
%dir %{_datadir}/%{name}/%{version}-git
%dir %{_datadir}/%{name}/%{version}-git/cons
%{_datadir}/%{name}/%{version}-git/cons/*
%dir %{_datadir}/%{name}/%{version}-git/format
%{_datadir}/%{name}/%{version}-git/format/*
%dir %{_prefix}/%{name}/%{version}-git/r2pm
%{_prefix}/%{name}/%{version}-git/r2pm/*
%dir %{_datadir}/%{name}/%{version}-git/www
%{_datadir}/%{name}/%{version}-git/www/*
2015-10-22 20:15:11 +00:00
%files devel
%{_includedir}/libr
%{_libdir}/libsdb.a
%{_libdir}/pkgconfig/*.pc
2014-06-26 22:19:00 +00:00
%post -n %{name}-devel -p /sbin/ldconfig
%postun -n %{name}-devel -p /sbin/ldconfig
2015-10-22 20:15:11 +00:00
%changelog
2015-10-22 20:15:11 +00:00
* Sat Oct 10 2015 Michal Ambroz <rebus at, seznam.cz> 0.10.0-1
- build for Fedora for alpha of 0.10.0
* Sun Nov 09 2014 Pavel Odvody <podvody@redhat.com> 0.9.8rc3-0
- Initial tito package
2015-10-22 20:15:11 +00:00