perl-DBD-MySQL-vl.spec 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. %define version 4.020
  2. %define release 1
  3. Summary: A MySQL interface for perl
  4. Summary(ja): MySQL用のperlインターフェイス
  5. Name: perl-DBD-MySQL
  6. Version: %{version}
  7. Release: %{release}%{?_dist_release}
  8. License: GPL+ or Artistic
  9. Group: Development/Libraries
  10. Source: DBD-mysql-%{version}.tar.gz
  11. Source1: filter-requires-dbdmysql.sh
  12. URL: http://search.cpan.org/dist/DBD-mysql/
  13. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  14. BuildRequires: MySQL-devel >= 4.0.21
  15. BuildRequires: perl(ExtUtils::MakeMaker)
  16. BuildRequires: perl(DynaLoader)
  17. BuildRequires: perl(DBI) >= 1.46
  18. BuildRequires: zlib-devel
  19. Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
  20. Requires: perl-DBI >= 1.46
  21. %description
  22. An implementation of DBI for MySQL for Perl.
  23. %description -l ja
  24. perlを使ったMySQL用のDBI
  25. # Provide perl-specific find-{provides,requires}.
  26. #define __find_provides /usr/lib/rpm/find-provides.perl
  27. #define __find_requires /usr/lib/rpm/find-requires.perl
  28. %define __perl_requires %{SOURCE1}
  29. %prep
  30. %setup -q -n DBD-mysql-%{version}
  31. # Correct file permissions
  32. find . -type f -exec chmod -x {} ';'
  33. %build
  34. # CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL INSTALLDIRS=vendor --testhost=localhost
  35. CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL INSTALLDIRS=vendor --ssl
  36. make OPTIMIZE="$RPM_OPT_FLAGS"
  37. %install
  38. [ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
  39. make DESTDIR=%{buildroot} pure_install
  40. find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
  41. find %{buildroot} -type f -name '*.bs' -empty -exec rm -f {} ';'
  42. find %{buildroot} -type d -depth -exec rmdir {} 2>/dev/null ';'
  43. chmod -R u+w %{buildroot}/*
  44. %check || :
  45. # Full test coverage requires a live MySQL database
  46. # make test
  47. %clean
  48. [ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
  49. %files
  50. %defattr(-,root,root)
  51. %doc README ChangeLog TODO
  52. %{perl_vendorarch}/*
  53. %{_mandir}/*/*
  54. %changelog
  55. * Thu Mar 08 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 4.020-1
  56. - updated to 4.020-1
  57. * Sat Apr 30 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.006-5
  58. - rebuild with perl-5.12.3
  59. * Thu May 21 2009 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 4.006-4
  60. - rebuilt with MySQL-5.1.34.
  61. * Wed Apr 08 2009 Shu KONNO <owa@bg.wakwak.com> 4.006-3
  62. - spec in utf-8
  63. * Thu May 1 2008 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 4.006-2
  64. - rebuilt with perl-5.10.0.
  65. * Wed Apr 23 2008 IWAI, Masaharu <iwaim@cc.mbn.or.jp> 4.006-1
  66. - new upstream release
  67. - add missing changelog: 4.001-0vl1
  68. * Sun Feb 4 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.001-0vl1
  69. - updated to 4.001
  70. * Sun Sep 10 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.0007-0vl1
  71. - updated to 3.0007
  72. - changed Group to Development/Libraries
  73. - installed files to vendor_perl
  74. * Mon Jan 10 2005 Satoshi MACHINO <machino@vinelinux.org> 2.9004-0vl1
  75. - new upstream version(DBD-mysql-2.9004)
  76. - fixed spec file
  77. -- used rpm macros
  78. -- fixed package's dependencies
  79. -- built with perl-5.8.6, MySQL-4.0.21, perl-DBI-1.46
  80. * Tue Oct 12 2004 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.2219-0vl2
  81. - rebuilt with perl-5.8.2 and MySQL-4.0.21
  82. * Sat Feb 23 2002 Satoshi MACHINO <machino@vinelinux.org> 1.2219-0vl1
  83. - updated Msql-Mysql-modules-1.2219
  84. * Wed Dec 05 2001 Satoshi MACHINO <machino@vinelinux.org> 1.2216-1vl4
  85. - added BuildRequires: perl >= 1:5.6.0, perl-DBI >= 1.15, zlib-devel
  86. * Mon Jun 18 2001 MATSUBAYASHI 'Shaolin' Kohji <shaolin@vinelinux.org>
  87. - rebuilt with perl-5.6.1
  88. - Spec was written in Shift_JIS. Fixed.
  89. - modified %%files section
  90. * Sat Jun 15 2001 Satoshi MACHINO <machino@vinelinux.org> 1.2216-1vl2
  91. - rebuild on perl-5.6.0
  92. - removed perl version in Requires
  93. - changed mandir to /usr/share/man
  94. * Sun May 27 2001 Satoshi MACHINO <machino@vinelinux.org> 1.2216-1vl1
  95. - build on Vine Linux
  96. * Tue May 1 2001 Trond Eivind Glomsr <teg@redhat.com>
  97. - 1.2216
  98. - Add doc files
  99. - Minor cleanups
  100. * Thu Nov 30 2000 Trond Eivind Glomsr <teg@redhat.com>
  101. - First cut