]> git.pld-linux.org Git - packages/crossavr-libc.git/blobdiff - crossavr-libc.spec
- updated to 1.2.5
[packages/crossavr-libc.git] / crossavr-libc.spec
index 9612afec13fe26c1babc54e30e2690121931f806..f1af2a7df8f4486cfea159d4efcbf41e6eeac0c5 100644 (file)
@@ -1,25 +1,34 @@
 Summary:       AVR libc
 Summary(pl):   libc na AVR
 Name:          crossavr-libc
-Version:       20020203
+Version:       1.2.5
 Release:       1
-License:       Public Domain
+Epoch:         1
+License:       Modified BSD (see included LICENSE)
 Group:         Development/Tools
-Source0:       http://www.amelek.gda.pl/libc/avr-libc-%{version}.tar.gz
-BuildPrereq:   crossavr-binutils, crossavr-gcc
+Source0:       http://savannah.nongnu.org/download/avr-libc/avr-libc-%{version}.tar.bz2
+# Source0-md5: b335df54d54ad47570f3e1e6794b4532
+Source1:       http://savannah.nongnu.org/download/avr-libc/avr-libc-user-manual-%{version}.tar.bz2
+# Source1-md5: f8cbe7fd5c86ff63a3abb8cc787fc3b1
+URL:           http://www.nongnu.org/avr-libc/
+BuildRequires: crossavr-binutils >= 2.14
+BuildRequires: crossavr-gcc >= 3.3
+Requires:      crossavr-gcc >= 3.3
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define                target          avr
 %define                arch            %{_prefix}/%{target}
+%define                no_install_post_strip   1
 
 %description
 Contains the standard C library for Atmel AVR microcontrollers.
 
 %description -l pl
-Pakiet zawiera standardow± bibliotekê C dla mikrokontrolerów Atmel AVR.
+Pakiet zawiera standardow± bibliotekê C dla mikrokontrolerów Atmel
+AVR.
 
 %prep
-%setup -q -n avr-libc-%{version}
+%setup -q -n avr-libc-%{version} -a1
 
 %build
 CFLAGS="%{rpmcflags}" LDFLAGS="%{rpmldflags}" \
@@ -31,20 +40,32 @@ PREFIX=%{arch}
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT%{_prefix}
+install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
 
-cd build
-%{__make} install \
+%{__make} -C build install \
        prefix=$RPM_BUILD_ROOT%{_prefix}
 
+cp -rf doc/examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+
+%if 0%{!?debug:1}
+%{target}-strip -g $RPM_BUILD_ROOT%{arch}/lib/*.[oa] \
+       $RPM_BUILD_ROOT%{arch}/lib/avr?/*.[oa]
+%endif
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc doc/*.html
+%doc avr-libc-user-manual-%{version}/ ChangeLog LICENSE README NEWS
+%attr(755,root,root) %{_bindir}/*
 %dir %{arch}/include
 %{arch}/include/*.h
-%dir %{arch}/lib
+%dir %{arch}/include/avr
+%{arch}/include/avr/*.h
+%dir %{arch}/include/compat
+%{arch}/include/compat/*.h
 %{arch}/lib/*.[oa]
 %dir %{arch}/lib/avr?
 %{arch}/lib/avr?/*.[oa]
+%{_examplesdir}/%{name}-%{version}
This page took 0.171317 seconds and 4 git commands to generate.