]> git.pld-linux.org Git - packages/util-linux.git/blobdiff - util-linux.spec
- build cfdisk and sfdisk on sparc too. Why it was disabled by default???
[packages/util-linux.git] / util-linux.spec
index 8093a136d3dfcf579cb3b88af6d77d1e08bc98f6..d7878520c673249cd743cda43a8945925d131f3f 100644 (file)
@@ -1,7 +1,9 @@
 #
 # Conditional build:
 # _without_crypto      - without kerneli cryptography
-# _with_pivot_root
+# _with_pivot_root     - build pivot_root utility (auto-selected if 2.4 kernel)
+# _without_dist_kernel - do nothing for now
+# _with_uClibc          - don't build few utilities
 #
 # TODO:
 # - move raw to /sbin (potentially can be used before mount partitions)??
 %define                _kernel24       %(echo %{_kernel_ver} | grep -q '2\.[012]\.' ; echo $?)
 %if %{_kernel24}
 %define                _kernel_series  2.4
+%define                _with_pivot_root 1
 %else
 %define                _kernel_series  2.2
 %endif
-%define                _release        1
 
 Summary:       Collection of basic system utilities for Linux
 Summary(de):   Sammlung von grundlegenden Systemdienstprogrammen für Linux
@@ -21,19 +23,22 @@ Summary(es):        Colect
 Summary(fr):   Ensemble d'utilitaires système de base pour Linux
 Summary(pl):   Zbiór podstawowych narzêdzi systemowych dla Linuksa
 Summary(pt_BR):        Coletânea de utilitários básicos de sistema para Linux
+Summary(ru):   îÁÂÏÒ ÂÁÚÏ×ÙÈ ÓÉÓÔÅÍÎÙÈ ÕÔÉÌÉÔ ÄÌÑ Linux
 Summary(tr):   Temel sistem araçlarý
+Summary(uk):   îÁ¦ҠÂÁÚÏ×ÉÈ ÓÉÓÔÅÍÎÉÈ ÕÔÉ̦ԠÄÌÑ Linux
 Name:          util-linux
-Version:       2.11m
-Release:       %{_release}
+Version:       2.11z
+%define        _rel    1
+Release:       %{_rel}
 License:       distributable
 Group:         Applications/System
-Group(de):     Applikationen/System
-Group(pl):     Aplikacje/System
 Source0:       ftp://ftp.win.tue.nl/pub/linux-local/utils/util-linux/%{name}-%{version}.tar.gz
-Source1:       %{name}-non-english-man-pages.tar.bz2
+# Source0-md5: c669467901c77a9a0e84f37cee477bbe
+Source1:       http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-non-english-man-pages.tar.bz2
+# Source1-md5: 3c940c7e7fe699eaa2ddb1bffb3de2fe
 Source2:       login.pamd
-Source3:       rawdevices-init
-Source4:       rawdevices-sysconfig
+Source3:       rawdevices.init
+Source4:       rawdevices.sysconfig
 Patch0:                %{name}-MCONFIG.patch
 Patch1:                %{name}-fdisk.patch
 Patch2:                %{name}-utmpx.patch
@@ -41,28 +46,29 @@ Patch3:             %{name}-fhs.patch
 Patch4:                %{name}-login.patch
 Patch5:                %{name}-kerneli.patch
 Patch6:                %{name}-info.patch
-Patch7:                %{name}-fdisk2.patch
-Patch8:                ftp://ftp.linuxnfs.sourceforge.org:/pub/nfs/%{name}-2.10m-mount-compat.patch
-Patch9:                %{name}-syscall.patch
-Patch10:       %{name}-raw.patch
-Patch11:       %{name}-gecos.patch
-Patch12:       %{name}-glibc.patch
-Patch13:       %{name}-kerneli-2.4.patch
-Patch14:       %{name}-losetup-getpass.patch
-Patch15:       %{name}-login-problems.patch
+Patch7:                ftp://ftp.linuxnfs.sourceforge.org/pub/nfs/%{name}-2.10m-mount-compat.patch
+Patch8:                %{name}-syscall.patch
+Patch9:                %{name}-raw.patch
+Patch10:       %{name}-gecos.patch
+Patch11:       %{name}-glibc.patch
+#based on:     http://www.kernel.org/pub/linux/kernel/people/hvr/util-linux-patch-int/%{name}-2.11n.patch.bz2
+Patch12:       %{name}-cryptoapi.patch
+Patch13:       %{name}-losetup-getpass.patch
+Patch14:       %{name}-posixsh.patch
+Patch15:       %{name}-ppc-hwclock.patch
+Patch16:       %{name}-sparctoo.patch
 BuildRequires: gettext-devel
 BuildRequires: grep
