perl-DBIx-TextIndex/perl-DBIx-TextIndex.spec

Name: perl-DBIx-TextIndex
Summary: Perl extension for full-text searching in SQL databases
Version: 0.28
Release: 1
License: Artistic/GPL
Group: Applications/CPAN
URL: http://search.cpan.org/dist/DBIx-TextIndex/
Description: DBIx::TextIndex was developed for doing full-text searches on BLOB columns stored in a database. Almost any database with BLOB and DBI support should work with minor adjustments to SQL statements in the module. MySQL, PostgreSQL, and SQLite are currently supported.

CentOS 7 x86_64

The build was succesful. The following RPMs were generated:

Build Status

CentOS 6 x86_64

The build was succesful. The following RPMs were generated:

Build Status

Contents

The spec file used by the build system currently has the following contents:

# $Id$
# Authority: dries
# Upstream: Daniel Koch <dkoch$cpan,org>

%define perl_vendorlib %(eval "`%{__perl} -V:installvendorlib`"; echo $installvendorlib)
%define perl_vendorarch %(eval "`%{__perl} -V:installvendorarch`"; echo $installvendorarch)

%define real_name DBIx-TextIndex

Summary: Perl extension for full-text searching in SQL databases
Name: perl-DBIx-TextIndex
Version: 0.28
Release: 1%{?dist}
License: Artistic/GPL
Group: Applications/CPAN
URL: http://search.cpan.org/dist/DBIx-TextIndex/

Source: http://www.cpan.org/modules/by-module/DBIx/DBIx-TextIndex-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root

BuildRequires: perl
BuildRequires: perl(ExtUtils::MakeMaker)

%description
DBIx::TextIndex was developed for doing full-text searches on BLOB
columns stored in a database. Almost any database with BLOB and DBI
support should work with minor adjustments to SQL statements in the
module. MySQL, PostgreSQL, and SQLite are currently supported.

%prep
%setup -n %{real_name}-%{version}

%build
CFLAGS="%{optflags}" %{__perl} Makefile.PL INSTALLDIRS="vendor" PREFIX="%{buildroot}%{_prefix}"
%{__make} %{?_smp_mflags} OPTIMIZE="%{optflags}"

%install
%{__rm} -rf %{buildroot}
%{__make} pure_install

### Clean up buildroot
find %{buildroot} -name .packlist -exec %{__rm} {} \;

### Clean up docs
find eg/ -type f -exec %{__chmod} a-x {} \;

%clean
%{__rm} -rf %{buildroot}

%files
%defattr(-, root, root, 0755)
%doc Changes MANIFEST META.yml README eg/
%doc %{_mandir}/man3/DBIx::TextIndex.3pm*
%doc %{_mandir}/man3/DBIx::TextIndex::*.3pm*
%dir %{perl_vendorarch}/auto/DBIx/
%{perl_vendorarch}/auto/DBIx/TextIndex/
%dir %{perl_vendorarch}/DBIx/
%{perl_vendorarch}/DBIx/TextIndex.pm
%{perl_vendorarch}/DBIx/TextIndex

%changelog
* Mon May 05 2008 Dag Wieers <dag@wieers.com> - 0.28-1
- Updated to release 0.28.

* Fri Nov 09 2007 Dag Wieers <dag@wieers.com> - 0.27-1
- Updated to release 0.27.

* Sat Apr  9 2005 Dries Verachtert <dries@ulyssis.org> - 0.25-1
- Initial package.