]> git.pld-linux.org Git - SPECS.git/blob - perl-Callback.spec
SPECS updated Sat 31 Jul 20:26:02 CEST 2021
[SPECS.git] / perl-Callback.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # do not perform "make test"
4 #
5 %define         pdir    Callback
6 Summary:        Callback Perl module - object interface for function callbacks
7 Summary(pl.UTF-8):      Moduł Perla Callback - interfejs obiektowy odwołań do funkcji
8 Name:           perl-Callback
9 Version:        1.07
10 Release:        1
11 License:        free to use
12 Group:          Development/Languages/Perl
13 Source0:        http://www.cpan.org/modules/by-module/Callback/Callback-%{version}.tar.gz
14 # Source0-md5:  270e8cde126409c45294886d34b17408
15 URL:            http://search.cpan.org/dist/Callback/
16 BuildRequires:  perl-devel >= 1:5.8.0
17 BuildRequires:  rpm-perlprov >= 4.1-13
18 BuildArch:      noarch
19 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21 %description
22 Callback Perl module provides a standard interface to register
23 callbacks. Those callbacks can be either purely functional (i.e. a
24 function call with arguments) or object-oriented (a method call on an
25 object).
26
27 %description -l pl.UTF-8
28 Moduł Perla Callback udostępnia prosty interfejs do rejestrowania
29 odwołań. Odwołania te mogą być czysto funkcyjne (tzn. funkcja wywołana
30 z argumentami) lub obiektowe (wywołanie metody na obiekcie).
31
32 %prep
33 %setup -q -n Callback-%{version}
34
35 %build
36 %{__perl} Makefile.PL \
37         INSTALLDIRS=vendor
38 %{__make}
39
40 %{?with_tests:%{__make} test}
41
42 %install
43 rm -rf $RPM_BUILD_ROOT
44
45 %{__make} install \
46         DESTDIR=$RPM_BUILD_ROOT
47
48 rm -f $RPM_BUILD_ROOT%{perl_vendorlib}/Callback.pod
49
50 %clean
51 rm -rf $RPM_BUILD_ROOT
52
53 %files
54 %defattr(644,root,root,755)
55 %doc CHANGELOG README
56 %{perl_vendorlib}/Callback.pm
57 %{_mandir}/man3/*
This page took 0.212602 seconds and 3 git commands to generate.