pwdb-vl.spec 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
  2. Summary: The password database library.
  3. Summary(ja): パスワードデータベースライブラリ
  4. Name: pwdb
  5. Version: 0.62
  6. Release: 1%{?_dist_release}
  7. License: GPL or BSD
  8. Group: System Environment/Base
  9. Source: pwdb-%{PACKAGE_VERSION}.tar.gz
  10. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  11. Conflicts: pam = 0.75-48vl1
  12. %description
  13. The pwdb package contains libpwdb, the password database library.
  14. Libpwdb is a library which implements a generic user information
  15. database. Libpwdb was specifically designed to work with Linux's PAM
  16. (Pluggable Authentication Modules). Libpwdb allows configurable
  17. access to and management of security tools like /etc/passwd,
  18. /etc/shadow and network authentication systems including NIS and
  19. Radius.
  20. %description -l ja
  21. pwdb パッケージにはパスワードデータベースライブラリである libpwdb が
  22. 収められています.libpwdb は汎用ユーザ情報データベースを実装した
  23. ライブラリで,特に Linux の PAM (Pluggable Authentication Modules) と
  24. 連係して動作することを念頭に置かれて設計されています.
  25. libpwdb を使うと /etc/passwd, /etc/shadow はもとより NIS や Radius と
  26. いったネットワーク認証システムへのアクセスや管理が可能になります.
  27. ## to build compat32 for x86_64 architecture support
  28. %package -n compat32-%{name}
  29. Summary: The password database library.
  30. Group: System Environment/Base
  31. %description -n compat32-%{name}
  32. The pwdb package contains libpwdb, the password database library.
  33. Libpwdb is a library which implements a generic user information
  34. database. Libpwdb was specifically designed to work with Linux's PAM
  35. (Pluggable Authentication Modules). Libpwdb allows configurable
  36. access to and management of security tools like /etc/passwd,
  37. /etc/shadow and network authentication systems including NIS and
  38. Radius.
  39. %prep
  40. %setup -q -n pwdb-%{version}
  41. rm default.defs
  42. ln -s defs/redhat.defs default.defs
  43. # checking out of the CVS sometimes preserves the setgid bit on
  44. # directories...
  45. chmod -R g-s .
  46. %build
  47. %if %{build_compat32}
  48. export LDEMULATION="elf_i386"
  49. make CC="gcc -m32" RPM_OPT_FLAGS="$RPM_OPT_FLAGS"
  50. %else
  51. make RPM_OPT_FLAGS="$RPM_OPT_FLAGS"
  52. %endif
  53. %install
  54. rm -rf $RPM_BUILD_ROOT
  55. mkdir -p $RPM_BUILD_ROOT/{etc,%{_lib},%{_includedir}/pwdb}
  56. make INCLUDED=$RPM_BUILD_ROOT%{_includedir}/pwdb \
  57. LIBDIR=$RPM_BUILD_ROOT/%{_lib} \
  58. LDCONFIG=":" \
  59. install
  60. install -m 644 conf/pwdb.conf $RPM_BUILD_ROOT/etc/pwdb.conf
  61. %post -p /sbin/ldconfig
  62. %postun -p /sbin/ldconfig
  63. %if %{build_compat32}
  64. %post -n compat32-%{name} -p /sbin/ldconfig
  65. %postun -n compat32-%{name} -p /sbin/ldconfig
  66. %endif
  67. %clean
  68. rm -rf $RPM_BUILD_ROOT
  69. %if !%{build_compat32}
  70. %files
  71. %defattr(-,root,root)
  72. %doc Copyright doc/pwdb.txt doc/html
  73. %config /etc/pwdb.conf
  74. %{_includedir}/pwdb
  75. /%{_lib}/libpwdb.a
  76. /%{_lib}/libpwdb.so
  77. /%{_lib}/libpwdb.so.%{PACKAGE_VERSION}
  78. %endif
  79. %if %{build_compat32}
  80. %files -n compat32-%{name}
  81. %defattr(-,root,root)
  82. /%{_lib}/libpwdb.a
  83. /%{_lib}/libpwdb.so
  84. /%{_lib}/libpwdb.so.%{PACKAGE_VERSION}
  85. %endif
  86. %changelog
  87. * Fri Aug 15 2008 Shu KONNO <owa@bg.wakwak.com> 0.62-1vl5
  88. - applied new versioning policy, spec in utf-8
  89. * Sun Mar 12 2006 Shu KONNO <owa@bg.wakwak.com> 0.62-0vl3
  90. - s/Copylight/License/
  91. - added compat32-* for x86_64
  92. * Sat Apr 10 2004 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 0.62-0vl2
  93. - rebuild
  94. * Thu Mar 27 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 0.62-0vl1
  95. - new upstream release
  96. - splitted from pam-0.75-48vl1
  97. * Fri Aug 02 2002 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 0.61.2-0vl1
  98. - source update
  99. - fix includes
  100. * Wed Jan 10 2001 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org>
  101. - 0.61.1-1vl1
  102. - based on 0.61.1-1 from Rawhide
  103. - use better macros (%%{_includedir})
  104. - added Japanese summary and description
  105. * Wed Aug 30 2000 Nalin Dahyabhai <nalin@redhat.com>
  106. - add missing header files (#16951)
  107. * Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
  108. - automatic rebuild
  109. * Sun Jun 18 2000 Matt Wilson <msw@redhat.com>
  110. - rebuild for next release
  111. * Wed Feb 02 2000 Cristian Gafton <gafton@redhat.com>
  112. - fix setting the password for passwordless accounts. Patch from Thomas
  113. Sailer
  114. * Mon Jan 31 2000 Cristian Gafton <gafton@redhat.com>
  115. - rebuild to fix dependencies