SPECS (DEVEL): glibc.spec - merge parts from AC-branch

arekm arekm at pld-linux.org
Tue Mar 7 21:23:17 CET 2006


Author: arekm                        Date: Tue Mar  7 20:23:17 2006 GMT
Module: SPECS                         Tag: DEVEL
---- Log message:
- merge parts from AC-branch

---- Files affected:
SPECS:
   glibc.spec (1.590.2.33 -> 1.590.2.34) 

---- Diffs:

================================================================
Index: SPECS/glibc.spec
diff -u SPECS/glibc.spec:1.590.2.33 SPECS/glibc.spec:1.590.2.34
--- SPECS/glibc.spec:1.590.2.33	Tue Mar  7 20:19:41 2006
+++ SPECS/glibc.spec	Tue Mar  7 21:23:11 2006
@@ -6,6 +6,7 @@
 %bcond_with	tests		# perform "make test"
 %bcond_without	localedb	# don't build localedb-all (is time consuming)
 %bcond_with	cross		# build using crossgcc (without libgcc_eh)
+%bcond_without	memusage	# don't build memusage utility
 #
 # TODO:
 # - look at locale fixes/updates in bugzilla
@@ -14,6 +15,10 @@
 # - math/{test-fenv,test-tgmath,test-float,test-ifloat},
 #   debug/backtrace-tst(SEGV)  fail on alpha
 
+%ifarch sparc64
+%undefine	with_memusage
+%endif
+
 %define		llh_version	7:2.6.12.0-10
 
 Summary:	GNU libc
@@ -78,6 +83,7 @@
 BuildRequires:	binutils >= 2:2.15.90.0.3
 BuildRequires:	gcc >= 5:3.4
 BuildRequires:	gawk
+%{?with_memusage:BuildRequires:	gd-devel >= 2.0.1}
 BuildRequires:	gettext-devel >= 0.10.36
 %{?with_selinux:BuildRequires:	libselinux-devel >= 1.18}
 BuildRequires:	linux-libc-headers >= %{llh_version}
@@ -216,7 +222,7 @@
 %package misc
 Summary:	Utilities and data used by glibc
 Summary(pl):	Narzędzia i dane używane przez glibc
-Group:		Development/Libraries
+Group:		Applications/System
 AutoReq:	false
 Requires:	%{name} = %{epoch}:%{version}-%{release}
 
@@ -483,7 +489,7 @@
 Summary:	locale database source code
 Summary(es):	Código fuente de la base de datos de los locales
 Summary(pl):	Kod źródłowy bazy locale
-Group:		Daemons
+Group:		Libraries
 Requires:	%{name} = %{epoch}:%{version}-%{release}
 Requires:	gzip
 Requires:	sed
@@ -536,8 +542,8 @@
 %package -n iconv
 Summary:	Convert encoding of given files from one encoding to another
 Summary(es):	Convierte entre varias codificaciones de los ficheros dados
-Summary(pl):	Program do konwersji plików tekstowych z jednego kodowania do innego
-Group:		Applications/Text
+Summary(pl):	Moduły do konwersji plików tekstowych z jednego kodowania do innego
+Group:		Libraries
 Requires:	%{name} = %{epoch}:%{version}-%{release}
 
 %description -n iconv
@@ -554,12 +560,12 @@
 conversión de juegos de caracteres).
 
 %description -n iconv -l pl
-Program do konwersji plików tekstowych z jednego kodowania do innego.
-Musisz mieć zainstalowany ten pakiet jeżeli wykonujesz konwersję
-dokumentów z jednego kodowania do innego lub jeżeli masz zainstalowane
-jakieś programy, które korzystają z Generic Character Set Conversion
-Interface w glibc, czyli z zestawu funkcji z tej biblioteki, które
-umożliwiają konwersję kodowania danych z poziomu dowolnego programu.
+Moduły do konwersji plików tekstowych z jednego kodowania do innego.
+Trzeba mieć zainstalowany ten pakiet, aby wykonywać konwersję
+dokumentów z jednego kodowania do innego lub do używania programów
+korzystających z Generic Character Set Conversion Interface w glibc,
+czyli z zestawu funkcji z tej biblioteki, które umożliwiają konwersję
+kodowania danych z poziomu dowolnego programu.
 
 %package static
 Summary:	Static libraries