-BuildRequires: ncurses-devel >= 5.0
-BuildRequires: pam-devel >= 0.66
+%{!?_with_uClibc:BuildRequires:        ncurses-devel >= 5.0}
+%{!?_with_uClibc:BuildRequires:        pam-devel >= 0.66}
 BuildRequires: texinfo
 BuildRequires: textutils
-%if %{?BOOT:1}%{!?BOOT:0}
-BuildRequires: glibc-static
-%endif
-Requires:      pam >= 0.66
+%{!?_with_uClibc:BuildRequires:        zlib-devel}
+%{!?_with_uClibc:Requires:     pam >= 0.66}
 Provides:      fdisk
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 Obsoletes:     util-linux-suids
+Obsoletes:     cramfs
 
 %define                debugcflags     -O1 -g
 
@@ -93,35 +99,47 @@ syst
 %description -l pl
 util-linux zawiera wiele ró¿nych, niskopoziomowych narzêdzi
 systemowych niezbêdnych do prawid³owego dzia³ania Linuksa. W pakiecie
-znajduj± siê miêdzy innymi narzêdzia konfiguracyjne, takie jak fdisk
-programy systemowe, takie jak logger.
+znajduj± siê miêdzy innymi narzêdzia konfiguracyjne, takie jak fdisk i
+programy systemowe, takie jak logger.
 
 %description -l pt_BR
-util-linux contém uma grande variedade de utilitários de sistema
-de baixo-nível necessários para um sistema Linux funcional. Isso
-inclui, entre outras coisas, ferramentas de configuração como fdisk
-programas de sistema como login.
+util-linux contém uma grande variedade de utilitários de sistema de
+baixo-nível necessários para um sistema Linux funcional. Isso inclui,
+entre outras coisas, ferramentas de configuração como fdisk e
+programas de sistema como login.
 
 %description -l tr
 þlevsel durumdaki bir Linux sistemi için gerekli birçok alt düzey
 sistem araçlarýný içerir. Bunlar arasýnda fdisk gibi yapýlandýrma
 uygulamalarý ve logger gibi sistem programlarý sayýlabilir.
 
+%description -l uk
+ãÅÊ ÐÁËÅԠͦÓÔÉÔØ ×ÅÌÉËÉÊ ÎÁ¦ҠÓÉÓÔÅÍÎÉÈ ÕÔÉ̦ԠÎÉÚØËÏÇÏ Ò¦×ÎÑ, Ñ˦
+ÎÅÏÂȦÄΦ ÄÌÑ ÆÕÎËæÏÎÕ×ÁÎÎÑ ÓÉÓÔÅÍÉ Linux. ÷¦Î Í¦ÓÔÉÔØ, ÏËҦ͠¦ÎÛÉÈ,
+ËÏÎƦÇÕÒÁæÊΦ ¦ÎÓÔÒÕÍÅÎÔÉ (ÔÁ˦ ÑË fdisk) ÔÁ ÓÉÓÔÅÍΦ ÐÒÏÇÒÁÍÉ (ÔÁ˦
+ÑË login).
+
+%description -l ru
+üÔÏÔ ÐÁËÅÔ ÓÏÄÅÒÖÉÔ ÂÏÌØÛÏÊ ÎÁÂÏÒ ÓÉÓÔÅÍÎÙÈ ÕÔÉÌÉÔ ÎÉÚËÏÇÏ ÕÒÏ×ÎÑ,
+ËÏÔÏÒÙÅ ÎÅÏÂÈÏÄÉÍÙ ÄÌÑ ÆÕÎËÃÉÏÎÉÒÏ×ÁÎÉÑ ÓÉÓÔÅÍÙ Linux. ïΠ×ËÌÀÞÁÅÔ, ×
+ÞÉÓÌÅ ÐÒÏÞÉÈ, ÉÎÓÔÒÕÍÅÎÔÙ ËÏÎÆÉÇÕÒÁÃÉÉ, ÔÁËÉÅ ËÁË fdisk, É ÓÉÓÔÅÍÎÙÅ
+ÐÒÏÇÒÁÍÍÙ, ÔÁËÉÅ ËÁË login.
+
 %package -n losetup
 Summary:       Programs for setting up and configuring loopback devices
 Summary(de):   Programme zum Einrichten und Konfigurieren von Loopback-Geräten
 Summary(fr):   Programmes pour mettre en place et configurer les loopback
 Summary(pl):   Program do konfiguracji urz±dzenia blokowego loopback
 Summary(tr):   Yerel-çevrim aygýtlarýnýn kurulmasý ve ayarlanmasý için programlar
