1 %include /usr/lib/rpm/macros.perl
5 Summary: Search::Xapian - Perl XS frontend to the Xapian C++ search library
6 Name: perl-Search-Xapian
10 License: GPL v1+ or Artistic
11 Group: Development/Languages/Perl
12 Source0: http://www.cpan.org/modules/by-module/Search/%{pdir}-%{pnam}-%{version}.tar.gz
13 # Source0-md5: 732c23816cdb79f66ed83a3c25e8975f
14 URL: http://search.cpan.org/dist/Search-Xapian/
15 BuildRequires: libstdc++-devel
16 BuildRequires: perl-devel >= 1:5.8.0
17 BuildRequires: rpm-perlprov >= 4.1-13
18 BuildRequires: xapian-core-devel = %{basever}
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 This module wraps most methods of most Xapian classes. The missing
23 classes and methods should be added in the future. It also provides a
24 simplified, more 'perlish' interface to some common operations, as
28 %setup -q -n %{pdir}-%{pnam}-%{version}
31 %{__perl} Makefile.PL \
34 # NOTE: (this) Perl build system doesn't have CXX, but CC is used
37 OPTIMIZE="%{rpmcxxflags}"
39 %{?with_tests:%{__make} test}
42 rm -rf $RPM_BUILD_ROOT
44 %{__make} pure_install \
45 DESTDIR=$RPM_BUILD_ROOT
47 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
48 cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
51 rm -rf $RPM_BUILD_ROOT
54 %defattr(644,root,root,755)
56 %dir %{perl_vendorarch}/Search
57 %{perl_vendorarch}/Search/*.pm
58 %dir %{perl_vendorarch}/Search/Xapian
59 %{perl_vendorarch}/Search/Xapian/*.pm
60 %dir %{perl_vendorarch}/Search/Xapian/MSet
61 %{perl_vendorarch}/Search/Xapian/MSet/Tied.pm
62 %dir %{perl_vendorarch}/auto/Search
63 %dir %{perl_vendorarch}/auto/Search/Xapian
64 %{perl_vendorarch}/auto/Search/Xapian/*.bs
65 %attr(755,root,root) %{perl_vendorarch}/auto/Search/Xapian/*.so
67 %{_mandir}/man3/Search::Xapian*
69 %{_examplesdir}/%{name}-%{version}