timeconfig-vl.spec 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  1. Summary: Text mode tools for setting system time parameters.
  2. Summary(ja): システムの時間のパラメータを設定するテキストモードのツール
  3. Name: timeconfig
  4. Version: 3.0.3
  5. Release: 4%{?_dist_release}
  6. License: GPL
  7. Group: Applications/System
  8. Source: timeconfig-%{version}.tar.gz
  9. Source1: timeconfig.ja.po
  10. Source2: setclock.8
  11. Source3: timeconfig.8
  12. Patch0: timeconfig.vine.patch
  13. Patch1: timeconfig-3.0.3-mandir.patch
  14. Patch2: timeconfig-3.0.3-checkbox.patch
  15. Requires: initscripts >= 2.81, glibc >= 2.0.5-5
  16. Requires(post): coreutils, gawk
  17. BuildRequires: newt-devel
  18. Buildroot: %{_tmppath}/%{name}-root
  19. Vendor: Project Vine
  20. Distribution: Vine Linux
  21. %description
  22. The timeconfig package contains two utilities: timeconfig and setclock.
  23. Timeconfig provides a simple text mode tool for configuring the time
  24. parameters in /etc/sysconfig/clock and /etc/localtime. The setclock tool
  25. sets the hardware clock on the system to the current time stored in the
  26. system clock.
  27. %description -l ja
  28. timeconfig パッケージは二つのユーティリティを含んでいます: timeconfig と
  29. setclock です。timeconfig /etc/sysconfig/clock と /etc/localtime の
  30. 時間のパラメータを設定するシンプルなテキストモードのツールを供給します。
  31. setclock ツールはシステムクロックに入っている現在の時間をシステムの
  32. ハードウェアクロックにセットします。
  33. %prep
  34. %setup -q
  35. %patch0 -p1
  36. %patch1 -p1
  37. %patch2 -p1
  38. #copy ja.po
  39. cp %{SOURCE1} po/ja.po
  40. %build
  41. make RPM_OPT_FLAGS="$RPM_OPT_FLAGS"
  42. %install
  43. rm -rf $RPM_BUILD_ROOT
  44. make PREFIX=$RPM_BUILD_ROOT MANDIR=%{_mandir} install
  45. rm -f %{_libdir}/zoneinfo
  46. mkdir -p $RPM_BUILD_ROOT%{_mandir}/ja/man8/
  47. install -m 644 %{SOURCE2} %{SOURCE3} $RPM_BUILD_ROOT%{_mandir}/ja/man8/
  48. %clean
  49. rm -rf $RPM_BUILD_ROOT
  50. %post
  51. if [ -L /etc/localtime ]; then
  52. _FNAME=`ls -ld /etc/localtime | awk '{ print $11}' | sed 's/lib/share/'`
  53. rm /etc/localtime
  54. cp -f $_FNAME /etc/localtime
  55. if ! grep -q "^ZONE=" /etc/sysconfig/clock ; then
  56. echo "ZONE=\"$_FNAME"\" | sed -e "s|[^\"]*/usr/share/zoneinfo/||" >> /etc/sysconfig/clock
  57. fi
  58. fi
  59. %files
  60. %defattr(-,root,root)
  61. %{_sbindir}/timeconfig
  62. %{_sbindir}/setclock
  63. %{_localedir}/*/LC_MESSAGES/timeconfig.mo
  64. %{_mandir}/man8/*
  65. %{_mandir}/ja/man8/timeconfig.8*
  66. %{_mandir}/ja/man8/setclock.8*
  67. %changelog
  68. * Thu Aug 28 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 3.0.3-4vl5
  69. - rebuild with newt-0.52
  70. * Sat Aug 16 2008 Shu KONNO <owa@bg.wakwak.com> 3.0.3-3vl5
  71. - applied new versioning policy, spec in utf-8
  72. * Sat Oct 21 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 3.0.3-2vl6
  73. - add BuildRequires: newt-devel
  74. * Wed Sep 20 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 3.0.3-2vl5
  75. - rebuild to add gpg sign
  76. - use License:
  77. * Thu Jun 28 2001 MATUBARA Kazuyuki <matubara@mb.asmnet.ne.jp>
  78. - 3.0.3-2vl4
  79. - change checkbox color
  80. - use better macros
  81. * Sat Jun 09 2001 <sagami@vinelinux.org>
  82. - 3.0.3-2vl3: install manpage into _mandir and mode 644
  83. - fixed typo in ja.po
  84. * Thu Jul 13 2000 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org>
  85. - 3.0.3-2vl2
  86. - modified %files section to handle compressed man pages
  87. * Thu Jun 1 2000 Jun Nishii <jun@vinelinux.org>
  88. - 3.0.3-2vl1
  89. * Sat Sep 9 1999 Norihito Ohmori <ohmori@flatout.org>
  90. - added Japanese descrition and summary
  91. - change default timezone to Japan
  92. - add Japanese Message Catalog
  93. - add Japanese Man Page
  94. * Mon Aug 2 1999 Matt Wilson <msw@redhat.com>
  95. - rebuilt against newt 0.50
  96. * Thu Jul 29 1999 Bill Nottingham <notting@redhat.com>
  97. - fix %post
  98. * Thu Jul 8 1999 Bill Nottingham <notting@redhat.com>
  99. - fix %post
  100. * Mon Jun 21 1999 Bill Nottingham <notting@redhat.com>
  101. - fix link in %post, too...
  102. * Wed Jun 16 1999 Bill Nottingham <notting@redhat.com>
  103. - copy file to /etc/localtime, don't link it
  104. - add a field to /etc/sysconfig/clock to point to the actual file
  105. * Mon Apr 19 1999 Cristian Gafton <gafton@redhat.com>
  106. - release for Red Hat Linux 6.0
  107. * Tue Mar 9 1999 Jeff Johnson <jbj@redhat.com>
  108. - add in_ID.po
  109. * Sun Jan 10 1999 Matt Wilson <msw@redhat.com>
  110. - rebuilt against newt 0.40
  111. * Tue Dec 15 1998 Jeff Johnson <jbj@redhat.com>
  112. - add ru.po.
  113. * Thu Oct 22 1998 Bill Nottingham <notting@redhat.com>
  114. - built for Raw Hide (slang-1.2.2)
  115. * Thu Oct 08 1998 Cristian Gafton <gafton@redhat.com>
  116. - updated czech translation (and use cs instead of cz)
  117. * Fri Sep 25 1998 Arnaldo Carvalho de Melo <acme@conectiva.com.br>
  118. - added pt_BR translations
  119. - pt_BR man translations
  120. - man tree, with Makefile
  121. - top level Makefile calls make -C po clean & make -C man install
  122. * Fri Sep 25 1998 Jeff Johnson <jbj@redhat.com>
  123. - add sr.po.
  124. * Sun Aug 02 1998 Erik Troan <ewt@redhat.com>
  125. - added NEWT_FLAG_SCROLL to listbox creation for newt 0.30
  126. - added --test
  127. * Fri Jun 05 1998 Erik Troan <ewt@redhat.com>
  128. - return 0 on success
  129. * Thu May 07 1998 Erik Troan <ewt@redhat.com>
  130. - many more translations
  131. * Mon Apr 20 1998 Erik Troan <ewt@redhat.com>
  132. - uses a build root
  133. - added de and en_RN translations
  134. * Mon Mar 23 1998 Erik Troan <ewt@redhat.com>
  135. - shortended window a bit -- white (rather, blue) space is a good thing
  136. * Sun Mar 22 1998 Erik Troan <ewt@redhat.com>
  137. - added --back option
  138. * Sat Oct 11 1997 Erik Troan <ewt@redhat.com>
  139. - use proper flags for hwclock
  140. * Tue Sep 16 1997 Erik Troan <ewt@redhat.com>
  141. - instead of creating /usr/lib/zoneinfo, just update /etc/localtime
  142. * Wed Sep 10 1997 Erik Troan <ewt@redhat.com>
  143. - look for zoneinfo in /usr/share instead of /usr/lib
  144. - provide /usr/lib/zoneinfo symlink