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