]>
Commit | Line | Data |
---|---|---|
a3713ea3 | 1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
4 | # | |
a3713ea3 | 5 | %define pdir DBIx |
6 | %define pnam Class-IntrospectableM2M | |
7 | Summary: DBIx::Class::IntrospectableM2M - Introspect many-to-many shortcuts | |
8 | #Summary(pl.UTF-8): | |
9 | Name: perl-DBIx-Class-IntrospectableM2M | |
10 | Version: 0.001001 | |
11 | Release: 1 | |
12 | # same as perl | |
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 | |
20 | %if %{with tests} | |
21 | BuildRequires: perl-DBIx-Class | |
22 | %endif | |
23 | BuildArch: noarch | |
24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
25 | ||
26 | %description | |
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. | |
32 | ||
33 | # %description -l pl.UTF-8 | |
34 | # TODO | |
35 | ||
36 | %prep | |
37 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
38 | ||
39 | %build | |
40 | %{__perl} Makefile.PL \ | |
41 | INSTALLDIRS=vendor | |
42 | %{__make} | |
43 | ||
44 | %{?with_tests:%{__make} test} | |
45 | ||
46 | %install | |
47 | rm -rf $RPM_BUILD_ROOT | |
48 | ||
49 | %{__make} pure_install \ | |
50 | DESTDIR=$RPM_BUILD_ROOT | |
51 | ||
52 | %clean | |
53 | rm -rf $RPM_BUILD_ROOT | |
54 | ||
55 | %files | |
56 | %defattr(644,root,root,755) | |
57 | %doc Changes | |
58 | %{perl_vendorlib}/DBIx/Class/*.pm | |
59 | %{_mandir}/man3/* |