3 %bcond_without tests # do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
7 Summary: DJabberd - scalable, extensible Jabber/XMPP server
8 Summary(pl.UTF-8): DJabberd - skalowalny, rozszerzalny serwer Jabbera/XMPP
13 License: GPL v1+ or Artistic
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/DJabberd/%{pdir}-%{version}.tar.gz
16 # Source0-md5: ce449b6ef429eb65ec03be4c8d19b1aa
17 Source1: djabberd.conf
18 Source2: djabberd-log.conf
19 URL: http://search.cpan.org/dist/DJabberd/
20 BuildRequires: perl-devel >= 1:5.8.0
21 BuildRequires: rpm-perlprov >= 4.1-13
23 BuildRequires: perl-Danga-Socke) >= 1.51
24 BuildRequires: perl(Digest::HMAC_SHA1)
25 BuildRequires: perl-Log-Log4perl
26 BuildRequires: perl-Net-DNS >= 0.48
27 BuildRequires: perl-Net-SSLeay
28 BuildRequires: perl-XML-LibXML-SAX
29 BuildRequires: perl-XML-SAX
32 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34 # this is mentioned in example component
35 %define _noautoreq 'perl(DJabberd::Bot::Eliza)'
38 DJabberd was the answer to LiveJournal's Jabber (XMPP) server needs.
39 It's a Jabber server where almost everything defers to hooks to be
40 implemented by plugins. It does the core spec itself (including SSL,
41 StartTLS, server-to-server, etc), but it doesn't come with any way to
42 do authentication or storage or rosters, etc. You'll need to go pick
43 up a plugin to do those.
45 %description -l pl.UTF-8
46 DJabberd to odpowiedź na potrzeby odnośnie serwera Jabbera (XMPP) dla
47 serwisu LiveJournal. Jest to serwer Jabbera, w którym prawie wszystko
48 jest przekazywane do uchwytów implementowanych przez wtyczki. Sam
49 serwer wykonuje podstawowe zadania (wraz z SSL, StartTLS, komunikacją
50 serwer-serwer), ale nie zawiera niczego do uwierzytelniania,
51 przechowywania danych czy rosterów - do wszystkiego trzeba dodać
55 %setup -q -n %{pdir}-%{version}
58 %{__perl} Makefile.PL \
62 %{?with_tests:%{__make} test}
65 rm -rf $RPM_BUILD_ROOT
68 DESTDIR=$RPM_BUILD_ROOT
70 install -d $RPM_BUILD_ROOT%{_sysconfdir}/djabberd
71 install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/djabberd
72 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/djabberd/log.conf
75 rm -rf $RPM_BUILD_ROOT
78 %defattr(644,root,root,755)
80 %attr(755,root,root) %{_bindir}/djabberd
81 %{perl_vendorlib}/DJabberd.pm
82 %{perl_vendorlib}/DJabberd
83 %dir %{_sysconfdir}/djabberd
84 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/djabberd/djabberd.conf
85 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/djabberd/log.conf