@@ -569,6 +575,7 @@
 Summary(uk):	óÔÁÔÉŢÎŚ ÂŚÂĚŚĎÔĹËÉ glibc
 Group:		Development/Libraries
 Requires:	%{name}-devel = %{epoch}:%{version}-%{release}
+Provides:	%{name}-static(%{_target_cpu}) = %{epoch}:%{version}-%{release}
 Obsoletes:	libiconv-static
 
 %description static
@@ -759,6 +766,22 @@
 %description -n nss_nisplus -l pl
 Moduł glibc NSS (Name Service Switch) dostępu do baz danych NIS+.
 
+%package memusage
+Summary:	A toy
+Summary(es):	Un juguete
+Summary(pl):	Zabawka
+Group:		Applications
+Requires:	%{name} = %{epoch}:%{version}-%{release}
+
+%description memusage
+A toy.
+
+%description memusage -l es
+Un juguete.
+
+%description memusage -l pl
+Zabawka.
+
 %package zoneinfo_right
 Summary:	Non-POSIX (real) time zones
 Summary(es):	Zonas de tiempo reales (no de POSIX)
@@ -852,6 +875,12 @@
 done
 %endif
 
+%if %{without cross}
+# compiling static using diet vs glibc saves 400k
+diet -Os %{__cc} %{SOURCE8} %{rpmcflags} -static -o postshell
+diet -Os %{__cc} %{SOURCE7} %{rpmcflags} -static -o glibc-postinst
+%endif
+
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{/etc/{logrotate.d,rc.d/init.d,sysconfig},%{_mandir}/man{3,8},/var/log,/var/{lib,run}/nscd}
@@ -880,10 +909,7 @@
 install elf/postshell				$RPM_BUILD_ROOT/sbin
 cd ..
 
-# a toy
-rm -f $RPM_BUILD_ROOT%{_bindir}/memusage*
-rm -f $RPM_BUILD_ROOT/%{_lib}/libmemusage.so
-
+%{?with_memusage:mv -f $RPM_BUILD_ROOT/%{_lib}/libmemusage.so  $RPM_BUILD_ROOT%{_libdir}}
 mv -f $RPM_BUILD_ROOT/%{_lib}/libpcprofile.so	$RPM_BUILD_ROOT%{_libdir}
 
 rm -rf $RPM_BUILD_ROOT%{_datadir}/zoneinfo/{localtime,posixtime,posixrules,posix/*}
@@ -1017,6 +1043,9 @@
 -/bin/cp -f /etc/ld.so.conf /etc/ld.so.conf.rpmsave
 -/bin/sed -i -e '1iinclude ld.so.conf.d/*.conf' /etc/ld.so.conf
 
+%post  memusage -p /sbin/ldconfig
+%postun memusage -p /sbin/ldconfig
+
 %post -n iconv -p %{_sbindir}/iconvconfig
 
 %post devel
@@ -1222,6 +1251,13 @@
 %defattr(644,root,root,755)
 %attr(755,root,root) /%{_lib}/libnss_nisplus*.so*
 
+%if %{with memusage}
+%files memusage
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/memusage*
+%attr(755,root,root) %{_libdir}/libmemusage.so
+%endif
+
 %files devel
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_libdir}/lib[!cmp]*.so
@@ -1378,6 +1414,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.590.2.34  2006/03/07 20:23:11  arekm
+- merge parts from AC-branch
+
 Revision 1.590.2.33  2006/03/07 19:19:41  arekm
 - up to 2.4 final
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/glibc.spec?r1=1.590.2.33&r2=1.590.2.34&f=u



More information about the pld-cvs-commit mailing list