1 | # Package is noarch from perl 5.13.7 |
---|
2 | %global noarch_package %(perl -e 'print (($] >= 5.013007) ? 1 : 0);') |
---|
3 | |
---|
4 | Summary: Expose PL_dirty, the flag that marks global destruction |
---|
5 | Name: perl-Devel-GlobalDestruction |
---|
6 | Version: 0.13 |
---|
7 | Release: 1%{?_dist_release} |
---|
8 | License: GPL+ or Artistic |
---|
9 | Group: Development/Libraries |
---|
10 | URL: http://search.cpan.org/dist/Devel-GlobalDestruction |
---|
11 | |
---|
12 | Source: http://search.cpan.org/CPAN/authors/id/F/FL/FLORA/Devel-GlobalDestruction-%{version}.tar.gz |
---|
13 | |
---|
14 | %if %{noarch_package} |
---|
15 | BuildArch: noarch |
---|
16 | %endif |
---|
17 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
18 | BuildRequires: perl(ExtUtils::CBuilder) >= 0.27 |
---|
19 | BuildRequires: perl(ExtUtils::MakeMaker) |
---|
20 | BuildRequires: perl(Sub::Exporter::Progressive) >= 0.001011 |
---|
21 | BuildRequires: perl(XSLoader) |
---|
22 | Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) |
---|
23 | |
---|
24 | # Don't "provide" private Perl libs |
---|
25 | %{?perl_default_filter} |
---|
26 | |
---|
27 | %description |
---|
28 | Perl's global destruction is a little tricky to deal with with respect to |
---|
29 | finalizers because it's not ordered and objects can sometimes disappear. |
---|
30 | |
---|
31 | Writing defensive destructors is hard and annoying, and usually if global |
---|
32 | destruction is happening you only need the destructors that free up non |
---|
33 | process local resources to actually execute. |
---|
34 | |
---|
35 | For these constructors you can avoid the mess by simply bailing out if |
---|
36 | global destruction is in effect. |
---|
37 | |
---|
38 | %prep |
---|
39 | %setup -q -n Devel-GlobalDestruction-%{version} |
---|
40 | |
---|
41 | %build |
---|
42 | perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" |
---|
43 | make %{?_smp_mflags} |
---|
44 | |
---|
45 | %install |
---|
46 | rm -rf %{buildroot} |
---|
47 | make pure_install DESTDIR=%{buildroot} |
---|
48 | find %{buildroot} -type f -name .packlist -exec rm -f {} ';' |
---|
49 | find %{buildroot} -type f -name '*.bs' -a -size 0 -exec rm -f {} ';' |
---|
50 | find %{buildroot} -depth -type d -exec rmdir {} ';' 2>/dev/null |
---|
51 | %{_fixperms} %{buildroot} |
---|
52 | |
---|
53 | %check |
---|
54 | make test |
---|
55 | |
---|
56 | %clean |
---|
57 | rm -rf %{buildroot} |
---|
58 | |
---|
59 | %files |
---|
60 | %defattr(-,root,root,-) |
---|
61 | %doc Changes t/ |
---|
62 | %if %{noarch_package} |
---|
63 | %{perl_vendorlib}/Devel/ |
---|
64 | %else |
---|
65 | %{perl_vendorarch}/auto/Devel/ |
---|
66 | %{perl_vendorarch}/Devel/ |
---|
67 | %endif |
---|
68 | %{_mandir}/man3/Devel::GlobalDestruction.3pm* |
---|
69 | |
---|
70 | %changelog |
---|
71 | * Tue Dec 23 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 0.13-1 |
---|
72 | - updated to 0.13 |
---|
73 | - built with perl 5.16.3 |
---|
74 | |
---|
75 | * Mon Mar 05 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.04-1 |
---|
76 | - initial build for Vine Linux |
---|
77 | |
---|
78 | * Fri Jan 13 2012 Paul Howarth <paul@city-fan.org> - 0.04-1 |
---|
79 | - Update to 0.04 |
---|
80 | - To detect a perl with ${^GLOBAL_PHASE}, check for the feature itself |
---|
81 | instead of a specific perl version |
---|
82 | - Update the documentation to reflect the use of ${^GLOBAL_PHASE} if available |
---|
83 | - Stop depending on Scope::Guard for the tests |
---|
84 | - Upgrade ppport.h from version 3.13 to 3.19 |
---|
85 | - Drop no-longer-necessary buildreq perl(Scope::Guard) |
---|
86 | - Use DESTDIR rather than PERL_INSTALL_ROOT |
---|
87 | - BR: perl(XSLoader) |
---|
88 | |
---|
89 | * Wed Jan 11 2012 Paul Howarth <paul@city-fan.org> - 0.03-3 |
---|
90 | - Fedora 17 mass rebuild |
---|
91 | |
---|
92 | * Wed Jun 29 2011 Marcela Mašláňová <mmaslano@redhat.com> - 0.03-2 |
---|
93 | - Perl mass rebuild |
---|
94 | |
---|
95 | * Fri Jun 24 2011 Paul Howarth <paul@city-fan.org> - 0.03-1 |
---|
96 | - Update to 0.03 |
---|
97 | - Drop the XS code on perl versions recent enough to have ${^GLOBAL_PHASE} |
---|
98 | (5.13.7 onwards) |
---|
99 | - Require at least Perl 5.6 |
---|
100 | - Use XSLoader without a fallback to DynaLoader |
---|
101 | - Use our instead of use vars |
---|
102 | - This release by FLORA -> update source URL |
---|
103 | - Package is noarch from perl 5.13.7 |
---|
104 | - Package Changes file |
---|
105 | - Use %%{?perl_default_filter} |
---|
106 | |
---|
107 | * Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.02-12 |
---|
108 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild |
---|
109 | |
---|
110 | * Thu Dec 16 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.02-11 |
---|
111 | - Rebuild to fix problems with vendorarch/lib (#661697) |
---|
112 | |
---|
113 | * Fri Apr 30 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.02-10 |
---|
114 | - Mass rebuild with perl-5.12.0 |
---|
115 | |
---|
116 | * Fri Apr 30 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.02-9 |
---|
117 | - Mass rebuild with perl-5.12.0 |
---|
118 | |
---|
119 | * Mon Dec 7 2009 Stepan Kasal <skasal@redhat.com> - 0.02-8 |
---|
120 | - rebuild against perl 5.10.1 |
---|
121 | |
---|
122 | * Sun Aug 23 2009 Chris Weyl <cweyl@alumni.drew.edu> 0.02-7 |
---|
123 | - bump |
---|
124 | |
---|
125 | * Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.02-6 |
---|
126 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild |
---|
127 | |
---|
128 | * Sat May 23 2009 Chris Weyl <cweyl@alumni.drew.edu> - 0.02-5 |
---|
129 | - Stripping bad provides of private Perl extension libs |
---|
130 | |
---|
131 | * Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.02-4 |
---|
132 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild |
---|
133 | |
---|
134 | * Mon Nov 03 2008 Chris Weyl <cweyl@alumni.drew.edu> 0.02-3 |
---|
135 | - bump |
---|
136 | |
---|
137 | * Sat Nov 01 2008 Chris Weyl <cweyl@alumni.drew.edu> 0.02-2 |
---|
138 | - tweak summary |
---|
139 | |
---|
140 | * Sun Oct 26 2008 Chris Weyl <cweyl@alumni.drew.edu> 0.02-1 |
---|
141 | - clean up for review submission |
---|
142 | |
---|
143 | * Sun Oct 19 2008 Chris Weyl <cweyl@alumni.drew.edu> 0.02-0.1 |
---|
144 | - initial RPM packaging |
---|
145 | - generated with cpan2dist (CPANPLUS::Dist::RPM version 0.0.5) |
---|
146 | |
---|