]> git.pld-linux.org Git - packages/perl-DBIx-Copy.git/blob - perl-DBIx-Copy.spec
9c4695ac478443efdd05e3ecb1bf005da441a6eb
[packages/perl-DBIx-Copy.git] / perl-DBIx-Copy.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    Copy
8 Summary:        DBIx::Copy Perl module - for copying database content from one db to another
9 Summary(pl.UTF-8):      Moduł Perla DBIx::Copy - do kopiowania zawartości jednej bazy danych do innej
10 Name:           perl-DBIx-Copy
11 Version:        0.02
12 Release:        5
13 License:        GPL or Artistic
14 Group:          Development/Languages/Perl
15 Source0:        http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5:  e453a98258a27fe6704811d075746862
17 BuildRequires:  perl-devel >= 1:5.8.0
18 %if %{with tests}
19 BuildRequires:  perl-DBI
20 %endif
21 BuildRequires:  rpm-perlprov >= 4.1-13
22 BuildArch:      noarch
23 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25 %description
26 For copying a DB.  Future versions might handle mirroring as well,
27 but it's generally better if the source might send over a transaction
28 log somehow.
29
30 %description -l pl.UTF-8
31 Moduł służy do kopiowania baz danych. Być może przyszłe wersje będą
32 obsługiwały także mirroring, ale lepiej, jeśli źródło może wysyłać log
33 transakcji.
34
35 %prep
36 %setup -q -n %{pnam}
37
38 %build
39 %{__perl} Makefile.PL \
40         INSTALLDIRS=vendor
41 %{__make}
42
43 %{?with_tests:%{__make} test}
44
45 %install
46 rm -rf $RPM_BUILD_ROOT
47
48 %{__make} install \
49         DESTDIR=$RPM_BUILD_ROOT
50
51 %clean
52 rm -rf $RPM_BUILD_ROOT
53
54 %files
55 %defattr(644,root,root,755)
56 %{perl_vendorlib}/%{pdir}/*.pm
57 %{_mandir}/man3/*
This page took 0.189921 seconds and 2 git commands to generate.