]> git.pld-linux.org Git - packages/perl-DBIx-TableHash.git/blob - perl-DBIx-TableHash.spec
645ce8eefc086cbfa931e0172428330fe85affc8
[packages/perl-DBIx-TableHash.git] / perl-DBIx-TableHash.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # Do not perform "make test"
4 #
5 %include        /usr/lib/rpm/macros.perl
6 %define         pdir    DBIx
7 %define         pnam    TableHash
8 Summary:        DBIx::TableHash - Tie a hash to a MySQL table + SQL utils
9 Summary(pl.UTF-8):      DBIx::TableHash - powiązanie hasza z tabelą MySQL oraz narzędzia SQL
10 Name:           perl-DBIx-TableHash
11 Version:        1.04
12 Release:        4
13 # same as perl
14 License:        GPL v1+ or Artistic
15 Group:          Development/Languages/Perl
16 Source0:        http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
17 # Source0-md5:  83106f75a33d37b0685ded08322711ba
18 BuildRequires:  perl-devel >= 1:5.8.0
19 %if %{with tests}
20 BuildRequires:  perl-DBI
21 %endif
22 BuildRequires:  rpm-perlprov >= 4.1-13
23 BuildArch:      noarch
24 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26 %description
27 The DBHash object is designed to tie a hash to a table or a subset of
28 records in a table in a DBI database (only tested with MySQL in the
29 current version, but expected to work with any vendor).
30
31 %description -l pl.UTF-8
32 Obiekt DBHash służy do powiązania hasza z tabelą lub podzbiorem
33 rekordów w tabeli w bazie danych DBI (testowane tylko z aktualną
34 wersją MySQL, ale powinno działać z każdą bazą).
35
36 %prep
37 %setup -q -n %{pdir}-%{pnam}-%{version}
38
39 %build
40 %{__perl} Makefile.PL \
41         INSTALLDIRS=vendor
42 %{__make}
43
44 %{?with_tests:%{__make} test}
45
46 %install
47 rm -rf $RPM_BUILD_ROOT
48
49 %{__make} install \
50         DESTDIR=$RPM_BUILD_ROOT
51
52 %clean
53 rm -rf $RPM_BUILD_ROOT
54
55 %files
56 %defattr(644,root,root,755)
57 %{perl_vendorlib}/%{pdir}/*.pm
58 %{_mandir}/man3/*
This page took 0.058788 seconds and 2 git commands to generate.