perl-DBD-MySQL-vl.spec 4.1 KB

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