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