+#
+# Conditional build:
+%bcond_without tests # Do not perform "make test"
+#
%include /usr/lib/rpm/macros.perl
%define pdir DBIx
%define pnam DataSource
-Summary: DBIx::DataSource -- Database-independant create and drop functions
-Summary(pl): DBIx::DataSource -- niezale¿ne od bazy danych funkcje do tworzenia i usuwania
+Summary: DBIx::DataSource - database-independent create and drop functions
+Summary(pl): DBIx::DataSource - niezale¿ne od bazy danych funkcje do tworzenia i usuwania
Name: perl-%{pdir}-%{pnam}
Version: 0.02
-Release: 1
-License: GPL/Artistic
+Release: 3
+# same as perl
+License: GPL v1+ or Artistic
Group: Development/Languages/Perl
-Source0: ftp://ftp.cpan.org/pub/CPAN/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
-BuildRequires: perl >= 5.6
-BuildRequires: rpm-perlprov >= 3.0.3-26
+Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5: 12d60ad75ceced40286d18fcdcb5a40b
+BuildRequires: perl-devel >= 5.6
+BuildRequires: rpm-perlprov >= 4.1-13
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
databases. It aims to provide a common interface to database creation
and deletion regardless of the actual database being used.
-# %description -l pl
-# TODO
+%description -l pl
+Ten modu³ jest implementacj± funkcji create_database i drop_database
+dla baz danych. Celem jego jest dostarczenie wspólnego interfejsu do
+tworzenia i usuwania baz danych, niezale¿nego od u¿ywanej bazy.
%prep
%setup -q -n %{pdir}-%{pnam}-%{version}
%build
-perl Makefile.PL
+%{__perl} Makefile.PL \
+ INSTALLDIRS=vendor
%{__make}
-%{!?_without_tests:%{__make} test}
+
+%{?with_tests:%{__make} test}
%install
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%{perl_sitelib}/%{pdir}/*.pm
-%{perl_sitelib}/%{pdir}/%{pnam}
+%{perl_vendorlib}/%{pdir}/*.pm
+%{perl_vendorlib}/%{pdir}/%{pnam}
%{_mandir}/man3/*