]>
Commit | Line | Data |
---|---|---|
b6a70f00 | 1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
4 | # | |
5 | %include /usr/lib/rpm/macros.perl | |
6 | %define pdir Devel | |
7 | %define pnam GlobalDestruction | |
8 | Summary: Devel::GlobalDestruction - Expose PL_dirty, the flag which marks global destruction | |
79a2cfd5 | 9 | Summary(pl.UTF-8): Devel::GlobalDestruction - udostępnienie PL_dirty - flagi oznaczającej globalną destrukcję |
b6a70f00 | 10 | Name: perl-Devel-GlobalDestruction |
d728873a JR |
11 | Version: 0.11 |
12 | Release: 1 | |
b6a70f00 | 13 | # same as perl |
14 | License: GPL v1+ or Artistic | |
15 | Group: Development/Languages/Perl | |
fe0b0713 | 16 | Source0: http://www.cpan.org/modules/by-module/Devel/%{pdir}-%{pnam}-%{version}.tar.gz |
d728873a | 17 | # Source0-md5: f2f811fc3e8876aa3fa23d1d16dfb2bd |
b6a70f00 | 18 | URL: http://search.cpan.org/dist/Devel-GlobalDestruction/ |
19 | BuildRequires: perl-devel >= 1:5.8.0 | |
20 | BuildRequires: rpm-perlprov >= 4.1-13 | |
21 | %if %{with tests} | |
22 | BuildRequires: perl-Scope-Guard | |
23 | BuildRequires: perl-Sub-Exporter | |
d728873a | 24 | BuildRequires: perl-Sub-Exporter-Progressive |
b6a70f00 | 25 | %endif |
d728873a | 26 | BuildArch: noarch |
b6a70f00 | 27 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
28 | ||
29 | %description | |
79a2cfd5 JB |
30 | Devel::GlobalDestruction - expose PL_dirty, the flag which marks |
31 | global destruction. | |
b6a70f00 | 32 | |
79a2cfd5 JB |
33 | %description -l pl.UTF-8 |
34 | Devel::GlobalDestruction udostępnia PL_dirty - flagę oznaczającą | |
35 | globalną destrukcję. | |
b6a70f00 | 36 | |
37 | %prep | |
38 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
39 | ||
40 | %build | |
41 | %{__perl} Makefile.PL \ | |
42 | INSTALLDIRS=vendor | |
43 | %{__make} \ | |
44 | CC="%{__cc}" \ | |
45 | OPTIMIZE="%{rpmcflags}" | |
46 | ||
47 | %{?with_tests:%{__make} test} | |
48 | ||
49 | %install | |
50 | rm -rf $RPM_BUILD_ROOT | |
51 | ||
52 | %{__make} pure_install \ | |
53 | DESTDIR=$RPM_BUILD_ROOT | |
54 | ||
55 | %clean | |
56 | rm -rf $RPM_BUILD_ROOT | |
57 | ||
58 | %files | |
59 | %defattr(644,root,root,755) | |
d728873a | 60 | %{perl_vendorlib}/Devel/GlobalDestruction.pm |
79a2cfd5 | 61 | %{_mandir}/man3/Devel::GlobalDestruction.3pm* |