]> git.pld-linux.org Git - packages/perl-Net-Jabber.git/blame_incremental - perl-Net-Jabber.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-Net-Jabber.git] / perl-Net-Jabber.spec
... / ...
CommitLineData
1#
2# Conditional build:
3%bcond_with tests # perform "make test" (uses network!)
4
5%define pdir Net
6%define pnam Jabber
7Summary: Net::Jabber Perl module - access to the Jabber protocol
8Summary(pl.UTF-8): Moduł Perla Net::Jabber - dostęp do protokołu Jabbera
9Name: perl-Net-Jabber
10Version: 2.0
11Release: 2
12License: LGPL
13Group: Development/Languages/Perl
14Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
15# Source0-md5: 1fd348fb9a1a6c5a167ae862ed89cd53
16URL: http://search.cpan.org/dist/Net-Jabber/
17BuildRequires: perl-Digest-SHA1 >= 1.02
18BuildRequires: perl-XML-Stream >= 1.17
19BuildRequires: perl-devel >= 1:5.8.0
20BuildRequires: rpm-perlprov >= 4.1-13
21BuildArch: noarch
22BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24%description
25Net::Jabber is a collection of Perl modules that provide a Perl
26Developer access to the Jabber protocol. Using OOP modules they
27provide a clean interface to writing anything from a full client to a
28simple protocol tester.
29
30%description -l pl.UTF-8
31Net::Jabber to zbiór modułów Perla dających programiście perlowemu
32dostęp do protokołu Jabbera. Zorientowane obiektowo moduły dają czysty
33interfejs do pisania wszystkiego od pełnego klienta do prostego
34testera protokołu.
35
36%prep
37%setup -q -n %{pdir}-%{pnam}-%{version}
38%{__perl} -pi -e 's/^(use 5.006_)0(01;)(.*)$/$1$2$3/' Jabber/X.pm
39
40%build
41echo -e "y\ny\ny\n" | perl Makefile.PL \
42 INSTALLDIRS=vendor
43%{__make}
44
45%{?with_tests:%{__make} test}
46
47%install
48rm -rf $RPM_BUILD_ROOT
49install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}
50
51%{__make} install \
52 UNINST=0 \
53 DESTDIR=$RPM_BUILD_ROOT
54
55%clean
56rm -rf $RPM_BUILD_ROOT
57
58%files
59%defattr(644,root,root,755)
60%doc README CHANGES
61%{perl_vendorlib}/Net/*
62%{_mandir}/man3/*
This page took 0.070919 seconds and 4 git commands to generate.