|
David Dick |
044aff3 |
Name: perl-Protocol-WebSocket
|
|
|
3f985d6 |
Version: 0.24
|
|
|
43f12f7 |
Release: 2%{?dist}
|
|
David Dick |
044aff3 |
Summary: WebSocket protocol
|
|
David Dick |
044aff3 |
License: GPL+ or Artistic
|
|
David Dick |
044aff3 |
Group: Development/Libraries
|
|
David Dick |
044aff3 |
URL: http://search.cpan.org/dist/Protocol-WebSocket/
|
|
|
f27b04e |
Source0: http://search.cpan.org/CPAN/authors/id/V/VT/VTI/Protocol-WebSocket-%{version}.tar.gz
|
|
David Dick |
044aff3 |
# includes Test::More with a higher version than available for epel6
|
|
David Dick |
044aff3 |
Patch1: test_simple_include.patch
|
|
David Dick |
044aff3 |
BuildArch: noarch
|
|
|
8986e67 |
BuildRequires: coreutils
|
|
|
6c26a32 |
BuildRequires: perl-generators
|
|
|
ad63ebb |
BuildRequires: perl-interpreter
|
|
David Dick |
044aff3 |
BuildRequires: perl(base)
|
|
David Dick |
044aff3 |
BuildRequires: perl(Carp)
|
|
David Dick |
044aff3 |
BuildRequires: perl(Config)
|
|
David Dick |
044aff3 |
BuildRequires: perl(constant)
|
|
David Dick |
044aff3 |
BuildRequires: perl(Digest::MD5)
|
|
David Dick |
47b93a6 |
BuildRequires: perl(Digest::SHA)
|
|
David Dick |
044aff3 |
BuildRequires: perl(Encode)
|
|
David Dick |
044aff3 |
%if 0%{?el6}
|
|
David Dick |
044aff3 |
BuildRequires: perl(Exporter)
|
|
David Dick |
044aff3 |
%endif
|
|
|
8986e67 |
BuildRequires: perl(FindBin)
|
|
David Dick |
044aff3 |
BuildRequires: perl(IO::Handle)
|
|
|
8986e67 |
BuildRequires: perl(lib)
|
|
David Dick |
044aff3 |
BuildRequires: perl(MIME::Base64)
|
|
|
8986e67 |
BuildRequires: perl(Module::Build::Tiny) >= 0.35
|
|
David Dick |
044aff3 |
BuildRequires: perl(Scalar::Util)
|
|
David Dick |
044aff3 |
BuildRequires: perl(strict)
|
|
David Dick |
044aff3 |
BuildRequires: perl(Test::More)
|
|
David Dick |
044aff3 |
BuildRequires: perl(utf8)
|
|
David Dick |
044aff3 |
BuildRequires: perl(warnings)
|
|
David Dick |
044aff3 |
%if 0%{?el6}
|
|
David Dick |
044aff3 |
BuildRequires: perl(vars)
|
|
David Dick |
044aff3 |
%endif
|
|
|
8986e67 |
BuildRequires: sed
|
|
David Dick |
044aff3 |
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
|
David Dick |
044aff3 |
|
|
|
8986e67 |
%{?perl_default_filter}
|
|
|
8986e67 |
|
|
David Dick |
044aff3 |
%description
|
|
David Dick |
044aff3 |
Client/server WebSocket message and frame parser/constructor. This module
|
|
David Dick |
044aff3 |
does not provide a WebSocket server or client, but is made for using in
|
|
David Dick |
044aff3 |
http servers or clients to provide WebSocket support.
|
|
David Dick |
044aff3 |
|
|
David Dick |
044aff3 |
%prep
|
|
David Dick |
044aff3 |
%setup -q -n Protocol-WebSocket-%{version}
|
|
David Dick |
044aff3 |
%{__sed} -i 's|\r||' ./examples/reflex.pl
|
|
David Dick |
044aff3 |
%if 0%{?el6}
|
|
David Dick |
044aff3 |
%patch1 -p1
|
|
David Dick |
044aff3 |
%endif
|
|
David Dick |
044aff3 |
# Upstream is okay with wsconsole being made available as a binary for Fedora/EPEL
|
|
|
8986e67 |
# Module::Build::Tiny requires that all executables must be in script/
|
|
|
8986e67 |
%{__mv} util script
|
|
|
8986e67 |
%{__sed} -i -e '1s|#!/usr/bin/env perl|%(perl -MConfig -e 'print $Config{startperl}')|' script/* examples/*
|
|
David Dick |
044aff3 |
|
|
David Dick |
044aff3 |
%build
|
|
|
8986e67 |
%{__perl} Build.PL --installdirs=vendor
|
|
David Dick |
044aff3 |
./Build
|
|
David Dick |
044aff3 |
|
|
David Dick |
044aff3 |
%install
|
|
|
8986e67 |
./Build install --destdir=$RPM_BUILD_ROOT --create_packlist=0
|
|
David Dick |
044aff3 |
|
|
David Dick |
044aff3 |
%{_fixperms} $RPM_BUILD_ROOT/*
|
|
David Dick |
044aff3 |
|
|
David Dick |
044aff3 |
%check
|
|
David Dick |
044aff3 |
%if 0%{?el6}
|
|
David Dick |
044aff3 |
PERL5LIB=test_simple_patch/lib ./Build test
|
|
David Dick |
044aff3 |
%else
|
|
David Dick |
044aff3 |
./Build test
|
|
David Dick |
044aff3 |
%endif
|
|
David Dick |
044aff3 |
|
|
David Dick |
044aff3 |
%files
|
|
|
f27b04e |
%{!?_licensedir:%global license %%doc}
|
|
|
f27b04e |
%license LICENSE
|
|
|
f27b04e |
%doc Changes examples
|
|
David Dick |
044aff3 |
%{perl_vendorlib}/*
|
|
|
8986e67 |
%{_mandir}/man1/*
|
|
David Dick |
044aff3 |
%{_mandir}/man3/*
|
|
David Dick |
044aff3 |
%{_bindir}/*
|
|
David Dick |
044aff3 |
|
|
David Dick |
044aff3 |
%changelog
|
|
|
43f12f7 |
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.24-2
|
|
|
43f12f7 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
43f12f7 |
|
|
|
3f985d6 |
* Mon Jan 15 2018 Jitka Plesnikova <jplesnik@redhat.com> - 0.24-1
|
|
|
3f985d6 |
- 0.24 bump
|
|
|
3f985d6 |
|
|
|
57cb957 |
* Wed Jan 03 2018 Jitka Plesnikova <jplesnik@redhat.com> - 0.23-1
|
|
|
57cb957 |
- 0.23 bump
|
|
|
57cb957 |
|
|
|
ad63ebb |
* Mon Dec 11 2017 Jitka Plesnikova <jplesnik@redhat.com> - 0.22-1
|
|
|
ad63ebb |
- 0.22 bump
|
|
|
ad63ebb |
|
|
|
e1020ce |
* Wed Sep 06 2017 Jitka Plesnikova <jplesnik@redhat.com> - 0.21-1
|
|
|
e1020ce |
- 0.21 bump
|
|
|
e1020ce |
|
|
|
36a7139 |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.20-4
|
|
|
36a7139 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
36a7139 |
|
|
|
e0a44cc |
* Sun Jun 04 2017 Jitka Plesnikova <jplesnik@redhat.com> - 0.20-3
|
|
|
e0a44cc |
- Perl 5.26 rebuild
|
|
|
e0a44cc |
|
|
|
ed82820 |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.20-2
|
|
|
ed82820 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
ed82820 |
|
|
|
8986e67 |
* Fri Dec 09 2016 Jitka Plesnikova <jplesnik@redhat.com> - 0.20-1
|
|
|
8986e67 |
- 0.20 bump
|
|
|
8986e67 |
|
|
|
7574e11 |
* Sat May 14 2016 Jitka Plesnikova <jplesnik@redhat.com> - 0.19-3
|
|
|
7574e11 |
- Perl 5.24 rebuild
|
|
|
7574e11 |
|
|
|
20242fd |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.19-2
|
|
|
20242fd |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
20242fd |
|
|
|
f27b04e |
* Tue Nov 10 2015 Jitka Plesnikova <jplesnik@redhat.com> - 0.19-1
|
|
|
f27b04e |
- 0.19 bump
|
|
|
f27b04e |
|
|
|
b85712f |
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.18-4
|
|
|
b85712f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
b85712f |
|
|
|
928f012 |
* Fri Jun 05 2015 Jitka Plesnikova <jplesnik@redhat.com> - 0.18-3
|
|
|
928f012 |
- Perl 5.22 rebuild
|
|
|
928f012 |
|
|
|
19b1e4c |
* Wed Sep 03 2014 Jitka Plesnikova <jplesnik@redhat.com> - 0.18-2
|
|
|
19b1e4c |
- Perl 5.20 rebuild
|
|
|
19b1e4c |
|
|
David Dick |
47b93a6 |
* Wed Sep 03 2014 David Dick <ddick@cpan.org> - 0.18-1
|
|
David Dick |
47b93a6 |
- depend on Digest::SHA instead of Digest::SHA1
|
|
David Dick |
47b93a6 |
|
|
|
3aedfd2 |
* Wed Aug 27 2014 Jitka Plesnikova <jplesnik@redhat.com> - 0.17-3
|
|
|
3aedfd2 |
- Perl 5.20 rebuild
|
|
|
3aedfd2 |
|
|
|
01649c2 |
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.17-2
|
|
|
01649c2 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
01649c2 |
|
|
David Dick |
044aff3 |
* Sat Apr 12 2014 David Dick <ddick@cpan.org> - 0.17-1
|
|
David Dick |
044aff3 |
- Initial release
|