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
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# 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
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -12,61 +12,94 @@
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# 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
|
||||
Version: 2.0
|
||||
Version: 2.0.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
|
||||
License: Artistic-1.0
|
||||
Group: Development/Libraries/Perl
|
||||
Url: http://cpan.org/modules/by-module/Net/
|
||||
Source: http://search.cpan.org/CPAN/authors/id/R/RE/REATMON/Net-Jabber-%version.tar.gz
|
||||
Patch0: Net-Jabber-%{version}-tests.diff
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: perl-Net-XMPP
|
||||
URL: https://metacpan.org/release/%{cpan_name}
|
||||
Source0: https://cpan.metacpan.org/authors/id/R/RE/REATMON/%{cpan_name}-%{cpan_version}.tar.gz
|
||||
Source1: cpanspec.yml
|
||||
Source100: README.md
|
||||
Patch0: Net-Jabber-2.0-tests.diff
|
||||
BuildArch: noarch
|
||||
BuildRequires: perl
|
||||
BuildRequires: perl-macros
|
||||
Requires: perl-Authen-SASL
|
||||
Requires: perl-Digest-SHA1
|
||||
Requires: perl-Net-XMPP
|
||||
Requires: perl-Unicode-String
|
||||
Requires: perl-XML-Stream
|
||||
BuildRequires: perl(Net::XMPP) >= 1
|
||||
Requires: perl(Net::XMPP) >= 1
|
||||
Provides: perl(Net::Jabber) = %{version}
|
||||
Provides: perl(Net::Jabber::Client) = %{version}
|
||||
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}
|
||||
|
||||
%description
|
||||
Net::Jabber is a convenient tool to use for any perl script that would
|
||||
like to utilize the Jabber Instant Messaging protocol. While not a
|
||||
client in and of itself, it provides all of the necessary back-end
|
||||
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
|
||||
Net::Jabber::xxxxxx packages.
|
||||
Net::Jabber is a convenient tool to use for any perl script that would
|
||||
like to utilize the Jabber Instant Messaging protocol. While not a
|
||||
client in and of itself, it provides all of the necessary back-end
|
||||
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
|
||||
Net::Jabber::xxxxxx packages.
|
||||
|
||||
There is are example scripts in the example directory that provide you
|
||||
with examples of very simple Jabber programs.
|
||||
|
||||
|
||||
|
||||
Authors:
|
||||
--------
|
||||
Ryan Eatmon <reatmon@ti.com>
|
||||
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
|
||||
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
|
||||
%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
|
||||
perl Makefile.PL
|
||||
make %{?_smp_mflags}
|
||||
make test || echo "obelisk.net has discontinued test account"
|
||||
perl Makefile.PL INSTALLDIRS=vendor
|
||||
%make_build
|
||||
|
||||
%check
|
||||
make test
|
||||
|
||||
%install
|
||||
%perl_make_install
|
||||
%perl_process_packlist
|
||||
chmod a-x examples/component_accept.pl examples/component_test.pl
|
||||
%perl_gen_filelist
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%doc README CHANGES LICENSE.LGPL examples
|
||||
%doc %{_mandir}/man?/*
|
||||
%{perl_vendorlib}/Net
|
||||
%{perl_vendorarch}/auto/Net
|
||||
%files -f %{name}.files
|
||||
%doc CHANGES examples README
|
||||
%license LICENSE.LGPL
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user