%define target_cpu %(echo %{_target_cpu} | sed -e "s,i.86\\|pentium.\\|athlon,i386,;s,amd64,x86_64,;s,armv.*,arm,") Name: dietlibc Version: 0.33 Release: 1mamba Summary: A libc optimized for small size Group: Development/Libraries Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: http://www.fefe.de/dietlibc/ Source: http://www.fefe.de/dietlibc/dietlibc-%{version}.tar.bz2 #Source: http://www.kernel.org/pub/linux/libs/dietlibc/dietlibc-%{version}.tar.bz2 #Patch0: dietlibc-0.33-fix-missing-header-nice_s.patch License: GPL BuildRoot: %{_tmppath}/%{name}-%{version}-root %description The diet libc is a libc that is optimized for small size. It can be used to create small statically linked binaries for Linux on alpha, arm, hppa, ia64, i386, mips, s390, sparc, sparc64, ppc and x86_64. %package devel Summary: Development files for %{name} Group: Development/Libraries #Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} %description devel The diet libc is a libc that is optimized for small size. It can be used to create small statically linked binaries for Linux on alpha, arm, hppa, ia64, i386, mips, s390, sparc, sparc64, ppc and x86_64. This package contains static libraries and header files need for development. %prep %setup -q #%patch0 -p1 %build make \ CROSS=%{_target_platform}- \ MYARCH=%{target_cpu} \ ARCH=%{target_cpu} \ all profiling \ prefix=%{_libdir}/%{name} \ BINDIR=%{_bindir} \ MAN1DIR=%{_mandir}/man1 #dyn_lib #case %{_target_cpu} in # i586) # make %{_smp_mflags} MYARCH=$TARGET_CPU \ # CROSS=ppc-qilinux-linux-gnu- ARCH=ppc all # ;; # *) # make %{_smp_mflags} MYARCH=$TARGET_CPU \ # CROSS=i586-qilinux-linux-gnu- ARCH=i386 all # ;; #esac %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" install -d %{buildroot}/etc/ #case %{_target_cpu} in # i586) # TARGET_CPU=i386 # make install \ # MYARCH=$TARGET_CPU \ # ARCH=ppc \ # DESTDIR=%{buildroot} \ # prefix=%{_libdir}/%{name} \ # BINDIR=%{_bindir} \ # MAN1DIR=%{_mandir}/man1 # ;; # *) # TARGET_CPU=%{_target_cpu} # make install \ # MYARCH=$TARGET_CPU \ # ARCH=i386 \ # DESTDIR=%{buildroot} \ # prefix=%{_libdir}/%{name} \ # BINDIR=%{_bindir} \ # MAN1DIR=%{_mandir}/man1 # ;; #esac make install \ MYARCH=%{target_cpu} \ DESTDIR=%{buildroot} \ prefix=%{_libdir}/%{name} \ BINDIR=%{_bindir} \ MAN1DIR=%{_mandir}/man1 %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" #%files #%defattr(-,root,root,0755) #%dir %{_libdir}/%{name} #%dir %{_libdir}/%{name}/lib-%{target_cpu} #%{_libdir}/%{name}/lib-%{target_cpu}/*.so #%{_sysconfdir}/diet.ld.conf #%doc AUTHOR COPYING %files devel %defattr(-,root,root,0755) %{_bindir}/diet #%{_bindir}/diet-dyn %{_bindir}/dnsd %{_bindir}/elftrunc %{_libdir}/%{name}/include %{_libdir}/%{name}/lib-%{target_cpu}/*.? %{_mandir}/man1/* %doc BUGS CAVEAT CHANGES FAQ PORTING %doc README README.* SECURITY THANKS TODO %changelog * Thu Jun 20 2013 Automatic Build System 0.33-1mamba - update to 0.33 * Fri Jun 05 2009 Automatic Build System 0.32-1mamba - automatic update by autodist * Tue Aug 28 2007 Stefano Cotta Ramusino 0.31-1mamba - update to 0.31 * Mon Sep 05 2005 Silvan Calarco 0.29-1qilnx - update to version 0.29 by autospec - added ppc target support * Fri Nov 19 2004 Davide Madrisan 0.27-1qilnx - update to version 0.27 by autospec * Mon Apr 26 2004 Davide Madrisan 0.25-1qilnx - rebuilt with dietlibc-0.25 * Thu Mar 04 2004 Davide Madrisan 0.24-1qilnx - rebuilt with dietlibc-0.24 - added profiling and dynamic library versions * Mon Apr 23 2003 Silvan Calarco 0.22-2qilnx - changed prefix to make diet find its libraries * Mon Apr 23 2003 Silvan Calarco 0.22-1qilnx - first build