]>
Commit | Line | Data |
---|---|---|
bbd24d88 | 1 | # |
2 | # Conditional build: | |
698d577d | 3 | %bcond_with tests # perform "make test" |
4 | ||
5919ef05 | 5 | %include /usr/lib/rpm/macros.perl |
9f3529ca | 6 | %define pdir Class |
7 | %define pnam ReturnValue | |
01c62e3d | 8 | Summary: Class::ReturnValue - a return-value object that may be treated as a boolean, array or object |
6239b3de | 9 | Summary(pl.UTF-8): Class::ReturnValue - obiekt wartości zwracanej, który może być traktowany jak wartość logiczna, tablica lub obiekt |
bbd24d88 | 10 | Name: perl-Class-ReturnValue |
d6877570 | 11 | Version: 0.55 |
698d577d | 12 | Release: 1 |
01c62e3d | 13 | # same as perl |
14 | License: GPL v1+ or Artistic | |
5919ef05 | 15 | Group: Development/Languages/Perl |
c5c80e10 | 16 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz |
d6877570 | 17 | # Source0-md5: 047fbbcfd90d5c399a1feba55781329e |
4508481a | 18 | URL: http://search.cpan.org/dist/Class-ReturnValue/ |
42bbc4f8 | 19 | BuildRequires: perl-devel >= 1:5.8.0 |
6bbf22d7 | 20 | BuildRequires: rpm-perlprov >= 4.1-13 |
5919ef05 | 21 | BuildArch: noarch |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
23 | ||
24 | %description | |
4508481a ER |
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). | |
5919ef05 | 28 | |
62691bb5 JR |
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). | |
5919ef05 | 33 | |
34 | %prep | |
35 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
698d577d | 36 | #%{__perl} -pi -e 'BEGIN{undef $/};s/\{\s*package MY;.*$//s' Makefile.PL |
5919ef05 | 37 | |
38 | %build | |
6bbf22d7 | 39 | %{__perl} Makefile.PL \ |
b86dc2cd | 40 | INSTALLDIRS=vendor |
5919ef05 | 41 | %{__make} |
bbd24d88 | 42 | # Warning: test script in this package IS broken (wrong name) |
698d577d | 43 | %{?with_tests:%{__make} test} |
5919ef05 | 44 | |
45 | %install | |
46 | rm -rf $RPM_BUILD_ROOT | |
698d577d | 47 | %{__make} install \ |
48 | DESTDIR=$RPM_BUILD_ROOT | |
5919ef05 | 49 | |
50 | %clean | |
51 | rm -rf $RPM_BUILD_ROOT | |
52 | ||
53 | %files | |
54 | %defattr(644,root,root,755) | |
55 | %doc Changes | |
6bbf22d7 | 56 | %{perl_vendorlib}/%{pdir}/*.pm |
5919ef05 | 57 | %{_mandir}/man3/* |