]>
Commit | Line | Data |
---|---|---|
602ba66b ER |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
4 | ||
5 | %define pdir SVN | |
6 | %define pnam Notify | |
7 | %include /usr/lib/rpm/macros.perl | |
8 | Summary: SVN::Notify - Subversion activity notification | |
9 | Name: perl-SVN-Notify | |
10 | Version: 2.80 | |
11 | Release: 1 | |
12 | # same as perl | |
13 | License: GPL v1+ or Artistic | |
14 | Group: Development/Languages/Perl | |
15 | Source0: http://www.cpan.org/modules/by-authors/id/D/DW/DWHEELER/SVN-Notify-%{version}.tar.gz | |
16 | # Source0-md5: a91d42660ffd46a224cac95e2d17f016 | |
17 | URL: http://search.cpan.org/dist/SVN-Notify/ | |
18 | BuildRequires: perl-Module-Build | |
19 | BuildRequires: perl-devel >= 1:5.8.0 | |
20 | BuildRequires: rpm-perlprov >= 4.1-13 | |
21 | BuildArch: noarch | |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
23 | ||
24 | %description | |
25 | This class may be used for sending email messages for Subversion | |
26 | repository activity. | |
27 | ||
28 | There are a number of different modes supported, and SVN::Notify is | |
29 | fully subclassable, to add new functionality, and offers comprehensive | |
30 | content filtering to easily modify the format of its messages. | |
31 | ||
32 | %prep | |
33 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
34 | ||
35 | %build | |
36 | %{__perl} Build.PL \ | |
37 | destdir=$RPM_BUILD_ROOT \ | |
38 | installdirs=vendor | |
39 | ./Build | |
40 | ||
41 | %{?with_tests:./Build test} | |
42 | ||
43 | %install | |
44 | rm -rf $RPM_BUILD_ROOT | |
45 | ./Build install | |
46 | ||
47 | %clean | |
48 | rm -rf $RPM_BUILD_ROOT | |
49 | ||
50 | %files | |
51 | %defattr(644,root,root,755) | |
52 | %doc Changes README | |
53 | %attr(755,root,root) %{_bindir}/svnnotify | |
54 | %{_mandir}/man1/svnnotify.1p* | |
55 | %{_mandir}/man3/SVN::Notify*.3pm* | |
56 | %{perl_vendorlib}/SVN/Notify.pm | |
57 | %{perl_vendorlib}/SVN/Notify |