Name: timeconfig Version: 3.0.2 Release: 11mdk Summary: Text mode tools for setting system time parameters. Copyright: GPL Group: System/Configuration/Other BuildRequires: newt-devel popt-devel slang Source0: timeconfig-%{version}.tar.bz2 Source1: timeconfig.menu Source2: timeconfig.xpm Source3: timeconfig-mini.xpm Source4: timeconfig-large.xpm Source5: timeconfig.pamd Source6: timeconfig.apps Requires: initscripts >= 2.81, glibc >= 2.0.5-5 Patch: timeconfig-gmt.patch.bz2 Patch1: timeconfig-mdkconf.patch.bz2 # (fg) 20000728 Manpath is hardcoded into the Makefile... Patch2: timeconfig-BM-fix.patch.bz2 Prereq: fileutils, gawk BuildRoot: %{_tmppath}/%{name}-root Requires: usermode >= 1.13 %description The timeconfig package contains two utilities: timeconfig and setclock. Timeconfig provides a simple text mode tool for configuring the time parameters in /etc/sysconfig/clock and /etc/localtime. The setclock tool sets the hardware clock on the system to the current time stored in the system clock. %prep %setup -q %patch -p0 %patch1 -p0 %patch2 -p1 %build make RPM_OPT_FLAGS="$RPM_OPT_FLAGS" %install make PREFIX=$RPM_BUILD_ROOT install rm -f $RPM_BUILD_ROOT/usr/lib/zoneinfo # fix indonesian locale, its language code is 'id' not 'in'. mkdir -p $RPM_BUILD_ROOT/usr/share/locale/id/LC_MESSAGES #install menu mkdir -p $RPM_BUILD_ROOT/%{_menudir} install -m644 %{SOURCE1} $RPM_BUILD_ROOT/%{_menudir}/timeconfig # (fg) 20000915 Icons from LN mkdir -p $RPM_BUILD_ROOT/%{_iconsdir}/{large,mini} install -m644 %{SOURCE2} $RPM_BUILD_ROOT/%{_iconsdir} install -m644 %{SOURCE3} $RPM_BUILD_ROOT/%{_miconsdir}/timeconfig.xpm install -m644 %{SOURCE4} $RPM_BUILD_ROOT/%{_liconsdir}/timeconfig.xpm # (fg) 20001004 In replacement of kdesu... mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/{pam.d,security/console.apps} install -m644 %{SOURCE5} $RPM_BUILD_ROOT/%{_sysconfdir}/pam.d/timeconfig-auth install -m644 %{SOURCE6} $RPM_BUILD_ROOT/%{_sysconfdir}/security/console.apps/timeconfig-auth ln -s /usr/bin/consolehelper $RPM_BUILD_ROOT/%{_sbindir}/timeconfig-auth %{find_lang} %{name} %clean rm -rf $RPM_BUILD_ROOT %post if [ -L /etc/localtime ]; then _FNAME=`ls -ld /etc/localtime | awk '{ print $11}' | sed 's/lib/share/'` rm /etc/localtime cp -f $_FNAME /etc/localtime if [ -f /etc/sysconfig/clock ]; then grep -q "^ZONE=" /etc/sysconfig/clock && \ echo "ZONE=\"$_FNAME"\" | sed -e "s|.*/zoneinfo/||" >> /etc/sysconfig/clock else echo "ZONE=\"$_FNAME"\" | sed -e "s|.*/zoneinfo/||" >> /etc/sysconfig/clock fi fi %{update_menus} %postun %{clean_menus} %files -f %{name}.lang %defattr(-,root,root) %{_sbindir}/* %{_mandir}/man*/* %{_menudir}/timeconfig %dir %{_iconsdir} %{_iconsdir}/timeconfig.xpm %dir %{_miconsdir} %{_miconsdir}/timeconfig.xpm %dir %{_liconsdir} %{_liconsdir}/timeconfig.xpm %config(noreplace) %{_sysconfdir}/pam.d/timeconfig-auth %config(noreplace) %{_sysconfdir}/security/console.apps/timeconfig-auth %changelog * Wed Oct 04 2000 Francis Galiegue <fg@mandrakesoft.com> 3.0.2-11mdk - Use usermode, not kdesu * Wed Sep 20 2000 Francis Galiegue <fg@mandrakesoft.com> 3.0.2-10mdk - Mini and large icons made transparent * Fri Sep 15 2000 Francis Galiegue <fg@mandrakesoft.com> 3.0.2-9mdk - Icons from LN - Updated menu entry accordingly * Mon Aug 07 2000 Frederic Lepied <flepied@mandrakesoft.com> 3.0.2-8mdk - automatically added BuildRequires * Fri Jul 28 2000 Francis Galiegue <fg@mandrakesoft.com> 3.0.2-7mdk - BMacros - %files list fixes - What was doing that rm -f /usr/lib/zoneinfo in %install? - Really apply patch 0 ;) * Tue May 9 2000 Vincent Saugey <vince@mandrakesoft.com> 3.0.2-6mdk - Remove menu entry for setclock * Fri Mar 31 2000 DindinX <odin@mandrakesoft.com> 3.0.2-5mdk - Spec fixes - change group - Added Menu * Thu Dec 30 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com> - Add standard mandrake colors. * Tue Dec 14 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com> - Fix if gmt entry is in clock. * Sat Nov 06 1999 John Buswell <johnb@mandrakesoft.com> - 3.0.2 - Build Release * Tue Oct 26 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com> - 3.0.1 - fix setlock script(r). * Mon Oct 25 1999 Pixel <pixel@mandrakesoft.com> - fixed post (once again :) * Fri Oct 1 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com> - Rebuild for newt0.50. * Tue Sep 07 1999 Pablo Saratxaga <pablo@mandrakesoft.com> - fixed indonesian language code (it is 'id' not 'in') * Wed Aug 25 1999 Axalon Bloodstone <axalon@linux-mandrake.com> - fix post more.. * Thu Jul 15 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com> - fix %post. * Fri Jul 2 1999 Axalon Bloodstone <axalon@linux-mandrake.com - version 3.0 * Sat Apr 10 1999 Bernhard Rosenkraenzer <bero@linux-mandrake.com> - Mandrake adaptions - bzip2 man/info pages - add de locale * Tue Mar 9 1999 Jeff Johnson <jbj@redhat.com> - add in_ID.po * Sun Jan 10 1999 Matt Wilson <msw@redhat.com> - rebuilt against newt 0.40 * Tue Dec 15 1998 Jeff Johnson <jbj@redhat.com> - add ru.po. * Thu Oct 22 1998 Bill Nottingham <notting@redhat.com> - built for Raw Hide (slang-1.2.2) * Thu Oct 08 1998 Cristian Gafton <gafton@redhat.com> - updated czech translation (and use cs instead of cz) * Fri Sep 25 1998 Arnaldo Carvalho de Melo <acme@conectiva.com.br> - added pt_BR translations - pt_BR man translations - man tree, with Makefile - top level Makefile calls make -C po clean & make -C man install * Fri Sep 25 1998 Jeff Johnson <jbj@redhat.com> - add sr.po. * Sun Aug 02 1998 Erik Troan <ewt@redhat.com> - added NEWT_FLAG_SCROLL to listbox creation for newt 0.30 - added --test * Fri Jun 05 1998 Erik Troan <ewt@redhat.com> - return 0 on success * Thu May 07 1998 Erik Troan <ewt@redhat.com> - many more translations * Mon Apr 20 1998 Erik Troan <ewt@redhat.com> - uses a build root - added de and en_RN translations * Mon Mar 23 1998 Erik Troan <ewt@redhat.com> - shortended window a bit -- white (rather, blue) space is a good thing * Sun Mar 22 1998 Erik Troan <ewt@redhat.com> - added --back option * Sat Oct 11 1997 Erik Troan <ewt@redhat.com> - use proper flags for hwclock * Tue Sep 16 1997 Erik Troan <ewt@redhat.com> - instead of creating /usr/lib/zoneinfo, just update /etc/localtime * Wed Sep 10 1997 Erik Troan <ewt@redhat.com> - look for zoneinfo in /usr/share instead of /usr/lib - provide /usr/lib/zoneinfo symlink