[packages/newlib] - up to 1.20.0, actually build newlib

qboosh qboosh at pld-linux.org
Sun Mar 3 11:28:17 CET 2013


commit 4e8ce7ad71b8f27b9bd2ef6719c30fb061d26f28
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun Mar 3 11:28:12 2013 +0100

    - up to 1.20.0, actually build newlib

 newlib.spec | 36 ++++++++++++++++++++----------------
 1 file changed, 20 insertions(+), 16 deletions(-)
---
diff --git a/newlib.spec b/newlib.spec
index 884a48d..9811cab 100644
--- a/newlib.spec
+++ b/newlib.spec
@@ -1,17 +1,20 @@
 Summary:	C library intended for use on embedded systems
 Summary(pl.UTF-8):	Biblioteka C przeznaczona dla systemów wbudowanych
 Name:		newlib
-Version:	1.16.0
+Version:	1.20.0
 Release:	0.1
 License:	GPL v2
 Group:		Libraries
 Source0:	ftp://sources.redhat.com/pub/newlib/%{name}-%{version}.tar.gz
-# Source0-md5:	bf8f1f9e3ca83d732c00a79a6ef29bc4
+# Source0-md5:	e5488f545c46287d360e68a801d470e8
 URL:		http://sources.redhat.com/newlib/
-BuildRequires:	autoconf
-BuildRequires:	automake
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
+# use single prefix as multilib is supported inside
+%define		newlibdir	/usr/lib/newlib
+%define		_exec_prefix	%{newlibdir}
+%define		tooldir		%{_exec_prefix}/%{_target_alias}
+
 %description
 Newlib is a C library intended for use on embedded systems. It is a
 conglomeration of several library parts, all under free software
@@ -26,15 +29,8 @@ pozwalających na łatwe użycie w produktach wbudowanych.
 %setup -q
 
 %build
-%{__aclocal}
-%{__autoconf}
-%configure
-
-cd etc
-%{__aclocal}
-%{__autoconf}
-%configure
-cd ..
+%configure \
+	--with-newlib
 
 %{__make}
 
@@ -43,11 +39,19 @@ rm -rf $RPM_BUILD_ROOT
 %{__make} install \
 	DESTDIR=$RPM_BUILD_ROOT
 
+# common gnu-standards files
+%{__rm} $RPM_BUILD_ROOT%{_infodir}/{configure,standards}.info*
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc ChangeLog MAINTAINERS README README-maintainer-mode
-%{_infodir}/configure.info*
-%{_infodir}/standards.info*
+%doc COPYING.LIBGLOSS COPYING.NEWLIB ChangeLog MAINTAINERS newlib/{NEWS,README}
+%dir %{newlibdir}
+%dir %{tooldir}
+%{tooldir}/include
+%dir %{tooldir}/lib
+%{tooldir}/lib/libc.a
+%{tooldir}/lib/libg.a
+%{tooldir}/lib/libm.a
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/newlib.git/commitdiff/4e8ce7ad71b8f27b9bd2ef6719c30fb061d26f28



More information about the pld-cvs-commit mailing list