perl-DBD-MySQL-vl.spec 3.5 KB

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