+Summary(ru):   ðÒÏÇÒÁÍÍÙ ÄÌÑ ÎÁÓÔÒÏÊËÉ loopback-ÕÓÔÒÏÊÓÔ×
+Summary(uk):   ðÒÏÇÒÁÍÉ ÄÌÑ ËÏÎƦÇÕÒÁ槠loopback-ÐÒÉÓÔÒϧ×
 Group:         Applications/System
-Group(de):     Applikationen/System
-Group(pl):     Aplikacje/System
-Release:       %{_release}@%{_kernel_series}
-%if %{_kernel24}
-Conflicts:     kernel < 2.3.0
-%else
-Conflicts:     kernel >= 2.3.0
-%endif
+Release:       %{_rel}@%{_kernel_series}
+#%if %{_kernel24}
+#%%{!?_without_dist_kernel:Requires:   kernel >= 2.3.0}
+#%else
+#%%{!?_without_dist_kernel:Requires:   kernel < 2.3.0}
+#%endif
 
 %description -n losetup
 Linux supports a special block device called the loopback device,
@@ -165,21 +183,37 @@ aras
 programlar içerir. Blok yerel-çevrim aygýtý ifconfig komutu ile
 yapýlandýrýlan að yerel-çevrim aygýtý ile karýþtýrýlmamalýdýr.
 
+%description -n losetup -l ru
+Linux ÐÏÄÄÅÒÖÉ×ÁÅÔ ÓÐÅÃÉÁÌØÎÏÅ ÂÌÏÞÎÏÅ ÕÓÔÒÏÊÓÔ×Ï, ÎÁÚÙ×ÁÅÍÏÅ
+loopback, ËÏÔÏÒÏÅ ÏÔÏÂÒÁÖÁÅÔ ÏÂÙÞÎÙÊ ÆÁÊÌ × ×ÉÒÔÕÁÌØÎÏÅ ÂÌÏÞÎÏÅ
+ÕÓÔÒÏÊÓÔ×Ï. üÔÏ ÐÏÚ×ÏÌÑÅÔ ÉÓÐÏÌØÚÏ×ÁÔØ ÆÁÊÌ ËÁË ×ÉÒÔÕÁÌØÎÕÀ ÆÁÊÌÏ×ÕÀ
+ÓÉÓÔÅÍÕ. Losetup ÉÓÐÏÌØÚÕÅÔÓÑ ÄÌÑ Ó×ÑÚÉ loopback-ÕÓÔÒÏÊÓÔ× Ó ÏÂÙÞÎÙÍÉ
+ÆÁÊÌÁÍÉ ÉÌÉ ÂÌÏÞÎÙÍÉ ÕÓÔÒÏÊÓÔ×ÁÍÉ, ÄÌÑ ÏÔÓÏÅÄÉÎÅÎÉÑ loopback-ÕÓÔÒÏÊÓÔ×
+É ÚÁÐÒÏÓÏ× ÉÈ ÓÔÁÔÕÓÁ.
+
+%description -n losetup -l uk
+Linux Ð¦ÄÔÒÉÍÕ¤ ÓÐÅæÁÌØÎÉÊ ÂÌÏÞÎÉÊ ÐÒÉÓÔÒ¦Ê, loopback, ÑËÉÊ
+צÄÏÂÒÁÖÕ¤ Ú×ÉÞÁÊÎÉÊ ÆÁÊ̠ՠצÒÔÕÁÌØÎÉÊ ÂÌÏÞÎÉÊ ÐÒÉÓÔÒ¦Ê. ãÅ ÄÏÚ×ÏÌѤ
+×ÉËÏÒÉÓÔÏ×Õ×ÁÔÉ ÆÁÊÌ ÑˠצÒÔÕÁÌØÎÕ ÆÁÊÌÏ×Õ ÓÉÓÔÅÍÕ. Losetup
+×ÉËÏÒÉÓÔÏ×ÕÀÔØ ÄÌÑ Ú×'ÑÚËÕ loopback-ÐÒÉÓÔÒϧנڦ Ú×ÉÞÁÊÎÉÍÉ ÆÁÊÌÁÍÉ
+ÁÂÏ ÂÌÏÞÎÉÍÉ ÐÒÉÓÔÒÏÑÍÉ, ÄÌѠצÄ'¤ÄÎÁÎÎÑ loopback-ÐÒÉÓÔÒϧנÔÁ
+ÚÁÐÒÏӦנ§È ÓÔÁÎÕ.
+
 %package -n mount
 Summary:       Programs for mounting and unmounting filesystems
 Summary(de):   Programme zum montieren und abmontieren von Dateisystemen
