]> git.pld-linux.org Git - packages/perl-Class-ReturnValue.git/blob - perl-Class-ReturnValue.spec
- converted to UTF-8
[packages/perl-Class-ReturnValue.git] / perl-Class-ReturnValue.spec
1 #
2 # Conditional build:
3 %bcond_with     tests   # perform "make test"
4
5 %include        /usr/lib/rpm/macros.perl
6 %define         pdir    Class
7 %define         pnam    ReturnValue
8 Summary:        Class::ReturnValue - a return-value object that may be treated as a boolean, array or object
9 Summary(pl.UTF-8):   Class::ReturnValue - obiekt wartości zwracanej, który może być traktowany jak wartość logiczna, tablica lub obiekt
10 Name:           perl-Class-ReturnValue
11 Version:        0.53
12 Release:        1
13 # same as perl
14 License:        GPL v1+ or Artistic
15 Group:          Development/Languages/Perl
16 Source0:        http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
17 # Source0-md5:  6db549139d16eb042f0128ff5aefe2f0
18 URL:            http://search.cpan.org/dist/Class-ReturnValue/
19 BuildRequires:  perl-devel >= 1:5.8.0
20 BuildRequires:  rpm-perlprov >= 4.1-13
21 BuildArch:      noarch
22 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24 %description
25 Class::ReturnValue is a "clever" return value object that can allow
26 code calling your routine to expect: a boolean value (did it fail) or
27 a list (what are the return values).
28
29 %description -l pl.UTF-8
30 Class::ReturnValue jest ,,mądrym'' obiektem, który pozwala, aby kod
31 wywołujący Twoje funkcje oczekiwał: wartości boolowskiej (czy się
32 udało) lub listy (jakie wartości zwrócono).
33
34 %prep
35 %setup -q -n %{pdir}-%{pnam}-%{version}
36 #%{__perl} -pi -e 'BEGIN{undef $/};s/\{\s*package MY;.*$//s' Makefile.PL
37
38 %build
39 %{__perl} Makefile.PL \
40         INSTALLDIRS=vendor
41 %{__make}
42 # Warning: test script in this package IS broken (wrong name)
43 %{?with_tests:%{__make} test}
44
45 %install
46 rm -rf $RPM_BUILD_ROOT
47 %{__make} install \
48         DESTDIR=$RPM_BUILD_ROOT
49
50 %clean
51 rm -rf $RPM_BUILD_ROOT
52
53 %files
54 %defattr(644,root,root,755)
55 %doc Changes
56 %{perl_vendorlib}/%{pdir}/*.pm
57 %{_mandir}/man3/*
This page took 0.061175 seconds and 4 git commands to generate.