source: projects/specs/trunk/p/perl-Event-Lib/perl-Event-Lib-vl.spec @ 12120

Revision 12120, 4.2 KB checked in by tomop, 5 years ago (diff)

perl-5.26 and friends

Line 
1Name:           perl-Event-Lib
2Version:        1.03
3Release:        4%{?_dist_release}
4Summary:        Perl wrapper around libevent
5
6Group:          Development/Libraries
7License:        GPL+ or Artistic
8URL:            http://search.cpan.org/dist/Event-Lib/
9Source0:        http://search.cpan.org/CPAN/authors/id/V/VP/VPARSEVAL/Event-Lib-%{version}.tar.gz
10BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
11
12Vendor:         Project Vine
13Distribution:   Vine Linux
14
15#https://rt.cpan.org/Public/Bug/Display.html?id=80644
16Patch0:         https://rt.cpan.org/Ticket/Attachment/1136922/598341/lib-event.patch
17# Restore compatibility with libevent 2.1, bug #1549504, CPAN RT#124603
18Patch1:         Event-Lib-1.03-libevent_2_1.patch
19
20BuildRequires:  perl(ExtUtils::MakeMaker)
21BuildRequires:  perl(GTop)
22# Needed for test
23BuildRequires:  perl(Test::Pod)
24BuildRequires:  perl(Test::Pod::Coverage)
25BuildRequires:  libevent-devel
26BuildRequires:  libxcrypt-devel
27Requires:  perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
28
29%description
30This module is a Perl wrapper around libevent(3) as available from
31http://monkey.org/~provos/libevent/.  It allows to execute a function
32whenever a given event on a filehandle happens, a timeout occurs or a signal is
33received.
34
35
36%prep
37%setup -q -n Event-Lib-%{version}
38
39%patch0 -p1 -b .orig
40%patch1 -p1
41
42%build
43%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS" \
44 INC=-I%{_includedir} LIBS="-L%{_libdir} -levent"
45make %{?_smp_mflags}
46
47
48%install
49rm -rf %{buildroot}
50make pure_install PERL_INSTALL_ROOT=%{buildroot}
51find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
52find %{buildroot} -type f -name '*.bs' -a -size 0 -exec rm -f {} ';'
53find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';'
54chmod -R u+w %{buildroot}/*
55
56
57%check
58#Known to fail - Upstream emailed
59# t/20_signal.t
60# t/51_cleanup_persistent.t
61# t/90_leak.t
62make test || :
63
64
65%clean
66rm -rf %{buildroot}
67
68
69%files
70%defattr(-,root,root,-)
71%doc Changes README
72%{perl_vendorarch}/auto/*
73%{perl_vendorarch}/Event/
74%{_mandir}/man3/*.3*
75
76
77%changelog
78* Thu May 16 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.03-4
79- rebuilt with perl-5.26.
80- added BR:libxcrypt-devel.
81
82* Sun Nov 04 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.03-3
83- rebuilt with libevent-2.1.8.
84
85* Fri Jun 27 2014 IWAI, Masaharu <iwaim.sub@gmail.com> 1.03-2
86- build with Perl 5.16
87
88* Fri Mar 02 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.03-1
89- initial build for Vine Linux
90
91* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.03-16
92- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
93
94* Mon Jun 20 2011 Marcela Mašláňová <mmaslano@redhat.com> - 1.03-15
95- Perl mass rebuild
96
97* Thu Feb 10 2011 Christopher Aillon <caillon@redhat.com> - 1.03-14
98- Rebuild against newer libevent
99
100* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.03-13
101- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
102
103* Thu Dec 16 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.03-12
104- 661697 rebuild for fixing problems with vendorach/lib
105
106* Sat May 01 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.03-11
107- Mass rebuild with perl-5.12.0
108
109* Fri Apr 30 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.03-10
110- Mass rebuild with perl-5.12.0
111
112* Mon Dec  7 2009 Stepan Kasal <skasal@redhat.com> - 1.03-9
113- rebuild against perl 5.10.1
114
115* Mon Jul 27 2009 kwizart < kwizart at gmail.com > - 1.0.3-8
116- Fix FTBFS
117
118* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.03-7
119- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
120
121* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.03-6
122- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
123
124* Wed Oct 15 2008 kwizart < kwizart at gmail.com > - 1.0.3-5
125- Fix typo
126
127* Sat Jun 28 2008 kwizart < kwizart at gmail.com > - 1.0.3-4
128- Disable some tests known to fail
129
130* Sat Jun 28 2008 kwizart < kwizart at gmail.com > - 1.0.3-3
131- rebuild for libevent
132
133* Fri May 16 2008 kwizart < kwizart at gmail.com > - 1.0.3-2
134- Add Missing BR for test
135
136* Wed Apr 30 2008 kwizart < kwizart at gmail.com > - 1.0.3-1
137- Initial package for Fedora
Note: See TracBrowser for help on using the repository browser.