perl-DBI-vl.spec 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. %define version 1.604
  2. %define release 4
  3. Summary: A database access API for perl
  4. Summary(ja): perl 用データベース接続 API
  5. Name: perl-DBI
  6. Version: %{version}
  7. Release: %{release}%{?_dist_release}
  8. License: Artistic
  9. Group: Development/Libraries
  10. Source: DBI-%{version}.tar.gz
  11. Source2: filter-requires-dbi.sh
  12. URL: http://dbi.perl.org/
  13. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  14. Requires: perl >= 5.6.0
  15. ## BuildRequires: perl-Time-HiRes
  16. %description
  17. DBI is a database access Application Programming Interface (API) for
  18. the Perl Language. The DBI API Specification defines a set of
  19. functions, variables and conventions that provide a consistent
  20. database interface independent of the actual database being used.
  21. %description -l ja
  22. DBI は Perl でデータベースにアクセスするための API です.
  23. DBI API では,実際に使われるデータベースに依存しない様に,
  24. 関数,変数などの取り決めが定義されています.
  25. # Provide perl-specific find-{provides,requires}.
  26. %if %{?_dist_release} == "vl5" || %{?_dist_release} == "vl4"
  27. %define __find_provides %{_prefix}/lib/rpm/find-provides.perl
  28. %define __find_requires %{SOURCE2}
  29. %else
  30. %define __perl_requires %{SOURCE2}
  31. %endif
  32. %prep
  33. %setup -q -n DBI-%{version}
  34. %build
  35. CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL INSTALLDIRS=vendor
  36. make
  37. %install
  38. [ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
  39. make install DESTDIR=$RPM_BUILD_ROOT
  40. #make PREFIX=$RPM_BUILD_ROOT/usr \
  41. # INSTALLSITEARCH=%{buildroot}%{perl_sitearch} \
  42. # INSTALLSITEMAN3DIR=%{buildroot}%{_mandir}/man3 \
  43. # INSTALLSCRIPT=%{buildroot}%{_bindir} \
  44. # install
  45. rm -f %{buildroot}%{perl_vendorarch}/perllocal.pod
  46. rm -f %{buildroot}%{perl_vendorarch}/auto/DBI/.packlist
  47. rm -f %{buildroot}%{perl_vendorarch}/auto/DBI/DBI.bs
  48. %clean
  49. [ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
  50. %check
  51. make test
  52. %files
  53. %defattr(-,root,root)
  54. %doc Changes README
  55. %{perl_vendorarch}/*
  56. %{_bindir}/*
  57. %{_mandir}/*/*
  58. ##%{_libdir}/perl?/man/man3/*.3*
  59. %changelog
  60. * Sat Mar 26 2011 IWAI, Masaharu <iwai@alib.jp> 1.604-4vl6
  61. - rebuild with perl 5.12.3
  62. - using __perl_requires macro for VineSeed (vl6)
  63. * Wed Apr 08 2009 Shu KONNO <owa@bg.wakwak.com> 1.604-3
  64. - spec in utf-8
  65. * Thu May 1 2008 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 1.604-2
  66. - rebuilt with perl-5.10.0.
  67. * Wed Apr 23 2008 IWAI, Masaharu <iwaim@cc.mbn.or.jp> 1.604-1
  68. - new upstream release
  69. * Mon Aug 20 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.58-0vl1
  70. - new upstream release
  71. * Sun Jan 28 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.53-0vl1
  72. - new upstream release
  73. * Sun Sep 10 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.51-0vl1
  74. - new upstream release
  75. - changed Group to Development/Libraries
  76. - installed module files to vendor_perl
  77. * Sat Jul 22 2006 NAKAMURA Kenta <kenta@vinelinux.org> 1.46-0vl2
  78. - use filter-requires-dbi.sh instead of find-requires.perl
  79. * Sat Dec 04 2004 IWAI, Masaharu <iwai@alib.jp> 1.46-0vl1
  80. - new upstream version
  81. - build on perl-5.8.6-0vl1
  82. * Sat May 22 2004 Satoshi MACHINO <machino@vinelinux.org> 1.40-0vl1
  83. - new upstream version
  84. * Sat May 24 2003 IWAI Masaharu <iwai@alib.jp> 1.37-0vl1
  85. - update 1.37
  86. - build with perl-5.8.0
  87. - add make test
  88. * Sat Feb 23 2002 Satoshi MACHINO <machino@vinelinux.org> 1.21-0vl1
  89. - updated 1.21
  90. * Wed Dec 05 2001 Satoshi MACHINO <machino@vinelinux.org> 1.20-0vl1
  91. - updated 1.20
  92. * Sat Sep 15 2001 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.19-0vl2
  93. - the spec was in Shift-JIS. Fixed.
  94. * Fri Aug 03 2001 Satoshi MACHINO <machino@vinelinux.org> 1.19-0vl1
  95. - updated 1.19
  96. * Sat Jun 15 2001 Satoshi MACHINO <machino@vinelinux.org> 1.15-1vl2
  97. - rebuild on perl-5.6.0
  98. - changed mandir to /usr/share/man
  99. - removed version in Requires perl
  100. * Sun May 27 2001 Satoshi MACHINO <machino@vinelinux.org> 1.15-1vl1
  101. - updated perl-DBL-1.15
  102. * Tue May 08 2001 Satoshi MACHINO <machino@vinelinux.org> 1.14-10vl1
  103. - fixed Vine Linux
  104. * Tue Feb 27 2001 Trond Eivind Glomsr <teg@redhat.com>
  105. - Cleanups
  106. * Thu Nov 30 2000 Trond Eivind Glomsr <teg@redhat.com>
  107. - build for main distribution
  108. - use %%{_tmppath}
  109. - change name of specfile
  110. - don't use a find script to generate file lists
  111. - general cleanup
  112. - add descriptive summary and description
  113. * Mon Aug 14 2000 Tim Powers <timp@redhat.com>
  114. - Spec file was autogenerated.