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