]>
Commit | Line | Data |
---|---|---|
5280365c | 1 | # |
2 | # Conditional build: | |
a519f391 | 3 | %bcond_without tests # unit tests |
2df5db72 | 4 | |
9804efac | 5 | %define pdir B |
6 | %define pnam Utils | |
7ebd50b8 | 7 | Summary: B::Utils - helper functions for op tree manipulation |
aaf8390f | 8 | Summary(pl.UTF-8): B::Utils - funkcje pomocnicze do operacji na drzewie op |
5280365c | 9 | Name: perl-B-Utils |
dc54f3d7 | 10 | Version: 0.27 |
80a22288 | 11 | Release: 7 |
3e27795c | 12 | License: GPL or Artistic |
5280365c | 13 | Group: Development/Languages/Perl |
dc54f3d7 MK |
14 | Source0: http://www.cpan.org/modules/by-module/B/%{pdir}-%{pnam}-%{version}.tar.gz |
15 | # Source0-md5: 340d6461afcec016ce6d0a0ba27290ba | |
a519f391 | 16 | URL: https://metacpan.org/dist/B-Utils |
aaf8390f | 17 | BuildRequires: perl-ExtUtils-Depends >= 0.302 |
8d7fd30b | 18 | BuildRequires: perl-devel >= 1:5.8.0 |
af501005 | 19 | BuildRequires: rpm-perlprov >= 4.1-13 |
5cf730df | 20 | BuildRequires: rpmbuild(macros) >= 1.745 |
5280365c | 21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
22 | ||
23 | %description | |
24 | These functions make it easier to manipulate the op tree. | |
25 | ||
cb0191fa | 26 | %description -l pl.UTF-8 |
aaf8390f | 27 | Te funkcje ułatwiają operacje na drzewie op. |
5280365c | 28 | |
29 | %prep | |
30 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
31 | ||
32 | %build | |
af501005 | 33 | %{__perl} Makefile.PL \ |
faad07e1 | 34 | INSTALLDIRS=vendor |
5280365c | 35 | %{__make} |
36 | ||
e65b147f | 37 | %{?with_tests:%{__make} test} |
5280365c | 38 | |
39 | %install | |
40 | rm -rf $RPM_BUILD_ROOT | |
41 | ||
a88691b3 | 42 | %{__make} install \ |
43 | DESTDIR=$RPM_BUILD_ROOT | |
5280365c | 44 | |
45 | %clean | |
46 | rm -rf $RPM_BUILD_ROOT | |
47 | ||
48 | %files | |
49 | %defattr(644,root,root,755) | |
aaf8390f | 50 | %{perl_vendorarch}/B/Utils.pm |
2f40dcd6 | 51 | %dir %{perl_vendorarch}/B/Utils |
52 | %dir %{perl_vendorarch}/B/Utils/Install | |
2f40dcd6 | 53 | %{perl_vendorarch}/B/Utils/Install/BUtils.h |
54 | %{perl_vendorarch}/B/Utils/Install/Files.pm | |
55 | %{perl_vendorarch}/B/Utils/Install/typemap | |
56 | %{perl_vendorarch}/B/Utils/OP.pm | |
aaf8390f JB |
57 | %dir %{perl_vendorarch}/auto/B |
58 | %dir %{perl_vendorarch}/auto/B/Utils | |
2f40dcd6 | 59 | %attr(755,root,root) %{perl_vendorarch}/auto/B/Utils/Utils.so |
aaf8390f | 60 | %{_mandir}/man3/B::Utils*.3pm* |