1 %include /usr/lib/rpm/macros.perl
3 %define pnam DataSource
4 Summary: DBIx::DataSource - database-independent create and drop functions
5 Summary(pl): DBIx::DataSource - niezale¿ne od bazy danych funkcje do tworzenia i usuwania
6 Name: perl-%{pdir}-%{pnam}
10 License: GPL v1+ or Artistic
11 Group: Development/Languages/Perl
12 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
13 # Source0-md5: 12d60ad75ceced40286d18fcdcb5a40b
14 BuildRequires: perl-devel >= 5.6
15 BuildRequires: rpm-perlprov >= 4.1-13
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 This module implements create_database and drop_database functions for
21 databases. It aims to provide a common interface to database creation
22 and deletion regardless of the actual database being used.
25 Ten modu³ jest implementacj± funkcji create_database i drop_database
26 dla baz danych. Celem jego jest dostarczenie wspólnego interfejsu do
27 tworzenia i usuwania baz danych, niezale¿nego od u¿ywanej bazy.
30 %setup -q -n %{pdir}-%{pnam}-%{version}
33 %{__perl} Makefile.PL \
36 %{!?_without_tests:%{__make} test}
39 rm -rf $RPM_BUILD_ROOT
41 %{__make} install DESTDIR=$RPM_BUILD_ROOT
44 rm -rf $RPM_BUILD_ROOT
47 %defattr(644,root,root,755)
48 %{perl_vendorlib}/%{pdir}/*.pm
49 %{perl_vendorlib}/%{pdir}/%{pnam}