3 %bcond_with tests # do not perform "make test"
7 Summary: CDB::TinyCDB - Perl extension for TinyCDB library to cdb databases
12 License: GPL v1+ or Artistic
13 Group: Development/Languages/Perl
14 Source0: http://www.cpan.org/modules/by-authors/id/A/AJ/AJGB/CDB-TinyCDB-%{version}.tar.gz
15 # Source0-md5: e77702b031264c6686a6f617e92b9e24
16 URL: https://metacpan.org/release/CDB-TinyCDB/
17 BuildRequires: perl-devel >= 1:5.8.0
18 BuildRequires: rpm-perlprov >= 4.1-13
19 BuildRequires: tinycdb-devel
21 BuildRequires: perl-Test-Exception
22 BuildRequires: perl-Test-NoWarnings
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 CDB::TinyCDB is a Perl extension for TinyCDB library to query and
31 %setup -q -n %{pdir}-%{pnam}-%{version}
34 %{__perl} Makefile.PL \
38 OPTIMIZE="%{rpmcflags}"
40 %{?with_tests:%{__make} test}
43 rm -rf $RPM_BUILD_ROOT
44 %{__make} pure_install \
45 DESTDIR=$RPM_BUILD_ROOT
48 rm -rf $RPM_BUILD_ROOT
51 %defattr(644,root,root,755)
53 %dir %{perl_vendorarch}/CDB
54 %{perl_vendorarch}/CDB/TinyCDB.pm
55 %dir %{perl_vendorarch}/auto/CDB
56 %dir %{perl_vendorarch}/auto/CDB/TinyCDB
57 %attr(755,root,root) %{perl_vendorarch}/auto/CDB/TinyCDB/TinyCDB.so
58 %{_mandir}/man3/CDB::TinyCDB.3pm*