]> git.pld-linux.org Git - packages/perl-DBIx-TextIndex.git/blame - perl-DBIx-TextIndex.spec
rebuild with perl 5.32
[packages/perl-DBIx-TextIndex.git] / perl-DBIx-TextIndex.spec
CommitLineData
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 7Summary: DBIx::TextIndex - Perl extension for full-text searching in SQL databases
fb0b3b35 8Summary(pl.UTF-8): DBIx::TextIndex - rozszerzenie do pełnotekstowego przeszukiwania baz SQL
df7b83f5 9Name: perl-DBIx-TextIndex
20170e26 10Version: 0.28
167b5d07 11Release: 13
b63561f1 12# same as perl
13License: GPL v1+ or Artistic
df7b83f5 14Group: Development/Languages/Perl
c0746210 15Source0: http://www.cpan.org/modules/by-module/DBIx/%{pdir}-%{pnam}-%{version}.tar.gz
20170e26 16# Source0-md5: 1533f1e0c736988b22b29bcd4ba739a8
c0746210 17URL: http://search.cpan.org/dist/DBIx-TextIndex/
8d855bc5 18BuildRequires: perl-devel >= 1:5.8.0
c2b55568 19BuildRequires: rpm-perlprov >= 4.1-13
23348caa 20%if %{with tests}
df7b83f5 21BuildRequires: perl(Data::Dumper)
0a92eef6 22BuildRequires: perl-Bit-Vector
23348caa 23BuildRequires: perl-Exception-Class
c0746210
JB
24BuildRequires: perl-Text-Balanced
25BuildRequires: perl-Text-Unaccent
df7b83f5 26%endif
0a92eef6 27Requires: perl-DBI >= 1.48-2
df7b83f5 28BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29
30%description
3f625336
JB
31DBIx::TextIndex was developed for doing full-text searches on BLOB
32columns stored in a database. Almost any database with BLOB and DBI
33support should work with minor adjustments to SQL statements in the
34module.
df7b83f5 35
ccd5ed18
JR
36%description -l pl.UTF-8
37Moduł DBIx::TextIndex służy do przeprowadzania pełnotekstowych
38przeszukiwań kolumn BLOB zapisanych w bazie danych. Prawie każda baza
39danych z obsługą BLOB i DBI powinna działać po niewielkich poprawkach
40wyraż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
55rm -rf $RPM_BUILD_ROOT
56
0a92eef6 57%{__make} pure_install \
2c4b207f 58 DESTDIR=$RPM_BUILD_ROOT
df7b83f5 59
60install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
23348caa 61gzip -9nf eg/README
62cp -a eg/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
0a92eef6 63rm -f $RPM_BUILD_ROOT%{perl_vendorarch}/auto/DBIx/TextIndex/.packlist
df7b83f5 64
65%clean
66rm -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/*
This page took 0.111415 seconds and 4 git commands to generate.