3 %bcond_with tests # perform "make test"
5 %include /usr/lib/rpm/macros.perl
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
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
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
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).
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).
35 %setup -q -n %{pdir}-%{pnam}-%{version}
36 #%{__perl} -pi -e 'BEGIN{undef $/};s/\{\s*package MY;.*$//s' Makefile.PL
39 %{__perl} Makefile.PL \
42 # Warning: test script in this package IS broken (wrong name)
43 %{?with_tests:%{__make} test}
46 rm -rf $RPM_BUILD_ROOT
48 DESTDIR=$RPM_BUILD_ROOT
51 rm -rf $RPM_BUILD_ROOT
54 %defattr(644,root,root,755)
56 %{perl_vendorlib}/%{pdir}/*.pm