]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
4 | # | |
5 | %include /usr/lib/rpm/macros.perl | |
6 | %define pdir DBIx | |
7 | %define pnam Class | |
8 | Summary: DBIx::Class - Extensible and flexible object <-> relational mapper | |
9 | Summary(pl.UTF-8): DBIx::Class - rozszerzalne i elastyczne wiązanie obiektów <-> relacji | |
10 | Name: perl-DBIx-Class | |
11 | Version: 0.08196 | |
12 | Release: 1 | |
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: 9170d4fe95665189ed020c39d7370ca2 | |
17 | URL: http://search.cpan.org/dist/DBIx-Class/ | |
18 | BuildRequires: perl-devel >= 1:5.8.0 | |
19 | BuildRequires: rpm-perlprov >= 4.1-13 | |
20 | %if %{with tests} | |
21 | BuildRequires: perl-Carp-Clan >= 6.0 | |
22 | BuildRequires: perl-Class-Accessor-Grouped >= 0.10002 | |
23 | BuildRequires: perl-Class-C3-Componentised >= 1.0009 | |
24 | BuildRequires: perl-Class-Inspector >= 1.24 | |
25 | BuildRequires: perl-DBD-SQLite >= 1.29 | |
26 | BuildRequires: perl-DBI >= 1.605 | |
27 | BuildRequires: perl-Data-Dumper-Concise | |
28 | BuildRequires: perl-Data-Page >= 2.00 | |
29 | BuildRequires: perl-Devel-Cycle >= 1.10 | |
30 | BuildRequires: perl-ExtUtils-MakeMaker >= 6.42 | |
31 | BuildRequires: perl-File-Temp >= 0.22 | |
32 | BuildRequires: perl-JSON-Any >= 1.18 | |
33 | BuildRequires: perl-MRO-Compat >= 0.09 | |
34 | BuildRequires: perl-Module-Find >= 0.06 | |
35 | BuildRequires: perl-Path-Class >= 0.16 | |
36 | BuildRequires: perl-SQL-Abstract >= 1.72 | |
37 | BuildRequires: perl-SQL-Abstract-Limit >= 0.13 | |
38 | # optional. not accessible atm | |
39 | #BuildRequires: perl-SQL-Translator >= 0.11006 | |
40 | BuildRequires: perl-Scope-Guard >= 0.03 | |
41 | BuildRequires: perl-Sub-Name >= 0.04 | |
42 | BuildRequires: perl-Test-Deep | |
43 | BuildRequires: perl-Test-Exception >= 0.31 | |
44 | BuildRequires: perl-Test-Memory-Cycle | |
45 | BuildRequires: perl-Test-Simple >= 0.92 | |
46 | BuildRequires: perl-Test-Warn >= 0.21 | |
47 | BuildRequires: perl-Text-CSV | |
48 | %endif | |
49 | BuildArch: noarch | |
50 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
51 | ||
52 | # Only APR::UUID is available in PLD. And if it was we would still | |
53 | # need only one of Data::UUID, Data::Uniqid, APR::UUID or UUID at any | |
54 | # time to get full functionality | |
55 | %define _noautoreq 'perl(Data::Uniqid)' 'perl(UUID)' 'perl(APR::UUID)' 'perl(JSON)' 'perl(DBD::Multi)' 'perl(DBIC::SQL::Abstract)' | |
56 | ||
57 | %description | |
58 | DBIx::Class is a SQL to OOP mapper, inspired by the Class::DBI | |
59 | framework, and meant to support compability with it, while | |
60 | restructuring the insides, and making it possible to support some new | |
61 | features like self-joins, distinct, group bys and more. | |
62 | ||
63 | It's currently considered EXPERIMENTAL - bring this near a production | |
64 | database at your own risk! The API is *not* fixed yet, although most | |
65 | of the primitives should be good for the future and any API changes | |
66 | will be posted to the mailing list before they're committed. | |
67 | ||
68 | %description -l pl.UTF-8 | |
69 | DBIx::Class to klasa odwzorowująca SQL na OOP, zainspirowana | |
70 | szkieletem Class::DBI, mająca obsługiwać kompatibilność z nim, ale | |
71 | restrukturyzując wnętrzności i umożliwiając obsługę niektórych nowych | |
72 | możliwości, takie jak "self-join", "distinct", "group by" i inne. | |
73 | ||
74 | Ten moduł jest aktualnie uważany za EKSPERYMENTALNY - zbliżać go do | |
75 | baz produkcyjnych można tylko na własne ryzyko! API nie zostało | |
76 | jeszcze ustalone, choć większość prymitywów powinna być dobra na | |
77 | przyszłość i każda zmiana API jest wysyłana na listę dyskusyjną przed | |
78 | zatwierdzeniem. | |
79 | ||
80 | %package -n perl-SQL-Translator-DBIx-Class | |
81 | Summary: DBIx::Class schema parser and file producer | |
82 | Summary(pl.UTF-8): Narzędzie do analizy schematów i tworzenia plików DBIx::Class | |
83 | Group: Development/Languages/Perl | |
84 | ||
85 | %description -n perl-SQL-Translator-DBIx-Class | |
86 | This package contains SQL::Translator (sqlfairy) parser for | |
87 | DBIx::Class::Schema objects and producer for DBIx::Class files. | |
88 | ||
89 | %description -n perl-SQL-Translator-DBIx-Class -l pl.UTF-8 | |
90 | Ten pakiet zawiera analizator SQL::Translator (sqlfairy) dla obiektów | |
91 | DBIx::Class::Schema oraz generator plików DBIx::Class. | |
92 | ||
93 | %prep | |
94 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
95 | ||
96 | # SQL::Translator is FUBAR | |
97 | mv t/94versioning.t{,.fubar} | |
98 | ||
99 | %build | |
100 | %{__perl} -MExtUtils::MakeMaker -e 'WriteMakefile(NAME=>"DBIx::Class", EXE_FILES=>[<script/*>])' \ | |
101 | INSTALLDIRS=vendor | |
102 | %{__make} | |
103 | ||
104 | %{?with_tests:%{__make} test} | |
105 | ||
106 | %install | |
107 | rm -rf $RPM_BUILD_ROOT | |
108 | install -d $RPM_BUILD_ROOT%{perl_vendorlib}/DBIx/Class/{Schema,ResultSet} | |
109 | ||
110 | %{__make} install \ | |
111 | DESTDIR=$RPM_BUILD_ROOT | |
112 | ||
113 | %clean | |
114 | rm -rf $RPM_BUILD_ROOT | |
115 | ||
116 | %files | |
117 | %defattr(644,root,root,755) | |
118 | %doc Changes | |
119 | %attr(755,root,root) %{_bindir}/* | |
120 | %{perl_vendorlib}/DBIx/*.pm | |
121 | %{perl_vendorlib}/DBIx/Class | |
122 | %{_mandir}/man3/DBIx* | |
123 | %{_mandir}/man1/dbicadmin.* | |
124 | ||
125 | %files -n perl-SQL-Translator-DBIx-Class | |
126 | %defattr(644,root,root,755) | |
127 | %{perl_vendorlib}/SQL/Translator/Parser/* | |
128 | %{perl_vendorlib}/SQL/Translator/Producer/* | |
129 | %{_mandir}/man3/SQL* |