-Summary(fr):   Programme pour monter et démonter des systèmes de fichiers.
+Summary(fr):   Programme pour monter et démonter des systèmes de fichiers
 Summary(pl):   Programy do montowania i odmontowywania systemów plików
 Summary(tr):   Dosya sistemlerini baðlamak ve çözmek için programlar
+Summary(uk):   ðÒÏÇÒÁÍÉ ÄÌÑ ÍÏÎÔÕ×ÁÎÎÑ ÔÁ ÒÏÚÍÏÎÔÕ×ÁÎÎÑ ÆÁÊÌÏ×ÉÈ ÓÉÓÔÅÍ
+Summary(ru):   ðÒÏÇÒÁÍÍÙ ÄÌÑ ÍÏÎÔÉÒÏ×ÁÎÉÑ É ÒÁÚÍÏÎÔÉÒÏ×ÁÎÉÑ ÆÁÊÌÏ×ÙÈ ÓÉÓÔÅÍ
 Group:         Applications/System
-Group(de):     Applikationen/System
-Group(pl):     Aplikacje/System
-Release:       %{_release}@%{_kernel_series}
-%if %{_kernel24}
-Conflicts:     kernel < 2.3.0
-%else
-Conflicts:     kernel >= 2.3.0
-%endif
+Release:       %{_rel}@%{_kernel_series}
+#%if %{_kernel24}
+#%%{!?_without_dist_kernel:Requires:   kernel >= 2.3.0}
+#%else
+#%%{!?_without_dist_kernel:Requires:   kernel < 2.3.0}
+#%endif
 
 %description -n mount
 mount is used for adding new filesystems, both local and networked, to
@@ -218,12 +252,28 @@ eklenmesi i
 dosya sistemlerine eriþimini deðiþtirmek için de kullanýlýr. Bu paket
 sisteminizin iþlevselliði açýsýndan kritiktir.
 
+%description -n mount -l ru
+ðÁËÅÔ mount ÓÏÄÅÒÖÉÔ ÐÒÏÇÒÁÍÍÙ mount, umount, swapon É swapoff. æÁÊÌÙ
+× ×ÁÛÅÊ ÓÉÓÔÅÍÅ ÏÒÇÁÎÉÚÏ×ÁÎÙ × ×ÉÄÅ ÏÄÎÏÇÏ ÂÏÌØÛÏÇÏ ÄÅÒÅ×Á ÉÌÉ
+ÉÅÒÁÒÈÉÉ. üÔÉ ÆÁÊÌÙ ÍÏÇÕÔ ÂÙÔØ ÒÁÚÍÅÝÅÎÙ ÎÁ ÒÁÚÎÙÈ ÕÓÔÒÏÊÓÔ×ÁÈ.
+ëÏÍÁÎÄÁ mount ÐÒÉÓÏÅÄÉÎÑÅÔ ÆÁÊÌÏ×ÕÀ ÓÉÓÔÅÍÕ ÎÁ ÎÅËÏÔÏÒÏÍ ÕÓÔÒÏÊÓÔ×Å Ë
+ÄÅÒÅ×Õ ÆÁÊÌÏ× ×ÁÛÅÊ ÓÉÓÔÅÍÙ. ëÏÍÁÎÄÁ umount ÏÔÓÏÅÄÉÎÑÅÔ ÆÁÊÌÏ×ÕÀ
+ÓÉÓÔÅÍÕ ÏÔ ÄÅÒÅ×Á. Swapon É swapoff, ÓÏÏÔ×ÅÔÓÔ×ÅÎÎÏ, ÒÁÚÒÅÛÁÅÔ É
+ÚÁÐÒÅÝÁÅÔ Ó×ÏÐÐÉÎÇ × ÏÐÒÅÄÅÌÅÎÎÙÅ ÆÁÊÌÙ É ÕÓÔÒÏÊÓÔ×Á.
+
+%description -n mount -l uk
+ðÁËÅÔ mount Í¦ÓÔÉÔØ ÐÒÏÇÒÁÍÉ mount, umount, swapon ÔÁ swapoff. æÁÊÌÉ Õ
+×ÁۦʠÓÉÓÔÅͦ ÏÒÇÁΦÚÏ×ÁΦ Õ ×ÉÇÌÑĦ ÏÄÎÏÇÏ ×ÅÌÉËÏÇÏ ÄÅÒÅ×Á ÁÂÏ
+¦¤ÒÁÒȦ§. ã¦ ÆÁÊÌÉ ÍÏÖÕÔØ ÂÕÔÉ ÒÏÚÔÁÛÏ×ÁΦ ÎÁ Ò¦ÚÎÉÈ ÐÒÉÓÔÒÏÑÈ.
+ëÏÍÁÎÄÁ mount Ð¦Ä'¤ÄÎÕ¤ ÆÁÊÌÏ×Õ ÓÉÓÔÅÍÕ ÎÁ ÄÅÑËÏÍÕ ÐÒÉÓÔÒϧ ÄÏ ÄÅÒÅ×Á
+ÆÁÊ̦נ×ÁÛϧ ÓÉÓÔÅÍÉ. ëÏÍÁÎÄÁ umount ×¦Ä'¤ÄÎÕ¤ ÆÁÊÌÏ×Õ ÓÉÓÔÅÍՠצÄ
+ÄÅÒÅ×Á. Swapon ÔÁ swapoff, ×¦ÄÐÏצÄÎÏ, ÄÏÚ×ÏÌѤ ÔÁ ÚÁÂÏÒÏÎÀ¤ Ó×ÏЦÎÇ Õ
+×ÉÚÎÁÞÅΦ ÆÁÊÌÉ ÁÂÏ ÐÒÉÓÔÒϧ.
+
 %package chkdupexe
 Summary:       chkdupexe - find duplicate executables
 Summary(pl):   chkdupexe odszukuje powtarzaj±ce siê pliki uruchamialne
 Group:         Applications/System
