]> git.pld-linux.org Git - packages/perl-DBIx-DataSource.git/blobdiff - perl-DBIx-DataSource.spec
- new bconds
[packages/perl-DBIx-DataSource.git] / perl-DBIx-DataSource.spec
index f4e6741b48e10b03c05c3cb761badcbfd1b044ca..1740fb13004da6e73cb4004f655be5230e6a2800 100644 (file)
@@ -1,16 +1,22 @@
+#
+# 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:       2
-License:       GPL/Artistic
+Release:       3
+# same as perl
+License:       GPL v1+ or Artistic
 Group:         Development/Languages/Perl
 Source0:       http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
-BuildRequires: perl >= 5.6
-BuildRequires: rpm-perlprov >= 3.0.3-26
+# Source0-md5: 12d60ad75ceced40286d18fcdcb5a40b
+BuildRequires: perl-devel >= 5.6
+BuildRequires: rpm-perlprov >= 4.1-13
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -28,9 +34,11 @@ tworzenia i usuwania baz danych, niezale
 %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
@@ -42,6 +50,6 @@ 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/*
This page took 0.052019 seconds and 4 git commands to generate.