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