]> git.pld-linux.org Git - packages/perl-DBIx-AnyDBD.git/blame - perl-DBIx-AnyDBD.spec
use generic url
[packages/perl-DBIx-AnyDBD.git] / perl-DBIx-AnyDBD.spec
CommitLineData
055e57ef 1#
2# Conditional build:
98590fc3 3%bcond_without tests # Do not perform "make test"
81f3da9e 4
308fdedc 5%define pdir DBIx
6%define pnam AnyDBD
81f3da9e 7%include /usr/lib/rpm/macros.perl
8c4e5996 8Summary: DBIx::AnyDBD - DBD independent class
831dfdf2 9Summary(pl.UTF-8): DBIx::AnyDBD - klasa niezależności od DBD
055e57ef 10Name: perl-DBIx-AnyDBD
74fd7676 11Version: 2.01
b6dddc85 12Release: 4
43c82633 13# same as perl
14License: GPL v1+ or Artistic
055e57ef 15Group: Development/Languages/Perl
f84679b1 16Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
c64ca803 17# Source0-md5: b8dcb0ec10bcc7e8d83e1a031b73ab6b
81f3da9e 18URL: http://search.cpan.org/dist/DBIx-AnyDBD/
661ad8c2 19BuildRequires: perl-devel >= 1:5.8.0
81f3da9e 20BuildRequires: rpm-perlprov >= 4.1-13
98590fc3 21%if %{with tests}
055e57ef 22BuildRequires: perl-DBI
23%endif
24BuildArch: noarch
25BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27%description
4d0dcfc0
ER
28This class provides application developers with an abstraction class a
29level away from DBI, that allows them to write an application that
055e57ef 30works on multiple database platforms. The idea isn't to take away the
31responsibility for coding different SQL on different platforms, but to
32simply provide a platform that uses the right class at the right time
33for whatever DB is currently in use.
34
a9bfdf47
JR
35%description -l pl.UTF-8
36Ta klasa udostępnia programistom aplikacji klasę abstrakcji na
37poziomie ponad DBI, pozwalającą pisać aplikacje działające na wielu
38platformach bazodanowych. Ideą nie jest wyeliminowanie konieczności
39używania różnego SQL dla różnych platform, ale dostarczenie platformy
40używającej właściwej klasy we właściwym czasie, w zależności od
41aktualnie używanej bazy danych.
055e57ef 42
43%prep
44%setup -q -n %{pdir}-%{pnam}-%{version}
45
46%build
87a3c393 47%{__perl} Makefile.PL \
9644d71b 48 INSTALLDIRS=vendor
055e57ef 49%{__make}
633f337a 50
98590fc3 51%{?with_tests:%{__make} test}
055e57ef 52
53%install
54rm -rf $RPM_BUILD_ROOT
55
8cb675ea 56%{__make} install \
57 DESTDIR=$RPM_BUILD_ROOT
055e57ef 58
59install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
4d0dcfc0 60cp -a example/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
055e57ef 61
62%clean
63rm -rf $RPM_BUILD_ROOT
64
65%files
66%defattr(644,root,root,755)
74fd7676 67%doc Change* README
87a3c393 68%{perl_vendorlib}/%{pdir}/*.pm
055e57ef 69%{_examplesdir}/%{name}-%{version}
70%{_mandir}/man3/*
This page took 0.120984 seconds and 4 git commands to generate.