netcfg-vl.spec 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196
  1. Summary: A network configuration tool.
  2. Summary(ja): ネットワーク設定ツール
  3. Name: netcfg
  4. Version: 2.36
  5. Release: 3vl4
  6. License: GPL
  7. Group: Applications/System
  8. Source0: netcfg-%{version}.tar.bz2
  9. Source1: netcfg_ja.py
  10. Source2: netcfg
  11. Patch0: netcfg-Makefile.patch
  12. #Patch1: netcfg-2.25-modulesconf.patch
  13. #Patch2: netcfg-2.36-i18n.patch
  14. Patch3: netcfg_ja-unicode.patch
  15. Requires: pythonlib >= 1.20, python, tkinter, initscripts >= 3.24
  16. Requires: tk >= 8.4.1
  17. BuildPrereq: nkf >= 2.01
  18. BuildArchitectures: noarch
  19. BuildRoot: %{_tmppath}/%{name}-root
  20. Vendor: Project Vine
  21. Distribution: Vine Linux
  22. %description
  23. A Red Hat Linux tool which provides a graphical user interface for
  24. setting up and configuring networking for your machine.
  25. %description -l ja
  26. マシンのネットワークを設定するグラフィカルユーザインタフェースを
  27. 提供する Red Hat Linux のツールです。
  28. %prep
  29. %setup -q
  30. %patch0
  31. #%patch1 -p0
  32. # ja.py
  33. install -p -m 755 %{SOURCE1} netcfg_ja.py
  34. #%patch2 -b .i18n
  35. ## euc-jp to UTF-8
  36. #%__mv netcfg_ja.py netcfg_ja.euc
  37. #nkf -E -w netcfg_ja.euc > netcfg_ja.py
  38. %patch3 -b .unicode
  39. # netcfg.auth
  40. mv netcfg.auth netcfg.auth.org
  41. sed -e 's/^SESSION/#SESSION/' netcfg.auth.org > netcfg.auth
  42. # desktop
  43. mv netcfg.desktop netcfg.desktop.org
  44. sed -e 's/penguin.xpm/netcfg.xpm/' netcfg.desktop.org > netcfg.desktop
  45. %build
  46. unset DISPLAY || true
  47. export PYTHONPATH=/usr/lib/rhs/python
  48. make
  49. %install
  50. rm -rf $RPM_BUILD_ROOT
  51. unset DISPLAY || true
  52. export PYTHONPATH=/usr/lib/rhs/python
  53. make DESTDIR=$RPM_BUILD_ROOT \
  54. INSTALLBIN="install -m755" INSTALLDATA="install -m644" \
  55. install
  56. ( cd $RPM_BUILD_ROOT
  57. mkdir -p ./usr/share/icons
  58. cp ./usr/lib/rhs/control-panel/netcfg.xpm ./usr/share/icons
  59. )
  60. mv -f $RPM_BUILD_ROOT/usr/sbin/netcfg{,.en}
  61. install -m755 %{SOURCE2} $RPM_BUILD_ROOT/usr/sbin/netcfg
  62. %clean
  63. rm -rf $RPM_BUILD_ROOT
  64. %files
  65. %defattr(-,root,root)
  66. %config /etc/X11/applnk/System/netcfg.desktop
  67. %config(noreplace) /etc/pam.d/netcfg
  68. %config /etc/security/console.apps/netcfg
  69. /usr/bin/netcfg
  70. /usr/sbin/netcfg
  71. /usr/lib/rhs/netcfg
  72. /usr/lib/rhs/control-panel/netcfg.init
  73. /usr/lib/rhs/control-panel/netcfg.xpm
  74. /usr/share/icons/netcfg.xpm
  75. %changelog
  76. * Sat Apr 17 2004 Shu KONNO <owa@bg.wakwak.com> 2.36-3vl4
  77. - rebuild with python-2.3.3-0vl1
  78. * Sat Apr 10 2004 Shu KONNO <owa@bg.wakwak.com> 2.36-3vl3.1
  79. - deleted netcfg-2.36-i18n.patch
  80. - added netcfg_ja-unicode.patch for python-2.3.3
  81. * Sun Jul 20 2003 Masaki Shinomiya <shino@pos.to> 2.36-3vl3
  82. - i18n.patch to avoid odd charactors on the title bars
  83. - spec file in euc-jp
  84. * Sat Jul 19 2003 Masaki Shinomiya <shino@pos.to> 2.36-3vl2
  85. - euc-jp to UTF-8 fo Tcl/Tk >= 8.4.1
  86. - netcfg.auth, netcfg.desktop
  87. * Sat Jul 06 2002 Daisuke SUZUKI <daisuke@linux.or.jp> 2.36-3vl1
  88. - merged with upstream 2.36-2
  89. * Sat Aug 18 2001 Toru Sagami <sagami@vinelinux.org>
  90. - 2.25-1vl2: ad hoc modules.confiscation
  91. * Thu Aug 3 2000 Jun Nishii <jun@vinelinux.org>
  92. - 2.25-1vl1
  93. * Wed Jan 13 2000 Norihito Ohmori <nono@kondara.org>
  94. - ad-hoc i18n.
  95. * Sun Nov 7 1999 Toru Hoshina <t@kondara.org>
  96. - be a NoSrc :-P
  97. * Mon Sep 11 1999 Norihito Ohmori <ohmori@flatout.org>
  98. - Japanize.
  99. - Japanese summary and description add.
  100. * Tue Aug 24 1999 Bill Nottingham <notting@redhat.com>
  101. - actually build the version with the python fixes.
  102. * Thu Apr 08 1999 Preston Brown <pbrown@redhat.com>
  103. - fixed netcfg version number in python src.
  104. * Mon Mar 22 1999 Michael Johnson <johnsonm@redhat.com>
  105. - fixed bug 881
  106. * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
  107. - auto rebuild in the new build environment (release 7)
  108. * Mon Aug 17 1998 Jeff Johnson <jbj@redhat.com>
  109. - build root
  110. * Mon Apr 27 1998 Prospector System <bugs@redhat.com>
  111. - translations modified for de, fr, tr
  112. * Fri Nov 07 1997 Michael K. Johnson <johnsonm@redhat.com>
  113. - Bugs fixed:
  114. o wmconfig files take no paths
  115. o only root should see wmconfig
  116. * Thu Nov 06 1997 Michael K. Johnson <johnsonm@redhat.com>
  117. - Version 2.19 New features:
  118. o Debugging option for PPP devices
  119. o Supports active and passive PPP servers with a single configuration.
  120. * Tue Nov 04 1997 Michael K. Johnson <johnsonm@redhat.com>
  121. - Bugs fixed:
  122. o icon name corrected in netcfg.init
  123. * Fri Oct 24 1997 Michael K. Johnson <johnsonm@redhat.com>
  124. - Version 2.18 New features:
  125. o "Clone" devices allow multiple interface configurations
  126. o IP Forwarding option
  127. o Menus for modem ports and speeds.
  128. - Bugs fixed:
  129. o physical/logical PPP device name translation
  130. o ignores backup files better.
  131. o removes dip scripts when removing slip devices
  132. o USERCTL fixed for "bus" devices like ethernet
  133. o Now asks for interface number for PLIP devices
  134. * Thu Jul 31 1997 Erik Troan <ewt@redhat.com>
  135. - made a noarch package
  136. * Tue Apr 15 1997 Michael K. Johnson <johnsonm@redhat.com>
  137. - New features:
  138. o Allows ALL device types to be user-controllable
  139. o Allows DHCP configuration
  140. * Wed Apr 02 1997 Michael K. Johnson <johnsonm@redhat.com>
  141. - New features:
  142. o Silently disallows senseless lo aliasing
  143. o Loudly disallows non-functional SLIP aliasing
  144. - Bugs fixed:
  145. o Didn't always create correct alias numbers
  146. o Hung if a device without an IP was aliased
  147. * Wed Feb 26 1997 Michael K. Johnson <johnsonm@redhat.com>
  148. - New features:
  149. o Supports user-controlled interfaces.
  150. o Includes PAP support for PPP interfaces.
  151. o Supports two kinds of timeouts for PPP interfaces.
  152. o Supports MTU as well as MRU
  153. o Allows giving arbitrary options to pppd
  154. o Sanity checking on /etc/hosts
  155. - Bugs fixed:
  156. o Didn't always find the first free interface number
  157. o Sometimes tried to "add" an existing interface number