]>
Commit | Line | Data |
---|---|---|
4b67f828 JR |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
4 | # | |
5 | %define pdir Git | |
6 | %define pnam Wrapper | |
4b67f828 JR |
7 | Summary: Git::Wrapper - Wrap git(7) command-line interface |
8 | Name: perl-Git-Wrapper | |
9 | Version: 0.048 | |
10 | Release: 1 | |
11 | # same as perl | |
12 | License: GPL v1+ or Artistic | |
13 | Group: Development/Languages/Perl | |
14 | Source0: http://www.cpan.org/modules/by-module/Git/%{pdir}-%{pnam}-%{version}.tar.gz | |
15 | # Source0-md5: 8dcb01a160c400b655c0ba69f57f054f | |
16 | URL: https://metacpan.org/release/Git-Wrapper/ | |
17 | BuildRequires: perl-devel >= 1:5.8.0 | |
18 | BuildRequires: rpm-perlprov >= 4.1-13 | |
19 | BuildRequires: perl-Devel-CheckBin | |
20 | %if %{with tests} | |
21 | BuildRequires: perl-File-chdir | |
22 | BuildRequires: perl-Sort-Versions | |
23 | BuildRequires: perl-Test-Deep | |
24 | BuildRequires: perl-Test-Exception | |
25 | %endif | |
26 | BuildArch: noarch | |
27 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
28 | ||
29 | %description | |
30 | Git::Wrapper provides an API for git(7) that uses Perl data structures for | |
31 | argument passing, instead of CLI-style --options as Git does. | |
32 | ||
33 | %prep | |
34 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
35 | ||
36 | %build | |
37 | %{__perl} Makefile.PL \ | |
38 | INSTALLDIRS=vendor | |
39 | %{__make} | |
40 | ||
41 | %{?with_tests:%{__make} test} | |
42 | ||
43 | %install | |
44 | rm -rf $RPM_BUILD_ROOT | |
45 | ||
46 | %{__make} pure_install \ | |
47 | DESTDIR=$RPM_BUILD_ROOT | |
48 | ||
49 | %clean | |
50 | rm -rf $RPM_BUILD_ROOT | |
51 | ||
52 | %files | |
53 | %defattr(644,root,root,755) | |
54 | %doc Changes INSTALL | |
55 | %{perl_vendorlib}/Git/*.pm | |
56 | %{perl_vendorlib}/Git/Wrapper | |
57 | %{_mandir}/man3/* |