Compare commits
5 Commits
Author | SHA256 | Date | |
---|---|---|---|
ccd5ffdf1a | |||
438c99b918 | |||
75df8760f1 | |||
5a7ba55f13 | |||
efa163a6e4 |
12
README.md
Normal file
12
README.md
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
|
||||||
|
## Build Results
|
||||||
|
|
||||||
|
Current state of perl in openSUSE:Factory is
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
The current state of perl in the devel project build (devel:languages:perl)
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
|
35
cpanspec.yml
Normal file
35
cpanspec.yml
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
---
|
||||||
|
#description_paragraphs: 3
|
||||||
|
#description: |-
|
||||||
|
# override description from CPAN
|
||||||
|
#summary: override summary from CPAN
|
||||||
|
#no_testing: broken upstream
|
||||||
|
#sources:
|
||||||
|
# - source1
|
||||||
|
# - source2
|
||||||
|
patches:
|
||||||
|
Net-Jabber-2.0-tests.diff: -p0
|
||||||
|
# bar.patch:
|
||||||
|
# baz.patch: PATCH-FIX-OPENSUSE
|
||||||
|
#preamble: |-
|
||||||
|
# BuildRequires: gcc-c++
|
||||||
|
#post_prep: |-
|
||||||
|
# hunspell=`pkg-config --libs hunspell | sed -e 's,-l,,; s, *,,g'`
|
||||||
|
# sed -i -e "s,hunspell-X,$hunspell," t/00-prereq.t Makefile.PL
|
||||||
|
#post_build: |-
|
||||||
|
# rm unused.files
|
||||||
|
#post_install: |-
|
||||||
|
# sed on %{name}.files
|
||||||
|
#license: SUSE-NonFree
|
||||||
|
#skip_noarch: 1
|
||||||
|
#custom_build: |-
|
||||||
|
#./Build build flags=%{?_smp_mflags} --myflag
|
||||||
|
#custom_test: |-
|
||||||
|
#startserver && make test
|
||||||
|
#ignore_requires: Bizarre::Module
|
||||||
|
#skip_doc: regexp_to_skip_for_doc.*
|
||||||
|
#add_doc: files to add to docs
|
||||||
|
#misc: |-
|
||||||
|
#anything else to be added to spec file
|
||||||
|
#follows directly after %files section, so it can contain new blocks or also
|
||||||
|
#changes to %files section
|
@@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Feb 6 22:27:28 UTC 2025 - Tina Müller <tina.mueller@suse.com>
|
||||||
|
|
||||||
|
- Normalize CPAN version
|
||||||
|
See https://github.com/openSUSE/cpanspec/issues/47 for details
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Mar 4 13:45:21 UTC 2024 - pgajdos@suse.com
|
Mon Mar 4 13:45:21 UTC 2024 - pgajdos@suse.com
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package perl-Net-Jabber
|
# spec file for package perl-Net-Jabber
|
||||||
#
|
#
|
||||||
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
# Copyright (c) 2025 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -12,27 +12,51 @@
|
|||||||
# license that conforms to the Open Source Definition (Version 1.9)
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
# published by the Open Source Initiative.
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%define cpan_name Net-Jabber
|
||||||
Name: perl-Net-Jabber
|
Name: perl-Net-Jabber
|
||||||
Version: 2.0
|
Version: 2.0.0
|
||||||
Release: 0
|
Release: 0
|
||||||
|
# 2.0 -> normalize -> 2.0.0
|
||||||
|
%define cpan_version 2.0
|
||||||
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
||||||
Summary: Jabber Perl Library
|
Summary: Jabber Perl Library
|
||||||
License: Artistic-1.0
|
URL: https://metacpan.org/release/%{cpan_name}
|
||||||
Group: Development/Libraries/Perl
|
Source0: https://cpan.metacpan.org/authors/id/R/RE/REATMON/%{cpan_name}-%{cpan_version}.tar.gz
|
||||||
Url: http://cpan.org/modules/by-module/Net/
|
Source1: cpanspec.yml
|
||||||
Source: http://search.cpan.org/CPAN/authors/id/R/RE/REATMON/Net-Jabber-%version.tar.gz
|
Source100: README.md
|
||||||
Patch0: Net-Jabber-%{version}-tests.diff
|
Patch0: Net-Jabber-2.0-tests.diff
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildArch: noarch
|
||||||
BuildRequires: perl-Net-XMPP
|
BuildRequires: perl
|
||||||
BuildRequires: perl-macros
|
BuildRequires: perl-macros
|
||||||
Requires: perl-Authen-SASL
|
BuildRequires: perl(Net::XMPP) >= 1
|
||||||
Requires: perl-Digest-SHA1
|
Requires: perl(Net::XMPP) >= 1
|
||||||
Requires: perl-Net-XMPP
|
Provides: perl(Net::Jabber) = %{version}
|
||||||
Requires: perl-Unicode-String
|
Provides: perl(Net::Jabber::Client) = %{version}
|
||||||
Requires: perl-XML-Stream
|
Provides: perl(Net::Jabber::Component) = %{version}
|
||||||
|
Provides: perl(Net::Jabber::Data) = %{version}
|
||||||
|
Provides: perl(Net::Jabber::Debug) = %{version}
|
||||||
|
Provides: perl(Net::Jabber::Dialback) = %{version}
|
||||||
|
Provides: perl(Net::Jabber::Dialback::Result) = %{version}
|
||||||
|
Provides: perl(Net::Jabber::Dialback::Verify) = %{version}
|
||||||
|
Provides: perl(Net::Jabber::IQ) = %{version}
|
||||||
|
Provides: perl(Net::Jabber::JID) = %{version}
|
||||||
|
Provides: perl(Net::Jabber::Key) = %{version}
|
||||||
|
Provides: perl(Net::Jabber::Log) = %{version}
|
||||||
|
Provides: perl(Net::Jabber::Message) = %{version}
|
||||||
|
Provides: perl(Net::Jabber::Namespaces)
|
||||||
|
Provides: perl(Net::Jabber::Presence) = %{version}
|
||||||
|
Provides: perl(Net::Jabber::Protocol) = %{version}
|
||||||
|
Provides: perl(Net::Jabber::Server) = %{version}
|
||||||
|
Provides: perl(Net::Jabber::Stanza)
|
||||||
|
Provides: perl(Net::Jabber::XDB) = %{version}
|
||||||
|
Provides: perl(Test::Builder) = 0.17
|
||||||
|
Provides: perl(Test::More) = 0.47
|
||||||
|
Provides: perl(Test::Simple) = 0.47
|
||||||
|
%undefine __perllib_provides
|
||||||
%{perl_requires}
|
%{perl_requires}
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@@ -43,30 +67,39 @@ functions to make a CGI client or command-line perl client feasible and
|
|||||||
easy to use. Net::Jabber is a wrapper around the rest of the official
|
easy to use. Net::Jabber is a wrapper around the rest of the official
|
||||||
Net::Jabber::xxxxxx packages.
|
Net::Jabber::xxxxxx packages.
|
||||||
|
|
||||||
|
There is are example scripts in the example directory that provide you
|
||||||
|
with examples of very simple Jabber programs.
|
||||||
|
|
||||||
|
|
||||||
Authors:
|
NOTE: The parser that XML::Stream::Parser provides, as are most Perl
|
||||||
--------
|
parsers, is synchronous. If you are in the middle of parsing a packet
|
||||||
Ryan Eatmon <reatmon@ti.com>
|
and call a user defined callback, the Parser is blocked until your
|
||||||
|
callback finishes. This means you cannot be operating on a packet,
|
||||||
|
send out another packet and wait for a response to that packet. It
|
||||||
|
will never get to you. Threading might solve this, but as of the
|
||||||
|
writing of this, threading in Perl is not quite up to par yet. This
|
||||||
|
issue will be revisted in the future.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -p0 -n Net-Jabber-%{version}
|
%autosetup -n %{cpan_name}-%{cpan_version} -N
|
||||||
|
|
||||||
|
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -path "*/scripts/*" ! -name "configure" -print0 | xargs -0 chmod 644
|
||||||
|
%patch -P0 -p0
|
||||||
|
|
||||||
%build
|
%build
|
||||||
perl Makefile.PL
|
perl Makefile.PL INSTALLDIRS=vendor
|
||||||
make %{?_smp_mflags}
|
%make_build
|
||||||
make test || echo "obelisk.net has discontinued test account"
|
|
||||||
|
%check
|
||||||
|
make test
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%perl_make_install
|
%perl_make_install
|
||||||
%perl_process_packlist
|
%perl_process_packlist
|
||||||
chmod a-x examples/component_accept.pl examples/component_test.pl
|
%perl_gen_filelist
|
||||||
|
|
||||||
%files
|
%files -f %{name}.files
|
||||||
%defattr(-,root,root)
|
%doc CHANGES examples README
|
||||||
%doc README CHANGES LICENSE.LGPL examples
|
%license LICENSE.LGPL
|
||||||
%doc %{_mandir}/man?/*
|
|
||||||
%{perl_vendorlib}/Net
|
|
||||||
%{perl_vendorarch}/auto/Net
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Reference in New Issue
Block a user