]> git.pld-linux.org Git - packages/DJabberd.git/blame - DJabberd.spec
- df fix
[packages/DJabberd.git] / DJabberd.spec
CommitLineData
82afe06a
MP
1#
2# Conditional build:
3%bcond_without tests # do not perform "make test"
4#
5%include /usr/lib/rpm/macros.perl
6%define pdir DJabberd
7f8102b0
JB
7Summary: DJabberd - scalable, extensible Jabber/XMPP server
8Summary(pl.UTF-8): DJabberd - skalowalny, rozszerzalny serwer Jabbera/XMPP
82afe06a
MP
9Name: DJabberd
10Version: 0.83
11Release: 0.4
12# same as perl
13License: GPL v1+ or Artistic
14Group: Development/Languages/Perl
7f8102b0 15Source0: http://www.cpan.org/modules/by-module/DJabberd/%{pdir}-%{version}.tar.gz
e9ee97e9 16# Source0-md5: ce449b6ef429eb65ec03be4c8d19b1aa
82afe06a
MP
17Source1: djabberd.conf
18Source2: djabberd-log.conf
7f8102b0 19URL: http://search.cpan.org/dist/DJabberd/
82afe06a
MP
20BuildRequires: perl-devel >= 1:5.8.0
21BuildRequires: rpm-perlprov >= 4.1-13
22%if %{with tests}
7f8102b0 23BuildRequires: perl-Danga-Socke) >= 1.51
82afe06a 24BuildRequires: perl(Digest::HMAC_SHA1)
7f8102b0
JB
25BuildRequires: perl-Log-Log4perl
26BuildRequires: perl-Net-DNS >= 0.48
27BuildRequires: perl-Net-SSLeay
28BuildRequires: perl-XML-LibXML-SAX
29BuildRequires: perl-XML-SAX
82afe06a
MP
30%endif
31BuildArch: noarch
32BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33
34# this is mentioned in example component
35%define _noautoreq 'perl(DJabberd::Bot::Eliza)'
36
37%description
7f8102b0
JB
38DJabberd was the answer to LiveJournal's Jabber (XMPP) server needs.
39It's a Jabber server where almost everything defers to hooks to be
40implemented by plugins. It does the core spec itself (including SSL,
41StartTLS, server-to-server, etc), but it doesn't come with any way to
42do authentication or storage or rosters, etc. You'll need to go pick
43up a plugin to do those.
44
45%description -l pl.UTF-8
46DJabberd to odpowiedź na potrzeby odnośnie serwera Jabbera (XMPP) dla
47serwisu LiveJournal. Jest to serwer Jabbera, w którym prawie wszystko
48jest przekazywane do uchwytów implementowanych przez wtyczki. Sam
49serwer wykonuje podstawowe zadania (wraz z SSL, StartTLS, komunikacją
50serwer-serwer), ale nie zawiera niczego do uwierzytelniania,
51przechowywania danych czy rosterów - do wszystkiego trzeba dodać
52wtyczkę.
82afe06a
MP
53
54%prep
55%setup -q -n %{pdir}-%{version}
56
57%build
58%{__perl} Makefile.PL \
59 INSTALLDIRS=vendor
60%{__make}
61
62%{?with_tests:%{__make} test}
63
64%install
65rm -rf $RPM_BUILD_ROOT
66
67%{__make} install \
68 DESTDIR=$RPM_BUILD_ROOT
69
70install -d $RPM_BUILD_ROOT%{_sysconfdir}/djabberd
7f8102b0 71install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/djabberd
82afe06a
MP
72install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/djabberd/log.conf
73
74%clean
75rm -rf $RPM_BUILD_ROOT
76
77%files
78%defattr(644,root,root,755)
79%doc CHANGES
82afe06a 80%attr(755,root,root) %{_bindir}/djabberd
7f8102b0
JB
81%{perl_vendorlib}/DJabberd.pm
82%{perl_vendorlib}/DJabberd
82afe06a 83%dir %{_sysconfdir}/djabberd
7f8102b0
JB
84%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/djabberd/djabberd.conf
85%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/djabberd/log.conf
86%{_mandir}/man3/*
This page took 0.088267 seconds and 4 git commands to generate.