]> git.pld-linux.org Git - packages/perl-DBIx-Class-TimeStamp.git/blob - perl-DBIx-Class-TimeStamp.spec
098c5f13c953cb5a600dcd0b7184589c4b26b925
[packages/perl-DBIx-Class-TimeStamp.git] / perl-DBIx-Class-TimeStamp.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    Class-TimeStamp
8 Summary:        DBIx::Class::TimeStamp - automatically set timestamp fields in a table
9 Summary(pl.UTF-8):      DBIx::Class::TimeStamp - automatyczne ustawianie pól znaczników czasu w tabeli
10 Name:           perl-DBIx-Class-TimeStamp
11 Version:        0.07
12 Release:        1
13 # same as perl
14 License:        GPL v1+ or Artistic
15 Group:          Development/Languages/Perl
16 Source0:        http://www.cpan.org/modules/by-authors/id/J/JS/JSHIRLEY/%{pdir}-%{pnam}-%{version}.tar.gz
17 # Source0-md5:  e28818bb60b3927efcf0c5c76e44af08
18 URL:            http://search.cpan.org/dist/DBIx-Class-TimeStamp/
19 BuildRequires:  perl-devel >= 1:5.8.0
20 BuildRequires:  rpm-perlprov >= 4.1-13
21 %if %{with tests}
22 BuildRequires:  perl(DBIx::Class::DynamicDefault)
23 BuildRequires:  perl-DateTime
24 BuildRequires:  perl-DBIx-Class
25 BuildRequires:  perl-Class-Accessor-Grouped
26 BuildRequires:  perl-DateTime-Format-MySQL
27 BuildRequires:  perl-Time-Warp
28 %endif
29 BuildArch:      noarch
30 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31
32 %description
33 Works in conjunction with InflateColumn::DateTime to automatically set
34 update and create date and time based fields in a table.
35
36 %description -l pl.UTF-8
37 Ten moduł działa w połączeniu z InflateColumn::DateTime, aby
38 automatycznie ustawiać w tabeli pola z datą i czasem uaktualnienia
39 oraz utworzenia.
40
41 %prep
42 %setup -q -n %{pdir}-%{pnam}-%{version}
43
44 %build
45 %{__perl} Makefile.PL \
46         INSTALLDIRS=vendor
47 %{__make}
48
49 %{?with_tests:%{__make} test}
50
51 %install
52 rm -rf $RPM_BUILD_ROOT
53
54 %{__make} install \
55         DESTDIR=$RPM_BUILD_ROOT
56
57 %clean
58 rm -rf $RPM_BUILD_ROOT
59
60 %files
61 %defattr(644,root,root,755)
62 %doc Changes README
63 %{perl_vendorlib}/DBIx/Class/*.pm
64 %{_mandir}/man3/*
This page took 0.083614 seconds and 2 git commands to generate.