-Group(de):     Applikationen/System
-Group(pl):     Aplikacje/System
 
 %description chkdupexe
 chkdupexe will scan the union of $PATH and a hardcoded list of common
@@ -242,8 +292,6 @@ Summary(fr):        Configure le pilote du port parall
 Summary(pl):   Program do konfigurowania sterownika portu równoleg³ego
 Summary(tr):   Çekirdeðin paralel baðlantý noktasý sürücüsünü ayarlar
 Group:         Applications/System
-Group(de):     Applikationen/System
-Group(pl):     Aplikacje/System
 
 %description -n tunelp
 tunelp aids in configuring the kernel parallel port driver.
@@ -265,8 +313,6 @@ Paralel ba
 Summary:       login is used when signing onto a system
 Summary(pl):   login jest u¿ywany do rozpoczêcia pracy w systemie
 Group:         Applications/System
-Group(de):     Applikationen/System
-Group(pl):     Aplikacje/System
 Obsoletes:     heimdal-login
 Requires:      pam-pld
 
@@ -284,8 +330,6 @@ do prze
 Summary:       Alternative Linux getty
 Summary(pl):   Alternatywny getty
 Group:         Applications/System
-Group(de):     Applikationen/System
-Group(pl):     Aplikacje/System
 Requires:      login
 
 %description -n agetty
@@ -298,8 +342,6 @@ agetty jest prostym linuksowym getty z obs
 Summary:       Support for raw-devices
 Summary(pl):   Obs³uga raw-device'ów
 Group:         Applications/System
-Group(de):     Applikationen/System
-Group(pl):     Aplikacje/System
 PreReq:                /sbin/chkconfig
 
 %description -n rawdevices
@@ -308,19 +350,6 @@ Support for raw-devices.
 %description -n rawdevices -l pl
 Obs³uga raw-device'ów.
 
-%package BOOT
-Summary:       util-linux for bootdisk
-Summary(pl):   util-linux dla bootkietki
-Group:         Applications/System
-Group(de):     Applikationen/System
-Group(pl):     Aplikacje/System
-
-%description BOOT
-util-linux for bootdisk.
-
-%description BOOT -l pl
-util-linux dla bootkietki.
-
 %prep
 %setup -q -a1
 %patch0 -p1
@@ -329,7 +358,7 @@ util-linux dla bootkietki.
 %patch3 -p1
 %patch4 -p1
 %if %{_kernel24}
-%{!?_without_crypto:%patch13 -p1}
+%{!?_without_crypto:%patch12 -p1}
 %else
 %{!?_without_crypto:%patch5 -p1}
 %endif
@@ -339,36 +368,38 @@ util-linux dla bootkietki.
 %patch9 -p1
 %patch10 -p1
 %patch11 -p1
-%patch12 -p1
 %if !%{_kernel24}
-%{!?_without_crypto:%patch14 -p1}
+%{!?_without_crypto:%patch13 -p1}
 %endif
+%patch14 -p1
 %patch15 -p1
+%patch16 -p1
 
 %build
