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