]>
Commit | Line | Data |
---|---|---|
90ec0b06 JB |
1 | # |
2 | # Conditional build: | |
e6832c77 | 3 | %bcond_without tests # unit tests |
90ec0b06 JB |
4 | # |
5 | %define pdir B | |
6 | %define pnam COW | |
7 | Summary: B::COW - additional B helpers to check COW status | |
8 | Summary(pl.UTF-8): B::COW - dodatkowe funkcje pomocnicze B do sprawdzania stanu COW | |
9 | Name: perl-B-COW | |
e6832c77 JB |
10 | Version: 0.007 |
11 | Release: 1 | |
90ec0b06 JB |
12 | # same as perl |
13 | License: GPL v1+ or Artistic | |
14 | Group: Development/Languages/Perl | |
15 | Source0: http://www.cpan.org/modules/by-module/B/%{pdir}-%{pnam}-%{version}.tar.gz | |
e6832c77 | 16 | # Source0-md5: 7afc46f19e6f906e2ba5769b21fca5ff |
90ec0b06 JB |
17 | URL: https://metacpan.org/release/B-COW |
18 | %if %{with tests} | |
e6832c77 | 19 | BuildRequires: perl-Test-Simple >= 0.88 |
90ec0b06 JB |
20 | %endif |
21 | BuildRequires: perl-devel >= 1:5.8.0 | |
22 | BuildRequires: rpm-perlprov >= 4.1-13 | |
23 | BuildRequires: rpmbuild(macros) >= 1.745 | |
24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
25 | ||
26 | %description | |
27 | B::COW provides some naive additional B helpers to check the COW | |
28 | (Copy On Write) status of one SvPV. COWed SvPV is sharing its string | |
29 | (the PV) with other SvPVs. It's a (kind of) Read Only C string, that | |
30 | would be Copied On Write (COW). | |
31 | ||
32 | %description -l pl.UTF-8 | |
33 | B::COW udostępnia kilka prostych, dodatkowych funkcji pomocniczych B | |
34 | do sprawdzania stanu COW (Copy On Write). Kopiowany przy zapisie SvPV | |
35 | współdzieli swój łańcuch znaków (PV) z innymi SvPV. Jest to rodzaj | |
36 | łańucha znaków C tylko do odczytu, który zostałby skopiowany przy | |
37 | zapisie (Copied On Write). | |
38 | ||
39 | %prep | |
40 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
41 | ||
42 | %build | |
43 | %{__perl} Makefile.PL \ | |
44 | INSTALLDIRS=vendor | |
45 | %{__make} | |
46 | ||
47 | %{?with_tests:%{__make} test} | |
48 | ||
49 | %install | |
50 | rm -rf $RPM_BUILD_ROOT | |
51 | ||
52 | %{__make} install \ | |
53 | DESTDIR=$RPM_BUILD_ROOT | |
54 | ||
55 | %clean | |
56 | rm -rf $RPM_BUILD_ROOT | |
57 | ||
58 | %files | |
59 | %defattr(644,root,root,755) | |
60 | %doc Changes | |
61 | %{perl_vendorarch}/B/COW.pm | |
62 | %dir %{perl_vendorarch}/auto/B/COW | |
63 | %attr(755,root,root) %{perl_vendorarch}/auto/B/COW/COW.so | |
64 | %{_mandir}/man3/B::COW.3pm* |