-CFLAGS="%{rpmcflags} -I%{_includedir}/ncurses -I%{_kernelsrcdir}/include"
-%configure2_13
-
-%if %{?BOOT:1}%{!?BOOT:0}
-%{__make} -C fdisk fdisk OPT="%{rpmcflags}" LDFLAGS="-static"
-mv -f fdisk/fdisk fdisk-BOOT
-%{__make} -C fdisk clean
-%endif
-
+CC="%{__cc}"
+LDFLAGS="%{rpmldflags}"
+CFLAGS="%{rpmcflags} -I%{_includedir}/ncurses"
+export CC CFLAGS LDFLAGS
+# using %%configure2_13 isn't very wise here, it is not autoconf generated
+# configure and it doesn't take any parameters
+./configure
+
+%{?_with_uClibc:echo 'char *nl_langinfo (nl_item x){return "";}' >> misc-utils/cal.c}
 %{__make} OPT="%{rpmcflags}" \
        MOREHELPDIR=%{_datadir}/misc \
-       ADD_RAW="yes"
+       %{!?_with_uClibc:ADD_RAW="yes"} \
+       %{?_with_uClibc:HAVE_RAW_H="no" HAVE_PAM="no"}
+
+%ifarch ppc
+%{__cc} %{rpmcflags} %{rpmldflags} clock-ppc.c -o clock-ppc
+%endif
 
-(cd sys-utils; makeinfo ipc.texi)
+cd sys-utils
+makeinfo ipc.texi
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
-%if %{?BOOT:1}%{!?BOOT:0}
-install -d $RPM_BUILD_ROOT%{_libdir}/bootdisk/sbin
-install fdisk-BOOT $RPM_BUILD_ROOT%{_libdir}/bootdisk/sbin/fdisk
-%endif
-
 install -d $RPM_BUILD_ROOT/{bin,sbin,etc/{pam.d,logrotate,rc.d/init.d,sysconfig}} \
        $RPM_BUILD_ROOT{%{_bindir},%{_sbindir},%{_infodir},%{_datadir}/misc} \
        $RPM_BUILD_ROOT{%{_examplesdir},%{_mandir}/man{1,5,6,8}}
