]>
Commit | Line | Data |
---|---|---|
ec92a519 AM |
1 | Summary: ELF (Executable and Linkable Format) reader and producer implemented as a C++ library |
2 | Name: elfio | |
3 | Version: 2.1 | |
4 | Release: 1 | |
ec92a519 AM |
5 | License: MIT |
6 | Group: Libraries | |
1acdda3e ER |
7 | Source0: https://downloads.sourceforge.net/project/elfio/ELFIO-sources/ELFIO-%{version}/%{name}-%{version}.tar.gz |
8 | # Source0-md5: d370c4e4ff432626dba661f9a30ff2f1 | |
ec92a519 | 9 | URL: http://elfio.sourceforge.net/ |
f859b19b | 10 | BuildRequires: libstdc++-devel |
ec92a519 AM |
11 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
12 | ||
13 | %description | |
1acdda3e ER |
14 | ELFIO is a C++ library for reading and generating files in the ELF |
15 | binary format. This library is unique and not based on any other | |
16 | product. It is also platform independent. The library uses standard | |
ec92a519 AM |
17 | ANSI C++ constructions and runs on a wide variety of architectures. |
18 | ||
1acdda3e | 19 | %package devel |
ec92a519 AM |
20 | Summary: Development tools for programs using the elfio library |
21 | Group: Development/Libraries | |
22 | ||
1acdda3e | 23 | %description devel |
ec92a519 AM |
24 | This package contains the header files and libraries needed for |
25 | developing programs using the elfio library. | |
26 | ||
27 | %prep | |
28 | %setup -q | |
29 | ||
30 | %build | |
31 | %configure | |
32 | %{__make} | |
33 | ||
34 | %install | |
35 | rm -rf $RPM_BUILD_ROOT | |
ec92a519 AM |
36 | %{__make} install \ |
37 | DESTDIR=$RPM_BUILD_ROOT | |
38 | ||
f859b19b ER |
39 | %{__rm} $RPM_BUILD_ROOT%{_bindir}/{tutorial,write_obj,writer} |
40 | ||
ec92a519 AM |
41 | %clean |
42 | rm -rf $RPM_BUILD_ROOT | |
43 | ||
44 | %files | |
45 | %defattr(644,root,root,755) | |
46 | %doc AUTHORS | |
47 | %attr(755,root,root) %{_bindir}/elfdump | |
48 | ||
1acdda3e | 49 | %files devel |
ec92a519 AM |
50 | %defattr(644,root,root,755) |
51 | %doc doc/elfio.pdf | |
52 | %{_includedir}/elfio |