alternatives-vl.spec 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. Summary: maintain symbolic links determining default commands (from Debian dpkg utilities)
  2. Summary(ja): コマンドのシンボリックリンクを管理する (Debian dpkg ユーティリティーより)
  3. Name: alternatives
  4. Version: 0.1.10.18
  5. Release: 2%{?_dist_release}
  6. License: GPL
  7. Group: System Environment/Base
  8. # source archive is generated from Debian dpkg-1.10.18
  9. Source0: alternatives-%{version}.tar.bz2
  10. Source1: update-alternatives.ja.8
  11. Patch0: alternatives-0.1.10.18-rpm.patch
  12. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  13. Requires: perl
  14. Distribution: Vine Linux
  15. Vendor: Project Vine
  16. Packager: daisuke
  17. %description
  18. maintain symbolic links determining default commands (from Debian dpkg utilities)
  19. %description -l ja
  20. コマンドのシンボリックリンクを管理する (Debian dpkg ユーティリティーより)
  21. %prep
  22. %setup
  23. %patch0 -p0
  24. %build
  25. pushd utils
  26. gcc -o enoent enoent.c
  27. strip enoent
  28. popd
  29. sed -e 's!@RPMDIR@!/var/lib/rpm!g' \
  30. -e 's!@SYSCONFDIR@!%{_sysconfdir}!g' \
  31. -e 's/dpkg/rpm/g' \
  32. scripts/update-alternatives.pl \
  33. > update-alternatives
  34. sed -e 's!@RPMDIR@!/var/lib/rpm!g' \
  35. scripts/update-alternatives.8 \
  36. > scripts/update-alternatives.8.rpm
  37. mv scripts/update-alternatives{.8.rpm,.8}
  38. %install
  39. rm -rf %{buildroot}
  40. mkdir -p %{buildroot}/sbin
  41. install -m 755 update-alternatives %{buildroot}/sbin/update-alternatives
  42. mkdir -p %{buildroot}/%{_mandir}/man8
  43. install -m644 scripts/update-alternatives.8 %{buildroot}/%{_mandir}/man8/
  44. mkdir -p %{buildroot}/%{_mandir}/ja/man8
  45. install -m644 %{SOURCE1} %{buildroot}/%{_mandir}/ja/man8/update-alternatives.8
  46. mkdir -p %{buildroot}/var/lib/rpm/alternatives
  47. install -m 755 utils/enoent %{buildroot}/var/lib/rpm/enoent
  48. mkdir -p %{buildroot}/%{_sysconfdir}/alternatives
  49. %clean
  50. rm -rf %{buildroot}
  51. %files
  52. %defattr (-, root, root)
  53. %doc COPYING
  54. /sbin/update-alternatives
  55. %{_sysconfdir}/alternatives
  56. %{_mandir}/man8/*
  57. %{_mandir}/ja/man8/*
  58. /var/lib/rpm/alternatives
  59. /var/lib/rpm/enoent
  60. %changelog
  61. * Sat Mar 19 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 0.1.10.18-2
  62. - s/PreReq/Requires perl
  63. * Fri Aug 15 2008 Shu KONNO <owa@bg.wakwak.com> 0.1.10.18-1vl5
  64. - applied new versioning policy, spec in utf-8
  65. * Wed Sep 20 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 0.1.10.18-0vl2
  66. - rebuild to add gpg sign
  67. * Tue Dec 02 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 0.1.10.18-0vl1
  68. - resync with upstream version
  69. * Sat Aug 23 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.1.9.17-0vl5
  70. - rebuild and changed docdir to /usr/share/doc
  71. - s/Copyright/License/
  72. * Sun Oct 6 2002 Jun Nishii <jun@vinelinux.org>
  73. - added Japanese man page by Toshiyasu KOJIMA [vine-users:041367]
  74. * Sat Mar 16 2002 Daisuke SUZUKI <daisuke@linux.or.jp> 0.1.9.17-0vl3
  75. - add PreReq: perl for install time problem.
  76. * Sun Sep 09 2001 Toru Sagami <sagami@vinelinux.org>
  77. - 0.1.9.17-0vl2: fixed path(es) in man page
  78. - use /var/lib, instead of %%{_localstatedir} (current rpm has wrong macros)
  79. * Sat Sep 09 2001 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 0.1.9.17-0vl1
  80. - Oops the spec was in JIS. Fixed.
  81. * Wed Sep 06 2001 Shoji Matsumoto <shom@vinelinux.org>
  82. - create