]>
Commit | Line | Data |
---|---|---|
0a2226a9 JB |
1 | # |
2 | # Conditional build: | |
a6067872 | 3 | %bcond_without tests # Do not perform "make test" |
0a2226a9 JB |
4 | # |
5 | %include /usr/lib/rpm/macros.perl | |
bbd473df | 6 | %define pdir Crypt |
7 | %define pnam MySQL | |
0a2226a9 | 8 | Summary: Crypt::MySQL - emulate MySQL PASSWORD() function |
e5b9e0df | 9 | Summary(pl.UTF-8): Crypt::MySQL - emulacja funkcji MySQL PASSWORD() |
0a2226a9 | 10 | Name: perl-Crypt-MySQL |
a2732b5c | 11 | Version: 0.02 |
6305e415 | 12 | Release: 3 |
8b6382f3 | 13 | # same as perl |
0a2226a9 JB |
14 | License: GPL v1+ or Artistic |
15 | Group: Development/Languages/Perl | |
16 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz | |
a2732b5c | 17 | # Source0-md5: dfaf418d37f4f690f8e69a2e03e74371 |
a6067872 | 18 | %{?with_tests:BuildRequires: perl-Test-Simple >= 0.32} |
85bb6964 | 19 | BuildRequires: perl-devel >= 1:5.8.0 |
0a2226a9 JB |
20 | BuildRequires: rpm-perlprov >= 4.1-13 |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
22 | ||
23 | %description | |
24 | Crypt::MySQL emulates MySQL PASSWORD() SQL function, without | |
25 | libmysqlclient. You can compare encrypted passwords, without real | |
26 | MySQL environment. | |
27 | ||
f2b97c4b JR |
28 | %description -l pl.UTF-8 |
29 | Crypt::MySQL emuluje funkcję SQL PASSWORD() z MySQL bez | |
30 | libmysqlclient. Pozwala porównywać zaszyfrowane hasła bez prawdziwego | |
31 | środowiska MySQL. | |
0a2226a9 JB |
32 | |
33 | %prep | |
34 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
35 | ||
36 | %build | |
37 | %{__perl} Makefile.PL \ | |
38 | INSTALLDIRS=vendor | |
8999f74a | 39 | %{__make} \ |
4d4e6c89 | 40 | CC="%{__cc}" \ |
8999f74a | 41 | OPTIMIZE="%{rpmcflags}" |
0a2226a9 | 42 | |
a6067872 | 43 | %{?with_tests:%{__make} test} |
0a2226a9 JB |
44 | |
45 | %install | |
46 | rm -rf $RPM_BUILD_ROOT | |
47 | ||
48 | %{__make} install \ | |
49 | DESTDIR=$RPM_BUILD_ROOT | |
50 | ||
51 | %clean | |
52 | rm -rf $RPM_BUILD_ROOT | |
53 | ||
54 | %files | |
55 | %defattr(644,root,root,755) | |
56 | %doc Changes | |
57 | %{perl_vendorarch}/Crypt/MySQL.pm | |
58 | %dir %{perl_vendorarch}/auto/Crypt/MySQL | |
59 | %{perl_vendorarch}/auto/Crypt/MySQL/autosplit.ix | |
60 | %{perl_vendorarch}/auto/Crypt/MySQL/MySQL.bs | |
61 | %attr(755,root,root) %{perl_vendorarch}/auto/Crypt/MySQL/MySQL.so | |
62 | %{_mandir}/man3/* |