2011-04-14 07:42:22 +00:00
|
|
|
#
|
2011-08-25 16:30:25 +00:00
|
|
|
# spec file for package perl-AnyEvent-Twitter-Stream
|
2011-04-14 07:42:22 +00:00
|
|
|
#
|
2024-07-15 20:26:56 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2011-04-14 07:42:22 +00:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2024-07-15 20:26:56 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2011-04-14 07:42:22 +00:00
|
|
|
#
|
|
|
|
|
2015-04-13 16:15:41 +00:00
|
|
|
|
2024-07-15 20:26:56 +00:00
|
|
|
%define cpan_name AnyEvent-Twitter-Stream
|
2011-04-14 07:42:22 +00:00
|
|
|
Name: perl-AnyEvent-Twitter-Stream
|
2024-07-15 20:26:56 +00:00
|
|
|
Version: 0.280.0
|
2011-12-02 08:00:39 +00:00
|
|
|
Release: 0
|
2024-07-15 20:26:56 +00:00
|
|
|
# 0.28 -> normalize -> 0.280.0
|
|
|
|
%define cpan_version 0.28
|
|
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
2011-04-14 07:42:22 +00:00
|
|
|
Summary: Receive Twitter streaming API in an event loop
|
2024-07-15 20:26:56 +00:00
|
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
|
|
|
Source0: https://cpan.metacpan.org/authors/id/M/MI/MIYAGAWA/%{cpan_name}-%{cpan_version}.tar.gz
|
2016-08-01 14:50:32 +00:00
|
|
|
Source1: cpanspec.yml
|
2025-08-12 18:11:40 +02:00
|
|
|
Source100: README.md
|
2011-04-14 07:42:22 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: perl
|
2015-04-13 16:15:41 +00:00
|
|
|
BuildRequires: perl-macros
|
2011-04-14 07:42:22 +00:00
|
|
|
BuildRequires: perl(AnyEvent)
|
2011-06-14 09:43:58 +00:00
|
|
|
BuildRequires: perl(AnyEvent::HTTP) >= 2.0
|
2011-04-14 07:42:22 +00:00
|
|
|
BuildRequires: perl(JSON) >= 2.0
|
2024-07-15 20:26:56 +00:00
|
|
|
BuildRequires: perl(Module::Build)
|
2016-08-01 14:50:32 +00:00
|
|
|
BuildRequires: perl(Module::Build::Tiny) >= 0.034
|
2015-04-13 16:15:41 +00:00
|
|
|
BuildRequires: perl(Test::Requires)
|
|
|
|
BuildRequires: perl(Test::TCP)
|
2011-04-14 07:42:22 +00:00
|
|
|
BuildRequires: perl(URI)
|
|
|
|
Requires: perl(AnyEvent)
|
2011-06-14 09:43:58 +00:00
|
|
|
Requires: perl(AnyEvent::HTTP) >= 2.0
|
2011-04-14 07:42:22 +00:00
|
|
|
Requires: perl(JSON) >= 2.0
|
|
|
|
Requires: perl(URI)
|
2024-07-15 20:26:56 +00:00
|
|
|
Provides: perl(AnyEvent::Twitter::Stream) = %{version}
|
|
|
|
%undefine __perllib_provides
|
2011-04-14 07:42:22 +00:00
|
|
|
%{perl_requires}
|
|
|
|
|
|
|
|
%description
|
|
|
|
AnyEvent::Twitter::Stream is an AnyEvent user to receive Twitter streaming
|
2016-08-01 14:50:32 +00:00
|
|
|
API, available at http://dev.twitter.com/pages/streaming_api and
|
|
|
|
http://dev.twitter.com/pages/user_streams.
|
2011-04-14 07:42:22 +00:00
|
|
|
|
2016-08-01 14:50:32 +00:00
|
|
|
See eg/track.pl for more client code example.
|
2011-04-14 07:42:22 +00:00
|
|
|
|
|
|
|
%prep
|
2024-07-15 20:26:56 +00:00
|
|
|
%autosetup -n %{cpan_name}-%{cpan_version}
|
2011-04-14 07:42:22 +00:00
|
|
|
|
|
|
|
%build
|
2024-07-15 20:26:56 +00:00
|
|
|
perl Build.PL --installdirs=vendor
|
2015-04-13 16:15:41 +00:00
|
|
|
./Build build --flags=%{?_smp_mflags}
|
2011-04-14 07:42:22 +00:00
|
|
|
|
|
|
|
%check
|
2015-04-13 16:15:41 +00:00
|
|
|
./Build test
|
2011-04-14 07:42:22 +00:00
|
|
|
|
|
|
|
%install
|
2015-04-13 16:15:41 +00:00
|
|
|
./Build install --destdir=%{buildroot} --create_packlist=0
|
2011-04-14 07:42:22 +00:00
|
|
|
%perl_gen_filelist
|
|
|
|
|
|
|
|
%files -f %{name}.files
|
2024-07-15 20:26:56 +00:00
|
|
|
%doc Changes README
|
|
|
|
%license LICENSE
|
2011-04-14 07:42:22 +00:00
|
|
|
|
|
|
|
%changelog
|