]>
Commit | Line | Data |
---|---|---|
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 | 8 | Summary: Tie::STDERR - send output of your STDERR to a process or mail |
384bcf8a | 9 | Summary(pl.UTF-8): Tie::STDERR - wysyłanie standardowego wyjścia błędu do procesu lub pocztą |
e41b317b | 10 | Name: perl-Tie-STDERR |
766e32f4 | 11 | Version: 0.122 |
12 | Release: 1 | |
4d9d5c31 | 13 | # same as perl |
14 | License: GPL v1+ or Artistic | |
e41b317b | 15 | Group: Development/Languages/Perl |
83ca6b8b | 16 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz |
766e32f4 | 17 | # Source0-md5: 65bdd4f54c4e6a06cd7444e885c05f22 |
6b32004c | 18 | URL: http://search.cpan.org/dist/Tie-STDERR/ |
d315ee73 | 19 | BuildRequires: perl-devel >= 1:5.8.0 |
4e18264f | 20 | BuildRequires: rpm-perlprov >= 4.1-13 |
176dbf22 | 21 | BuildArch: noarch |
8aa079c3 | 22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
e41b317b | 23 | |
24 | %description | |
55ba5815 | 25 | Sends all output that would otherwise go to STDERR either by email to |
26 | root or whoever is responsible, or to a file or a process, or calls | |
27 | your function at the end of the script. This way you can easily change | |
ba1324a7 JB |
28 | the destination of your error messages from inside of your script. The |
29 | mail will be sent or the system command or Perl function run only if | |
30 | there actually is some output detected - something like cron would do. | |
31 | ||
db646d7a JR |
32 | %description -l pl.UTF-8 |
33 | Ten moduł przesyła całe wyjście, jakie zwykle poszłoby na standardowe | |
34 | wyjście błędu (STDERR) pocztą do administratora albo do pliku lub | |
35 | procesu, 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. | |
37 | Poczta może być wysłana poleceniem systemowym lub funkcją Perla | |
38 | uruchomioną tylko w przypadku, kiedy coś się pojawi na wyjściu - | |
ba1324a7 | 39 | podobnie, 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 |
52 | rm -rf $RPM_BUILD_ROOT | |
e41b317b | 53 | |
4d9d5c31 | 54 | %{__make} install \ |
55 | DESTDIR=$RPM_BUILD_ROOT | |
e41b317b | 56 | |
e41b317b | 57 | %clean |
58 | rm -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/* |