]>
Commit | Line | Data |
---|---|---|
df7b83f5 | 1 | # |
2 | # Conditional build: | |
c0746210 JB |
3 | %bcond_with tests # perform "make test" (requires configured local MySQL database) |
4 | # | |
2322b072 | 5 | %define pdir DBIx |
6 | %define pnam TextIndex | |
df7b83f5 | 7 | Summary: DBIx::TextIndex - Perl extension for full-text searching in SQL databases |
fb0b3b35 | 8 | Summary(pl.UTF-8): DBIx::TextIndex - rozszerzenie do pełnotekstowego przeszukiwania baz SQL |
df7b83f5 | 9 | Name: perl-DBIx-TextIndex |
20170e26 | 10 | Version: 0.28 |
167b5d07 | 11 | Release: 13 |
b63561f1 | 12 | # same as perl |
13 | License: GPL v1+ or Artistic | |
df7b83f5 | 14 | Group: Development/Languages/Perl |
c0746210 | 15 | Source0: http://www.cpan.org/modules/by-module/DBIx/%{pdir}-%{pnam}-%{version}.tar.gz |
20170e26 | 16 | # Source0-md5: 1533f1e0c736988b22b29bcd4ba739a8 |
c0746210 | 17 | URL: http://search.cpan.org/dist/DBIx-TextIndex/ |
8d855bc5 | 18 | BuildRequires: perl-devel >= 1:5.8.0 |
c2b55568 | 19 | BuildRequires: rpm-perlprov >= 4.1-13 |
23348caa | 20 | %if %{with tests} |
df7b83f5 | 21 | BuildRequires: perl(Data::Dumper) |
0a92eef6 | 22 | BuildRequires: perl-Bit-Vector |
23348caa | 23 | BuildRequires: perl-Exception-Class |
c0746210 JB |
24 | BuildRequires: perl-Text-Balanced |
25 | BuildRequires: perl-Text-Unaccent | |
df7b83f5 | 26 | %endif |
0a92eef6 | 27 | Requires: perl-DBI >= 1.48-2 |
df7b83f5 | 28 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
29 | ||
30 | %description | |
3f625336 JB |
31 | DBIx::TextIndex was developed for doing full-text searches on BLOB |
32 | columns stored in a database. Almost any database with BLOB and DBI | |
33 | support should work with minor adjustments to SQL statements in the | |
34 | module. | |
df7b83f5 | 35 | |
ccd5ed18 JR |
36 | %description -l pl.UTF-8 |
37 | Moduł DBIx::TextIndex służy do przeprowadzania pełnotekstowych | |
38 | przeszukiwań kolumn BLOB zapisanych w bazie danych. Prawie każda baza | |
39 | danych z obsługą BLOB i DBI powinna działać po niewielkich poprawkach | |
40 | wyrażeń SQL w module. | |
df7b83f5 | 41 | |
42 | %prep | |
43 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
44 | ||
45 | %build | |
c2b55568 | 46 | %{__perl} Makefile.PL \ |
63f6b798 | 47 | INSTALLDIRS=vendor |
23348caa | 48 | %{__make} \ |
834b7a2e | 49 | CC="%{__cc}" \ |
23348caa | 50 | OPTIMIZE="%{rpmcflags}" |
3f625336 | 51 | |
23348caa | 52 | %{?with_tests:%{__make} test} |
df7b83f5 | 53 | |
54 | %install | |
55 | rm -rf $RPM_BUILD_ROOT | |
56 | ||
0a92eef6 | 57 | %{__make} pure_install \ |
2c4b207f | 58 | DESTDIR=$RPM_BUILD_ROOT |
df7b83f5 | 59 | |
60 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
23348caa | 61 | gzip -9nf eg/README |
62 | cp -a eg/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
0a92eef6 | 63 | rm -f $RPM_BUILD_ROOT%{perl_vendorarch}/auto/DBIx/TextIndex/.packlist |
df7b83f5 | 64 | |
65 | %clean | |
66 | rm -rf $RPM_BUILD_ROOT | |
67 | ||
68 | %files | |
69 | %defattr(644,root,root,755) | |
c0746210 JB |
70 | %{perl_vendorarch}/DBIx/*.pm |
71 | %{perl_vendorarch}/DBIx/TextIndex | |
72 | %dir %{perl_vendorarch}/auto/DBIx/TextIndex | |
c0746210 | 73 | %attr(755,root,root) %{perl_vendorarch}/auto/DBIx/TextIndex/*.so |
df7b83f5 | 74 | %{_examplesdir}/%{name}-%{version} |
75 | %{_mandir}/man3/* |