@@ -380,7 +411,8 @@ install -d $RPM_BUILD_ROOT/{bin,sbin,etc/{pam.d,logrotate,rc.d/init.d,sysconfig}
        GETOPTDIR=$RPM_BUILD_ROOT%{_examplesdir}/getopt \
        USRGAMESDIR=$RPM_BUILD_ROOT%{_bindir} \
        USE_TTY_GROUP=no \
-       ADD_RAW="yes"
+       %{!?_with_uClibc:ADD_RAW="yes"} \
+       %{?_with_uClibc:HAVE_RAW_H="no" HAVE_PAM="no"}
 
 install %{SOURCE2} $RPM_BUILD_ROOT/etc/pam.d/login
 install %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/rawdevices
@@ -392,6 +424,15 @@ install -d $RPM_BUILD_ROOT/{etc/security,var/lock}
 
 :> $RPM_BUILD_ROOT/var/lock/wtmpxlock
 
+%ifarch ppc
+mv -f $RPM_BUILD_ROOT/sbin/hwclock $RPM_BUILD_ROOT/sbin/hwclock.rtc
+install clock-ppc $RPM_BUILD_ROOT/sbin/hwclock.adb
+#yneed fix: 
+# hwclock.adb is for PowerMac (default)
+# hwclock.rtc is for RS/6000 (PreP,CHRP)
+ln -sf hwclock.adb $RPM_BUILD_ROOT/sbin/hwclock
+%endif
+
 ln -sf hwclock $RPM_BUILD_ROOT/sbin/clock
 echo '.so hwclock.8' > $RPM_BUILD_ROOT%{_mandir}/man8/clock.8
 
@@ -406,9 +447,18 @@ for d in cs de es fi fr hu id it ja ko nl pl ; do
     done
 done
 
-gzip -9nf */README.*
+# cleanup, remove files not included in package
+rm -f $RPM_BUILD_ROOT/%{_bindir}/{chfn,chsh,newgrp}
+rm -f $RPM_BUILD_ROOT/%{_sbindir}/vipw
+rm -f $RPM_BUILD_ROOT/%{_mandir}/man1/chfn.1*
+rm -f $RPM_BUILD_ROOT/%{_mandir}/man1/chsh.1*
+rm -f $RPM_BUILD_ROOT/%{_mandir}/man1/newgrp.1*
+rm -f $RPM_BUILD_ROOT/%{_mandir}/man8/sln.8*
+rm -f $RPM_BUILD_ROOT/%{_mandir}/man8/vigr.8*
+rm -f $RPM_BUILD_ROOT/%{_mandir}/man8/vipw.8*
 
-%find_lang %{name}
+
+%{!?_with_uClibc:%find_lang %{name}}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -433,12 +483,18 @@ if [ -f /var/lock/subsys/rawdevices ]; then
 fi
 /sbin/chkconfig --del rawdevices
 
-%files -f %{name}.lang
+%files %{!?_with_uClibc:-f %{name}.lang}
 %defattr(644,root,root,755)
-%doc */README.*
+%doc */README.* text-utils/LICENSE.pg
 
 %attr(755,root,root) /sbin/clock
-%attr(755,root,root) /sbin/hwclock
+%ifarch ppc
+%attr(755,root,root) %config(noreplace) /sbin/hwclock
+%attr(755,root,root) /sbin/hwclock.adb
+%attr(755,root,root) /sbin/hwclock.rtc
+%else
+%attr(755,root,root) /sbin/hwclock*
+%endif
 
 %{_mandir}/man8/clock.8*
 %{_mandir}/man8/hwclock.8*
@@ -452,7 +508,7 @@ fi
 %attr(0755,root,root) /bin/arch
 %attr(0755,root,root) /bin/dmesg
 %attr(0755,root,root) /bin/kill
-%attr(0755,root,root) /bin/more
+%{!?_with_uClibc:%attr(0755,root,root) /bin/more}
 %attr(0755,root,root) /sbin/blockdev
 %attr(0755,root,root) /sbin/mkfs
 %attr(0755,root,root) /sbin/mkswap
@@ -479,8 +535,11 @@ fi
 %attr(0755,root,root) %{_bindir}/script
 %attr(0755,root,root) %{_bindir}/setsid
 %attr(0755,root,root) %{_bindir}/setfdprm
-%attr(0755,root,root) %{_bindir}/setterm
-%attr(0755,root,root) %{_bindir}/ul
+%{!?_with_uClibc:%attr(0755,root,root) %{_bindir}/pg}
+%attr(0755,root,root) %{_bindir}/line
+%attr(0755,root,root) %{_bindir}/rename
+%{!?_with_uClibc:%attr(0755,root,root) %{_bindir}/setterm}
+%{!?_with_uClibc:%attr(0755,root,root) %{_bindir}/ul}
 %attr(0755,root,root) %{_bindir}/whereis
 %attr(2755,root,tty) %{_bindir}/write
 %attr(0755,root,root) %{_sbindir}/readprofile
@@ -495,16 +554,19 @@ fi
 %{_mandir}/man1/getopt.1*
 %{_mandir}/man1/hexdump.1*
 %{_mandir}/man1/kill.1*
+%{_mandir}/man1/line.1*
 %{_mandir}/man1/logger.1*
 %{_mandir}/man1/look.1*
 %{_mandir}/man1/mcookie.1*
-%{_mandir}/man1/more.1*
+%{!?_with_uClibc:%{_mandir}/man1/more.1*}
 %{_mandir}/man1/namei.1*
+%{!?_with_uClibc:%{_mandir}/man1/pg.1*}
 %{_mandir}/man1/readprofile.1*
 %{_mandir}/man1/rev.1*
+%{_mandir}/man1/rename.1*
 %{_mandir}/man1/script.1*
-%{_mandir}/man1/setterm.1*
-%{_mandir}/man1/ul.1*
+%{!?_with_uClibc:%{_mandir}/man1/setterm.1*}
+%{!?_with_uClibc:%{_mandir}/man1/ul.1*}
 %{_mandir}/man1/whereis.1*
 %{_mandir}/man1/write.1*
 
@@ -616,12 +678,14 @@ fi
 %lang(ja) %{_mandir}/ja/man1/getopt.1*
 %lang(ja) %{_mandir}/ja/man1/hexdump.1*
 %lang(ja) %{_mandir}/ja/man1/kill.1*
+%lang(ja) %{_mandir}/ja/man1/line.1*
 %lang(ja) %{_mandir}/ja/man1/logger.1*
 %lang(ja) %{_mandir}/ja/man1/look.1*
 %lang(ja) %{_mandir}/ja/man1/mcookie.1*
 %lang(ja) %{_mandir}/ja/man1/more.1*
 %lang(ja) %{_mandir}/ja/man1/namei.1*
 %lang(ja) %{_mandir}/ja/man1/readprofile.1*
+%lang(ja) %{_mandir}/ja/man1/rename.1*
 %lang(ja) %{_mandir}/ja/man1/rev.1*
 %lang(ja) %{_mandir}/ja/man1/script.1*
 %lang(ja) %{_mandir}/ja/man1/setterm.1*
@@ -665,7 +729,7 @@ fi
 %lang(ko) %{_mandir}/ko/man1/ul.1*
 %lang(ko) %{_mandir}/ko/man1/whereis.1*
 %lang(ko) %{_mandir}/ko/man1/write.1*
+
 %lang(ko) %{_mandir}/ko/man8/ctrlaltdel.8*
 %lang(ko) %{_mandir}/ko/man8/dmesg.8*
 %lang(ko) %{_mandir}/ko/man8/fdformat.8*
@@ -687,6 +751,7 @@ fi
 %lang(pl) %{_mandir}/pl/man1/hexdump.1*
 %lang(pl) %{_mandir}/pl/man1/kill.1*
 %lang(pl) %{_mandir}/pl/man1/look.1*
+%lang(pl) %{_mandir}/pl/man1/logger.1*
 %lang(pl) %{_mandir}/pl/man1/more.1*
 %lang(pl) %{_mandir}/pl/man1/rev.1*
 %lang(pl) %{_mandir}/pl/man1/script.1*
@@ -706,18 +771,18 @@ fi
 
 %dir %{_examplesdir}/getopt
 %attr(755,root,root) %{_examplesdir}/getopt/*
-%{_datadir}/misc/more.help
 
-%attr(755,root,root) /sbin/cfdisk
+%{!?_with_uClibc:%attr(755,root,root) /sbin/cfdisk}
 %attr(755,root,root) /sbin/fdisk
 %attr(755,root,root) /sbin/fsck.minix
 %attr(755,root,root) /sbin/mkfs.minix
 %attr(755,root,root) /sbin/sfdisk
 
-%{_mandir}/man8/cfdisk.8*
+%{!?_with_uClibc:%{_mandir}/man8/cfdisk.8*}
 %{_mandir}/man8/fdisk.8*
 %{_mandir}/man8/sfdisk.8*
 %{_mandir}/man8/fsck.minix.8*
+%{_mandir}/man8/mkfs.bfs.8*
 %{_mandir}/man8/mkfs.minix.8*
 %{_mandir}/man8/mkfs.8*
 
@@ -741,6 +806,7 @@ fi
 %lang(ja) %{_mandir}/ja/man8/fdisk.8*
 %lang(ja) %{_mandir}/ja/man8/sfdisk.8*
 %lang(ja) %{_mandir}/ja/man8/fsck.minix.8*
+%lang(ja) %{_mandir}/ja/man8/mkfs.bfs.8*
 %lang(ja) %{_mandir}/ja/man8/mkfs.minix.8*
 %lang(ja) %{_mandir}/ja/man8/mkfs.8*
 
@@ -754,6 +820,10 @@ fi
 %lang(pl) %{_mandir}/pl/man8/mkfs.minix.8*
 %lang(pl) %{_mandir}/pl/man8/mkfs.8*
 
+%{!?_with_uClibc:%attr(755,root,root) /sbin/fsck.cramfs}
+%{!?_with_uClibc:%attr(755,root,root) /sbin/mkfs.cramfs}
+%attr(755,root,root) /sbin/mkfs.bfs
+
 %attr(755,root,root) %{_bindir}/cytune
 
 %ifarch %{ix86}
@@ -901,6 +971,7 @@ fi
 %lang(ja) %{_mandir}/ja/man8/tunelp.8*
 %lang(pl) %{_mandir}/pl/man8/tunelp.8*
 
+%if %{?_with_uClibc:0}%{!?_with_uClibc:1}
 %files -n login
 %defattr(644,root,root,755)
 %attr(640,root,root) %config(noreplace) %verify(not mtime size md5) /etc/pam.d/login
@@ -915,6 +986,7 @@ fi
 %lang(ja) %{_mandir}/ja/man1/login.1*
 %lang(ko) %{_mandir}/ko/man1/login.1*
 %lang(pl) %{_mandir}/pl/man1/login.1*
+%endif
 
 %files -n agetty
 %defattr(644,root,root,755)
@@ -924,6 +996,7 @@ fi
 %lang(es) %{_mandir}/es/man8/agetty.8*
 %lang(ja) %{_mandir}/ja/man8/agetty.8*
 
+%if %{?_with_uClibc:0}%{!?_with_uClibc:1}
 %files -n rawdevices
 %defattr(644,root,root,755)
 %attr(0755,root,root) %{_bindir}/raw
@@ -932,9 +1005,4 @@ fi
 
 %{_mandir}/man8/raw.8*
 %lang(ja) %{_mandir}/ja/man8/raw.8*
-
-%if %{?BOOT:1}%{!?BOOT:0}
-%files BOOT
-%defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/bootdisk/sbin/*
 %endif
This page took 0.056255 seconds and 4 git commands to generate.