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