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