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