perl-DBD-MySQL-vl.spec 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  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: 4.050
  7. Release: 2%{?_dist_release}
  8. Group: programming
  9. Vendor: Project Vine
  10. Distribution: Vine Linux
  11. License: GPL+ or Artistic
  12. URL: https://metacpan.org/pod/DBD::mysql
  13. Source: https://cpan.metacpan.org/authors/id/D/DV/DVEEDEN/DBD-mysql-%{version}.tar.gz
  14. Source1: filter-requires-dbdmysql.sh
  15. # Remove a useless shebang, bug #1813195,
  16. # <https://github.com/perl5-dbi/DBD-mysql/pull/321>
  17. Patch0: DBD-mysql-4.050-Remove-a-useless-shebang-from-DBD-mysql.patch
  18. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  19. BuildRequires: libmariadb-devel
  20. BuildRequires: perl(ExtUtils::MakeMaker)
  21. BuildRequires: perl(DynaLoader)
  22. BuildRequires: perl(DBI)
  23. BuildRequires: perl(Devel::CheckLib)
  24. BuildRequires: zlib-devel
  25. Requires: perl
  26. Requires: perl-DBI
  27. Provides: perl-DBD-mysql = %{version}-%{release}
  28. %description
  29. An implementation of DBI for MySQL for Perl.
  30. %description -l ja
  31. perlを使ったMySQL用のDBI
  32. # Provide perl-specific find-{provides,requires}.
  33. #define __find_provides /usr/lib/rpm/find-provides.perl
  34. #define __find_requires /usr/lib/rpm/find-requires.perl
  35. %define __perl_requires %{SOURCE1}
  36. %debug_package
  37. %prep
  38. %setup -q -n DBD-mysql-%{version}
  39. %patch0 -p1
  40. # Correct file permissions
  41. find . -type f -exec chmod -x {} ';'
  42. %build
  43. perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" \
  44. NO_PACKLIST=1 NO_PERLLOCAL=1
  45. %{make_build}
  46. %install
  47. [ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
  48. %{make_install}
  49. find %{buildroot} -type f -name '*.bs' -empty -delete
  50. %{_fixperms} %{buildroot}/*
  51. %check || :
  52. # Full test coverage requires a live MySQL database
  53. # make test
  54. %clean
  55. [ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
  56. %files
  57. %license LICENSE
  58. %doc Changes README.md
  59. %{perl_vendorarch}/Bundle/
  60. %{perl_vendorarch}/DBD/
  61. %{perl_vendorarch}/auto/DBD/
  62. %{_mandir}/*/*
  63. %changelog
  64. * Thu Nov 18 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 4.050-2
  65. - rebuilt with perl-5.34.0.
  66. * Sat May 18 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 4.050-1
  67. - new upstream release.
  68. - rebuilt with perl-5.26.
  69. * Tue Jul 1 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 4.027-1
  70. - new upstream release.
  71. * Thu Mar 08 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 4.020-1
  72. - updated to 4.020-1
  73. * Sat Apr 30 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.006-5
  74. - rebuild with perl-5.12.3
  75. * Thu May 21 2009 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 4.006-4
  76. - rebuilt with MySQL-5.1.34.
  77. * Wed Apr 08 2009 Shu KONNO <owa@bg.wakwak.com> 4.006-3
  78. - spec in utf-8
  79. * Thu May 1 2008 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 4.006-2
  80. - rebuilt with perl-5.10.0.
  81. * Wed Apr 23 2008 IWAI, Masaharu <iwaim@cc.mbn.or.jp> 4.006-1
  82. - new upstream release
  83. - add missing changelog: 4.001-0vl1
  84. * Sun Feb 4 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.001-0vl1
  85. - updated to 4.001
  86. * Sun Sep 10 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.0007-0vl1
  87. - updated to 3.0007
  88. - changed Group to Development/Libraries
  89. - installed files to vendor_perl
  90. * Mon Jan 10 2005 Satoshi MACHINO <machino@vinelinux.org> 2.9004-0vl1
  91. - new upstream version(DBD-mysql-2.9004)
  92. - fixed spec file
  93. -- used rpm macros
  94. -- fixed package's dependencies
  95. -- built with perl-5.8.6, MySQL-4.0.21, perl-DBI-1.46
  96. * Tue Oct 12 2004 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.2219-0vl2
  97. - rebuilt with perl-5.8.2 and MySQL-4.0.21
  98. * Sat Feb 23 2002 Satoshi MACHINO <machino@vinelinux.org> 1.2219-0vl1
  99. - updated Msql-Mysql-modules-1.2219
  100. * Wed Dec 05 2001 Satoshi MACHINO <machino@vinelinux.org> 1.2216-1vl4
  101. - added BuildRequires: perl >= 1:5.6.0, perl-DBI >= 1.15, zlib-devel
  102. * Mon Jun 18 2001 MATSUBAYASHI 'Shaolin' Kohji <shaolin@vinelinux.org>
  103. - rebuilt with perl-5.6.1
  104. - Spec was written in Shift_JIS. Fixed.
  105. - modified %%files section
  106. * Fri Jun 15 2001 Satoshi MACHINO <machino@vinelinux.org> 1.2216-1vl2
  107. - rebuild on perl-5.6.0
  108. - removed perl version in Requires
  109. - changed mandir to /usr/share/man
  110. * Sun May 27 2001 Satoshi MACHINO <machino@vinelinux.org> 1.2216-1vl1
  111. - build on Vine Linux
  112. * Tue May 1 2001 Trond Eivind Glomsr <teg@redhat.com>
  113. - 1.2216
  114. - Add doc files
  115. - Minor cleanups
  116. * Thu Nov 30 2000 Trond Eivind Glomsr <teg@redhat.com>
  117. - First cut