3 %bcond_without tests # do not perform "make test"
6 %define pnam Class-IntrospectableM2M
7 Summary: DBIx::Class::IntrospectableM2M - Introspect many-to-many shortcuts
9 Name: perl-DBIx-Class-IntrospectableM2M
13 License: GPL v1+ or Artistic
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/DBIx/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: 9c05959fdb632062ec827ec0c7335eae
17 URL: http://search.cpan.org/dist/DBIx-Class-IntrospectableM2M/
18 BuildRequires: perl-devel >= 1:5.8.0
19 BuildRequires: rpm-perlprov >= 4.1-13
21 BuildRequires: perl-DBIx-Class
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 Because the many-to-many relationships are not real relationships, they can not
28 be introspected with DBIx::Class. Many-to-many relationships are actually just
29 a collection of convenience methods installed to bridge two relationships.
30 This DBIx::Class component can be used to store all relevant information
31 about these non-relationships so they can later be introspected and examined.
33 # %description -l pl.UTF-8
37 %setup -q -n %{pdir}-%{pnam}-%{version}
40 %{__perl} Makefile.PL \
44 %{?with_tests:%{__make} test}
47 rm -rf $RPM_BUILD_ROOT
49 %{__make} pure_install \
50 DESTDIR=$RPM_BUILD_ROOT
53 rm -rf $RPM_BUILD_ROOT
56 %defattr(644,root,root,755)
58 %{perl_vendorlib}/DBIx/Class/*.pm