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): Class::ReturnValue - obiekt warto¶ci zwracanej, któru 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: d4836df29f817d839e2c87147d5efc9e
18 BuildRequires: perl-devel >= 5.8.0
19 BuildRequires: rpm-perlprov >= 4.1-13
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 Class::ReturnValue is a "clever" return value object that can allow code
25 calling your routine to expect: a boolean value (did it fail) or a list
26 (what are the return values).
29 Class::ReturnValue jest ,,m±drym'' obiektem, który pozwala, aby kod
30 wywo³uj±cy Twoje funkcje oczekiwa³: warto¶ci boolowskiej (czy siê uda³o)
31 lub listy (jakie warto¶ci zwrócono).
34 %setup -q -n %{pdir}-%{pnam}-%{version}
35 #%{__perl} -pi -e 'BEGIN{undef $/};s/\{\s*package MY;.*$//s' Makefile.PL
38 %{__perl} Makefile.PL \
41 # Warning: test script in this package IS broken (wrong name)
42 %{?with_tests:%{__make} test}
45 rm -rf $RPM_BUILD_ROOT
47 DESTDIR=$RPM_BUILD_ROOT
50 rm -rf $RPM_BUILD_ROOT
53 %defattr(644,root,root,755)
55 %{perl_vendorlib}/%{pdir}/*.pm