]> git.pld-linux.org Git - SPECS.git/blob - perl-DBIx-Librarian.spec
SPECS updated Sun 1 Aug 15:50:02 CEST 2021
[SPECS.git] / perl-DBIx-Librarian.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # do not perform "make test"
4 #
5 %define         pdir    DBIx
6 %define         pnam    Librarian
7 Summary:        DBIx::Librarian - manage SQL in repository outside code
8 Summary(pl.UTF-8):      DBIx::Librarian - zarządzanie SQL w repozytorium poza kodem
9 Name:           perl-DBIx-Librarian
10 Version:        0.6
11 Release:        2
12 # same as perl
13 License:        GPL v1+ 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:  8da6b1d5a28ec8bbbd32c89bff942a5d
17 URL:            http://search.cpan.org/dist/DBIx-Librarian/
18 BuildRequires:  perl-devel >= 1:5.8.0
19 BuildRequires:  rpm-perlprov >= 4.1-13
20 %if %{with tests}
21 BuildRequires:  perl-Class-Virtual
22 BuildRequires:  perl-DBI
23 BuildRequires:  perl-Data-Library
24 %endif
25 BuildArch:      noarch
26 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28 %description
29 This is for data manipulation (SELECT, INSERT, UPDATE, DELETE), not
30 for data definition (CREATE, DROP, ALTER). Some DDL statements may
31 work inside this module, but correct behavior is not guaranteed.
32
33 %description -l pl.UTF-8
34 Ten moduł służy do operacji na danych (SELECT, INSERT, UPDATE,
35 DELETE), ale nie do definiowania danych (CREATE, DROP, ALTER).
36 Niektóre wyrażenia DDL mogą działać wewnątrz tego modułu, ale
37 prawidłowe zachowanie nie jest gwarantowane.
38
39 %prep
40 %setup -q -n %{pdir}-%{pnam}-%{version}
41
42 %build
43 %{__perl} Makefile.PL \
44         INSTALLDIRS=vendor
45 %{__make}
46
47 %{?with_tests:%{__make} test}
48
49 %install
50 rm -rf $RPM_BUILD_ROOT
51
52 %{__make} install \
53         DESTDIR=$RPM_BUILD_ROOT
54
55 %clean
56 rm -rf $RPM_BUILD_ROOT
57
58 %files
59 %defattr(644,root,root,755)
60 %{perl_vendorlib}/%{pdir}/*.pm
61 %{perl_vendorlib}/%{pdir}/%{pnam}
62 %{_mandir}/man3/*
This page took 0.332342 seconds and 3 git commands to generate.