]> git.pld-linux.org Git - packages/perl-Return-Value.git/blobdiff - perl-Return-Value.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-Return-Value.git] / perl-Return-Value.spec
index 994efd39dfbd3017ce5f0fa862fb255880f55a4d..2016f327d07e1e9c6cf1c367d682185ed8ba7b97 100644 (file)
@@ -2,19 +2,19 @@
 # Conditional build:
 %bcond_without tests           # do not perform "make test"
 #
-%include       /usr/lib/rpm/macros.perl
 %define        pdir    Return
 %define        pnam    Value
 Summary:       Return::Value - Polymorphic Return Values
-Summary(pl):   Return::Value - Polimorficzne zwracanie warto¶ci
+Summary(pl.UTF-8):     Return::Value - Polimorficzne zwracanie wartości
 Name:          perl-Return-Value
-Version:       1.28
+Version:       1.666001
 Release:       1
 # same as perl
 License:       GPL v1+ or Artistic
 Group:         Development/Languages/Perl
-Source0:       http://search.cpan.org/CPAN/authors/id/R/RJ/RJBS/%{pdir}-%{pnam}-%{version}.tar.gz
-# Source0-md5: b5d4b0afa82ac6b74b756da56e753ad2
+Source0:       http://www.cpan.org/modules/by-authors/id/R/RJ/RJBS/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5: 03128d525392c88e458aa2cd14eb107a
+URL:           http://search.cpan.org/dist/Return-Value/
 BuildRequires: perl-devel >= 1:5.8.0
 BuildRequires: rpm-perlprov >= 4.1-13
 %if %{with tests}
@@ -24,24 +24,39 @@ BuildArch:  noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
-Polymorphic return values are really useful. Often, we just want to know
-if something worked or not. Other times, we'd like to know what the
-error text was. Still others, we may want to know what the error code
-was, and what the error properties were. We don't want to handle objects
-or data structures for every single return value, but we do want to
-check error conditions in our code because that's what good programmers
-do.
+Polymorphic return values are really useful. Often, we just want to
+know if something worked or not. Other times, we'd like to know what
+the error text was. Still others, we may want to know what the error
+code was, and what the error properties were. We don't want to handle
+objects or data structures for every single return value, but we do
+want to check error conditions in our code because that's what good
+programmers do.
 
 When functions are successful they may return true, or perhaps some
-useful data. In the quest to provide consistent return values, this gets
-confusing between complex, informational errors and successful return
-values.
+useful data. In the quest to provide consistent return values, this
+gets confusing between complex, informational errors and successful
+return values.
 
 This module provides these features with a simple API that should get
-you what you're looking for in each contex a return value is used in.
+you what you're looking for in each context a return value is used in.
 
-# %description -l pl
-# TODO
+%description -l pl.UTF-8
+Polimorficzne wartości zwracane bywają naprawdę przydatne. Często
+chcemy tylko wiedzieć, czy coś zadziałało, czy nie. Innym razem
+chcielibyśmy poznać tekstową postać błędu. W jeszcze innym przypadku
+możemy chcieć poznać kod błędu i jego właściwości. Nie chcemy
+obsługiwać obiektów czy struktur danych dla każdej zwracanej wartości,
+ale chcemy sprawdzić w naszym kodzie wystąpienie błędu, ponieważ tak
+robią dobrzy programiści.
+
+W przypadku sukcesu funkcje mogą zwrócić wartość true albo jakieś
+przydatne dane. Przy poszukiwaniu sposobu dostarczenia spójnych
+wartości błędów, staje się to coraz bardziej zagmatwane pomiędzy
+złożonymi, informacyjnymi błędami a poprawnymi zwracanymi wartościami.
+
+Ten moduł dostarcza te możliwości z prostym API, które powinno
+zapewnić to, czego szukamy w każdym kontekście wykorzystania zwracanej
+wartości.
 
 %prep
 %setup -q -n %{pdir}-%{pnam}-%{version}
@@ -65,5 +80,6 @@ rm -rf $RPM_BUILD_ROOT
 %files
 %defattr(644,root,root,755)
 %doc Changes README
+%dir %{perl_vendorlib}/Return
 %{perl_vendorlib}/Return/Value.pm
 %{_mandir}/man3/*
This page took 0.25322 seconds and 4 git commands to generate.