3 %bcond_without tests # Do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
8 Summary: Crypt::MySQL - emulate MySQL PASSWORD() function
9 Summary(pl.UTF-8): Crypt::MySQL - emulacja funkcji MySQL PASSWORD()
10 Name: perl-Crypt-MySQL
14 License: GPL v1+ or Artistic
15 Group: Development/Languages/Perl
16 Source0: http://www.cpan.org/modules/by-module/Crypt/%{pdir}-%{pnam}-%{version}.tar.gz
17 # Source0-md5: e9a2d1e7f478fe8c90a15c47de37c0ae
18 URL: http://search.cpan.org/dist/Crypt-MySQL/
19 %{?with_tests:BuildRequires: perl-Test-Simple >= 0.32}
20 BuildRequires: perl-devel >= 1:5.8.0
21 BuildRequires: rpm-perlprov >= 4.1-13
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 Crypt::MySQL emulates MySQL PASSWORD() SQL function, without
26 libmysqlclient. You can compare encrypted passwords, without real
29 %description -l pl.UTF-8
30 Crypt::MySQL emuluje funkcję SQL PASSWORD() z MySQL bez
31 libmysqlclient. Pozwala porównywać zaszyfrowane hasła bez prawdziwego
35 %setup -q -n %{pdir}-%{pnam}-%{version}
38 %{__perl} Makefile.PL \
42 OPTIMIZE="%{rpmcflags}"
44 %{?with_tests:%{__make} test}
47 rm -rf $RPM_BUILD_ROOT
50 DESTDIR=$RPM_BUILD_ROOT
53 rm -rf $RPM_BUILD_ROOT
56 %defattr(644,root,root,755)
58 %{perl_vendorarch}/Crypt/MySQL.pm
59 %{perl_vendorarch}/Crypt/MySQL.xs
60 %dir %{perl_vendorarch}/auto/Crypt/MySQL
61 %{perl_vendorarch}/auto/Crypt/MySQL/MySQL.bs
62 %attr(755,root,root) %{perl_vendorarch}/auto/Crypt/MySQL/MySQL.so