]> git.pld-linux.org Git - packages/perl-Devel-Autoflush.git/blob - perl-Devel-Autoflush.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-Devel-Autoflush.git] / perl-Devel-Autoflush.spec
1 #
2 # Conditional build:
3 %bcond_without  tests           # do not perform "make test"
4 #
5 %define pdir    Devel
6 %define pnam    Autoflush
7 Summary:        Devel::Autoflush - Set autoflush from the command line
8 #Summary(pl.UTF-8):
9 Name:           perl-Devel-Autoflush
10 Version:        0.05
11 Release:        1
12 License:        apache
13 Group:          Development/Languages/Perl
14 Source0:        http://search.cpan.org/CPAN/authors/id/D/DA/DAGOLDEN/%{pdir}-%{pnam}-%{version}.tar.gz
15 # Source0-md5:  071061e12ce7ca4f3d62a2e329db0503
16 URL:            http://search.cpan.org/dist/Devel-Autoflush/
17 BuildRequires:  perl-devel >= 1:5.8.0
18 BuildRequires:  rpm-perlprov >= 4.1-13
19 %if %{with tests}
20 BuildRequires:  perl(IO::CaptureOutput) >= 1.08
21 %endif
22 BuildArch:      noarch
23 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25 %description
26 This module is a hack to set autoflush for STDOUT and STDERR from the
27 command line or from PERL5OPT for code that needs it but doesn't have
28 it.
29
30 # %description -l pl.UTF-8
31 # TODO
32
33 %prep
34 %setup -q -n %{pdir}-%{pnam}-%{version}
35
36 %build
37 %{__perl} Build.PL \
38         destdir=$RPM_BUILD_ROOT \
39         installdirs=vendor
40 ./Build
41
42 %{?with_tests:./Build test}
43
44 %install
45 rm -rf $RPM_BUILD_ROOT
46
47 ./Build install
48
49 %clean
50 rm -rf $RPM_BUILD_ROOT
51
52 %files
53 %defattr(644,root,root,755)
54 %doc Changes INSTALL README
55 %{perl_vendorlib}/Devel/*.pm
56 %{_mandir}/man3/*
This page took 0.105979 seconds and 4 git commands to generate.