]> git.pld-linux.org Git - packages/crossavr-libc.git/blobdiff - crossavr-libc.spec
- patches from WinAVR project (http://winavr.sourceforge.net).
[packages/crossavr-libc.git] / crossavr-libc.spec
index e791190c488c6108694d1dba58ffce0488be5f00..62c453701fc2d7408254fa127dac7ffa91b47755 100644 (file)
@@ -1,45 +1,52 @@
 Summary:       AVR libc
-Summary(pl):   libc na AVR
+Summary(pl.UTF-8):     libc na AVR
 Name:          crossavr-libc
-Version:       1.4.0
+Version:       1.6.5
 Release:       1
 Epoch:         1
 License:       Modified BSD (see included LICENSE)
 Group:         Development/Tools
-Source0:       http://savannah.nongnu.org/download/avr-libc/avr-libc-%{version}.tar.bz2
-# Source0-md5: f32c3728fd99055fec6420843e6b5863
-Source1:       http://savannah.nongnu.org/download/avr-libc/avr-libc-user-manual-%{version}.tar.bz2
-# Source1-md5: 58c1d6e46f6aaa2b5883fdb51ca4ad18
-Source2:       http://savannah.nongnu.org/download/avr-libc/avr-libc-manpages-%{version}.tar.bz2
-# Source2-md5: a251deecc4e368f5034069b003412814
+Patch0:                %{name}-builtins.patch
+Patch1:                %{name}-dwarf2.patch
+Source0:       http://download.savannah.gnu.org/releases/avr-libc/avr-libc-%{version}.tar.bz2
+# Source0-md5: 5fae75d546eeaad283b7e80f374fd469
+Source1:       http://download.savannah.gnu.org/releases/avr-libc/avr-libc-user-manual-%{version}.tar.bz2
+# Source1-md5: d9c0608e9e5dd88bbd720f72a195d69b
+Source2:       http://download.savannah.gnu.org/releases/avr-libc/avr-libc-manpages-%{version}.tar.bz2
+# Source2-md5: 3a47126a0b5fedf7ad55470c5d003285
 URL:           http://www.nongnu.org/avr-libc/
 BuildRequires: crossavr-binutils >= 2.14
-BuildRequires: crossavr-gcc >= 3.3
-Requires:      crossavr-gcc >= 3.3
+BuildRequires: crossavr-gcc >= 1:3.3
+Requires:      crossavr-gcc >= 1:3.3
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define                target          avr
 %define                arch            %{_prefix}/%{target}
-%define                no_install_post_strip   1
+
+%define                __strip         %{target}-strip
 
 %description
 Contains the standard C library for Atmel AVR microcontrollers.
 
-%description -l pl
-Pakiet zawiera standardow± bibliotekê C dla mikrokontrolerów Atmel
+%description -l pl.UTF-8
+Pakiet zawiera standardową bibliotekę C dla mikrokontrolerów Atmel
 AVR.
 
 %prep
 %setup -q -n avr-libc-%{version} -a1 -a2
+%patch0 -p0
+%patch1 -p0
 
 %build
+
 CFLAGS="%{rpmcflags}" \
-CXXFLAGS="%{rpmcflags}"
+CXXFLAGS="%{rpmcflags}" \
 ./configure \
        --prefix=%{_prefix} \
        --build=%{_target_platform} \
-       --host=%{target} 
-%{__make}
+       --host=%{target}
+%{__make} \
+       DOC_INST_DIR="%{_datadir}/%{name}-%{version}"
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -47,10 +54,11 @@ install -d $RPM_BUILD_ROOT%{_datadir}/%{name}-%{version}
 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
 
 %{__make} install \
-       DESTDIR=$RPM_BUILD_ROOT 
+       DESTDIR=$RPM_BUILD_ROOT
 
 cp -rf doc/examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
 cp -rf man $RPM_BUILD_ROOT%{_datadir}/%{name}-%{version}
+rm -rf $RPM_BUILD_ROOT%{_docdir}/avr-libc-%{version}/examples
 
 %if 0%{!?debug:1}
 %{target}-strip -g $RPM_BUILD_ROOT%{arch}/lib/*.[oa] \
@@ -73,7 +81,7 @@ rm -rf $RPM_BUILD_ROOT
 %dir %{arch}/include/util
 %{arch}/include/util/*.h
 %{arch}/lib/*.[oa]
-%dir %{arch}/lib/avr?
-%{arch}/lib/avr?/*.[oa]
+%dir %{arch}/lib/avr*
+%{arch}/lib/avr*/*.[oa]
 %{_datadir}/%{name}-%{version}
 %{_examplesdir}/%{name}-%{version}
This page took 0.08532 seconds and 4 git commands to generate.