/
moxie-rtems-binutils.spec.in
70 lines (59 loc) · 1.87 KB
/
moxie-rtems-binutils.spec.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
Name: moxie-rtems-binutils
Version: @VERSION@
Release: 0.@BUILDNUM@
Summary: The GNU binutils for the moxie core
Group: Development/Tools
License: GPL
URL: http://moxielogic.com/blog
Source0: moxie-binutils.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: texinfo bison flex
%description
binutils is a collection of binary utilities, including ar (for creating,
modifying and extracting from archives), nm (for listing symbols from
object files), objcopy (for copying and translating object files),
objdump (for displaying information from object files), ranlib (for
generating an index for the contents of an archive), size (for listing
the section sizes of an object or archive file), strings (for listing
printable strings from files), strip (for discarding symbols), c++filt
(a filter for demangling encoded C++ symbols), addr2line (for converting
addresses to file and line).
%prep
%setup -q -n src
%build
CFLAGS="%optflags" ./configure \
%_target_platform \
--prefix=%_prefix \
--exec-prefix=%_exec_prefix \
--bindir=%_bindir \
--sbindir=%_sbindir \
--sysconfdir=%_sysconfdir \
--datadir=%_datadir \
--includedir=%_includedir \
--libdir=%_libdir \
--libexecdir=%_libexecdir \
--localstatedir=%_localstatedir \
--sharedstatedir=%_sharedstatedir \
--mandir=%_mandir \
--infodir=%_infodir \
--enable-shared \
--target=moxie-rtems
%__make tooldir=%_prefix all info
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
rm -rf $RPM_BUILD_ROOT%_datadir/locale
rm -rf $RPM_BUILD_ROOT%_infodir
rm -rf $RPM_BUILD_ROOT%_libdir/*.a
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%{_bindir}/*
%{_prefix}/moxie-rtems
%{_prefix}/*/moxie-rtems
%{_mandir}/man1/*
%doc COPYING*
%changelog
* @DATE@ Anthony Green <green@moxielogic.com> @VERSION@-1
- Created.