]> git.pld-linux.org Git - packages/crossavr-binutils.git/blame - crossavr-binutils.spec
- converted to UTF-8
[packages/crossavr-binutils.git] / crossavr-binutils.spec
CommitLineData
15547bba 1Summary: Cross AVR GNU binary utility development utilities - binutils
f3e2688f
JR
2Summary(es.UTF-8): Utilitarios para desarrollo de binarios de la GNU - AVR binutils
3Summary(fr.UTF-8): Utilitaires de développement binaire de GNU - AVR binutils
4Summary(pl.UTF-8): Skrośne narzędzia programistyczne GNU dla AVR - binutils
5Summary(pt_BR.UTF-8): Utilitários para desenvolvimento de binários da GNU - AVR binutils
6Summary(tr.UTF-8): GNU geliştirme araçları - AVR binutils
c31c0377 7Name: crossavr-binutils
c5d2befe 8Version: 2.17.50.0.2
c31c0377
WK
9Release: 1
10License: GPL
11Group: Development/Tools
12Source0: ftp://ftp.kernel.org/pub/linux/devel/binutils/binutils-%{version}.tar.bz2
c5d2befe 13# Source0-md5: af337e084c3a4c019fd297a622889d40
c3700061 14URL: http://sources.redhat.com/binutils/
4f1d398f 15BuildRequires: automake
c3700061 16BuildRequires: bash
c31c0377 17BuildRequires: bison
c3700061 18BuildRequires: flex
3076856f 19BuildRequires: gettext-devel
c31c0377
WK
20%ifarch sparc sparc32
21BuildRequires: sparc32
22%endif
23BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25%define target avr
26%define arch %{_prefix}/%{target}
27
28%description
29Binutils is a collection of binary utilities, including:
30- ar - create, modify and extract from archives,
31- nm - lists symbols from object files,
32- objcopy - copy and translate object files,
33- objdump - display information from object files,
34- ranlib - generate an index for the contents of an archive,
35- size - list the section sizes of an object or archive file,
36- strings - list printable strings from files,
37- strip - discard symbols,
38- c++filt - a filter for demangling encoded C++ symbols,
39- addr2line - convert addresses to file and line,
40- nlmconv - convert object code into an NLM.
41
15547bba 42This package contains the cross version for Atmel AVR.
c31c0377 43
f3e2688f
JR
44%description -l pl.UTF-8
45Pakiet binutils zawiera zestaw narzędzi umożliwiających kompilację
46programów. Znajdują się tutaj między innymi assembler, konsolidator
47(linker), a także inne narzędzia do manipulowania binarnymi plikami
48programów i bibliotek.
c31c0377 49
f3e2688f 50Ten pakiet zawiera wersję skrośną generującą kod dla Atmel AVR.
c31c0377
WK
51
52%prep
53%setup -q -n binutils-%{version}
54
55%build
4f1d398f 56cp /usr/share/automake/config.sub .
57
c31c0377 58# ldscripts won't be generated properly if SHELL is not bash...
c3700061
JB
59CFLAGS="%{rpmcflags}" \
60LDFLAGS="%{rpmldflags}" \
c31c0377
WK
61CONFIG_SHELL="/bin/bash" \
62%ifarch sparc
63sparc32 \
64%endif
65./configure \
66 --disable-shared \
67 --prefix=%{_prefix} \
4f1d398f 68 --libdir=%{_libdir} \
c31c0377 69 --mandir=%{_mandir} \
4f1d398f 70 --infodir=%{_infodir} \
c31c0377
WK
71 --target=%{target}
72
c3700061
JB
73%{__make} all \
74 tooldir=%{_prefix} \
75 EXEEXT=""
c31c0377
WK
76
77%install
78rm -rf $RPM_BUILD_ROOT
79install -d $RPM_BUILD_ROOT%{_prefix}
80
81%{__make} install \
82 prefix=$RPM_BUILD_ROOT%{_prefix} \
f0155d93 83 mandir=$RPM_BUILD_ROOT%{_mandir} \
14538aa8 84 infodir=$RPM_BUILD_ROOT%{_infodir} \
85 libdir=$RPM_BUILD_ROOT%{_libdir}
c31c0377 86
4f1d398f 87# remove these man pages unless we cross-build for win*/netware platforms.
88# however, this should be done in Makefiles.
89rm -f $RPM_BUILD_ROOT%{_mandir}/man1/{*dlltool,*nlmconv,*windres}.1
90
c31c0377
WK
91%clean
92rm -rf $RPM_BUILD_ROOT
93
94%files
95%defattr(644,root,root,755)
9959e179 96%doc README
c31c0377 97%attr(755,root,root) %{_bindir}/%{target}-*
9959e179 98%dir %{arch}
c31c0377
WK
99%dir %{arch}/bin
100%attr(755,root,root) %{arch}/bin/*
101%dir %{arch}/lib
102%dir %{arch}/lib/*
f53587c5 103%{arch}/lib/*/*
c31c0377 104%{_mandir}/man?/%{target}-*
This page took 0.093378 seconds and 4 git commands to generate.