]> git.pld-linux.org Git - packages/perl-Tie-STDERR.git/blame - perl-Tie-STDERR.spec
use generic url
[packages/perl-Tie-STDERR.git] / perl-Tie-STDERR.spec
CommitLineData
4d9d5c31 1#
2# Conditional build:
3%bcond_without tests # do not perform "make test"
6b32004c 4
4ca207eb 5%define pdir Tie
6%define pnam STDERR
6b32004c 7%include /usr/lib/rpm/macros.perl
fded2c2b 8Summary: Tie::STDERR - send output of your STDERR to a process or mail
384bcf8a 9Summary(pl.UTF-8): Tie::STDERR - wysyłanie standardowego wyjścia błędu do procesu lub pocztą
e41b317b 10Name: perl-Tie-STDERR
766e32f4 11Version: 0.122
12Release: 1
4d9d5c31 13# same as perl
14License: GPL v1+ or Artistic
e41b317b 15Group: Development/Languages/Perl
83ca6b8b 16Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
766e32f4 17# Source0-md5: 65bdd4f54c4e6a06cd7444e885c05f22
6b32004c 18URL: http://search.cpan.org/dist/Tie-STDERR/
d315ee73 19BuildRequires: perl-devel >= 1:5.8.0
4e18264f 20BuildRequires: rpm-perlprov >= 4.1-13
176dbf22 21BuildArch: noarch
8aa079c3 22BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
e41b317b 23
24%description
55ba5815 25Sends all output that would otherwise go to STDERR either by email to
26root or whoever is responsible, or to a file or a process, or calls
27your function at the end of the script. This way you can easily change
ba1324a7
JB
28the destination of your error messages from inside of your script. The
29mail will be sent or the system command or Perl function run only if
30there actually is some output detected - something like cron would do.
31
db646d7a
JR
32%description -l pl.UTF-8
33Ten moduł przesyła całe wyjście, jakie zwykle poszłoby na standardowe
34wyjście błędu (STDERR) pocztą do administratora albo do pliku lub
35procesu, albo wywołuje funkcję na końcu skryptu. Ten sposób pozwala
36łatwo zmienić przeznaczenie komunikatów błędów z wnętrza skryptu.
37Poczta może być wysłana poleceniem systemowym lub funkcją Perla
38uruchomioną tylko w przypadku, kiedy coś się pojawi na wyjściu -
ba1324a7 39podobnie, jak robi to cron.
e41b317b 40
41%prep
66957de9 42%setup -q -n %{pdir}-%{pnam}-%{version}
e41b317b 43
44%build
4e18264f 45%{__perl} Makefile.PL \
f02af952 46 INSTALLDIRS=vendor
efabef7e 47%{__make}
e41b317b 48
4d9d5c31 49%{?with_tests:%{__make} test}
50
e41b317b 51%install
52rm -rf $RPM_BUILD_ROOT
e41b317b 53
4d9d5c31 54%{__make} install \
55 DESTDIR=$RPM_BUILD_ROOT
e41b317b 56
e41b317b 57%clean
58rm -rf $RPM_BUILD_ROOT
59
60%files
61%defattr(644,root,root,755)
ba1324a7 62%doc Changes README
4e18264f 63%{perl_vendorlib}/Tie/STDERR.pm
e41b317b 64%{_mandir}/man3/*
This page took 0.091741 seconds and 4 git commands to generate.