]> git.pld-linux.org Git - packages/perl-Class-InsideOut.git/blob - perl-Class-InsideOut.spec
6a58afb2df6e90b5ee8cfdafd3c24770b61656a2
[packages/perl-Class-InsideOut.git] / perl-Class-InsideOut.spec
1 #
2 # Conditional build:
3 %bcond_without  tests           # do not perform "make test"
4 #
5 %include        /usr/lib/rpm/macros.perl
6 %define pdir    Class
7 %define pnam    InsideOut
8 Summary:        Class::InsideOut - a safe, simple inside-out object construction kit
9 Summary(pl.UTF-8):      Class::InsideOut - bezpieczne, proste tworzenie obiektów inside-out
10 Name:           perl-Class-InsideOut
11 Version:        1.08
12 Release:        1
13 License:        Apache
14 Group:          Development/Languages/Perl
15 Source0:        http://www.cpan.org/modules/by-module/Class/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5:  74939b510a64a2a8e1f6fe207cbbaeb3
17 URL:            http://search.cpan.org/dist/Class-InsideOut/
18 BuildRequires:  perl-devel >= 1:5.8.0
19 BuildRequires:  rpm-perlprov >= 4.1-13
20 BuildArch:      noarch
21 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23 %description
24 This is a simple, safe and streamlined toolkit for building inside-out
25 objects. Unlike most other inside-out object building modules already
26 on CPAN, this module aims for minimalism and robustness.
27
28 %description -l pl
29 Ten pakiet zawiera narzędzia do prostego i bezpiecznego tworzenia
30 obiektów inside-out. W przeciwieństwie do innych modułów tworzących
31 obiekty inside-out, wcześniej występujących w archiwum CPAN, ten moduł
32 ma być minimalnym i mocnym narzędziem.
33
34 %prep
35 %setup -q -n %{pdir}-%{pnam}-%{version}
36
37 %build
38 %{__perl} Build.PL \
39         destdir=$RPM_BUILD_ROOT \
40         installdirs=vendor
41 ./Build
42
43 %{?with_tests:./Build test}
44
45 %install
46 rm -rf $RPM_BUILD_ROOT
47
48 ./Build install
49
50 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
51 cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
52
53 %clean
54 rm -rf $RPM_BUILD_ROOT
55
56 %files
57 %defattr(644,root,root,755)
58 %doc Changes INSTALL README
59 %{perl_vendorlib}/Class/*.pm
60 %{perl_vendorlib}/Class/InsideOut
61 # no pod in .pm, i like perldoc
62 %{perl_vendorlib}/Class/InsideOut.pod
63 %{_mandir}/man3/*
64 %{_examplesdir}/%{name}-%{version}
This page took 0.382973 seconds and 2 git commands to generate.