]> git.pld-linux.org Git - packages/perl-DBD-mysql.git/blobdiff - perl-DBD-mysql.spec
- rebuild with perl 5.18.0
[packages/perl-DBD-mysql.git] / perl-DBD-mysql.spec
index a9bcc7a7665eb1481a728f84cc4e320effa4fd84..e8e132e30c8f8726bf7a84e9c130e6069dbffa02 100644 (file)
@@ -2,10 +2,10 @@
 # Conditional build:
 %bcond_with    tests   # perform "make test"
                        # tests require access to a working MySQL
-#
-%include       /usr/lib/rpm/macros.perl
+
 %define                pdir    DBD
 %define                pnam    mysql
+%include       /usr/lib/rpm/macros.perl
 Summary:       A MySQL interface for Perl
 Summary(cs.UTF-8):     MySQL rozhraní pro Perl
 Summary(da.UTF-8):     En MySQL-grænseflade for Perl
@@ -24,13 +24,14 @@ Summary(sv.UTF-8):  Ett gränssnitt till MySQL för Perl
 Summary(uk.UTF-8):     Perl-інтерфейс до MySQL
 Summary(zh_CN.UTF-8):  Perl 的 MySQL 界面。
 Name:          perl-DBD-mysql
-Version:       4.003
-Release:       1
+Version:       4.022
+Release:       2
 # NOTE: libmysqlclient infects everything that links against it with GPL
 License:       GPL (Perl code also Artistic)
 Group:         Development/Languages/Perl
-Source0:       http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
-# Source0-md5: 157f817d26a52aaaff61ce38f7043b95
+Source0:       http://www.cpan.org/modules/by-module/DBD/CAPTTOFU/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5: 20fb571245e3b9ac275b8329025c4bf6
+Patch0:                headers.patch
 URL:           http://search.cpan.org/dist/DBD-mysql/
 BuildRequires: mysql-devel >= 5.0.27
 BuildRequires: perl-DBI >= 1.13
@@ -121,14 +122,17 @@ M(y)sql.pm та DBD::mSQL(mysql) реалізують два різних під
 
 %prep
 %setup -q -n %{pdir}-%{pnam}-%{version}
+%patch0 -p1
 # we don't need no bundles
 rm -rf lib/Bundle
 
 %build
 %{__perl} Makefile.PL \
+       --cflags="$(mysql_config --cflags) %{rpmcflags} -Werror=implicit-function-declaration" \
        INSTALLDIRS=vendor
+
 %{__make} \
-       OPTIMIZE="%{rpmcflags}"
+       CC="%{__cc}" \
 
 %{?with_tests:%{__make} test}
 
This page took 0.04392 seconds and 4 git commands to generate.