]> git.pld-linux.org Git - SPECS.git/blob - perl-POE-Filter-Ls.spec
SPECS updated Wed 28 Jul 14:48:01 CEST 2021
[SPECS.git] / perl-POE-Filter-Ls.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # do not perform "make test"
4
5 %define         pdir    POE
6 %define         pnam    Filter-Ls
7 Summary:        POE::Filter::Ls - translates common ls formats into a hashref
8 Summary(pl.UTF-8):      POE::Filter::Ls - tłumaczenie popularnych formatów ls na hashref
9 Name:           perl-POE-Filter-Ls
10 Version:        0.01
11 Release:        1
12 License:        unknown
13 Group:          Development/Languages/Perl
14 Source0:        http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
15 # Source0-md5:  08614fffae9133995ad3dc3317959190
16 URL:            http://search.cpan.org/dist/POE-Filter-Ls/
17 BuildRequires:  perl-devel >= 1:5.8.0
18 BuildRequires:  rpm-perlprov >= 4.1-13
19 %if %{with tests}
20 BuildRequires:  perl-POE
21 %endif
22 BuildArch:      noarch
23 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25 %description
26 POE::Filter::Ls translates common ls formats into a hashref.
27
28 %description -l pl.UTF-8
29 POE::Filter::Ls tłumaczy popularne formaty ls na hashref.
30
31 %prep
32 %setup -q -n %{pdir}-%{pnam}-%{version}
33
34 %build
35 %{__perl} Makefile.PL \
36         INSTALLDIRS=vendor
37 %{__make}
38
39 %{?with_tests:%{__make} test}
40
41 %install
42 rm -rf $RPM_BUILD_ROOT
43
44 %{__make} install \
45         DESTDIR=$RPM_BUILD_ROOT
46 install -d $RPM_BUILD_ROOT%{_examplesdir}
47 cp -r samples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
48
49 %clean
50 rm -rf $RPM_BUILD_ROOT
51
52 %files
53 %defattr(644,root,root,755)
54 %doc Changes
55 %{perl_vendorlib}/%{pdir}/*/*.pm
56 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}
57 %{_mandir}/man3/*
This page took 1.621799 seconds and 3 git commands to generate.