]> git.pld-linux.org Git - SPECS.git/blob - perl-Class-Gomor.spec
SPECS updated Mon 29 Apr 22:05:02 CEST 2024
[SPECS.git] / perl-Class-Gomor.spec
1 #
2 # Conditional build:
3 %bcond_without  tests           # do not perform "make test"
4 #
5 %define pdir    Class
6 %define pnam    Gomor
7 Summary:        Class::Gomor - another class and object builder
8 Summary(pl.UTF-8):      Class:Gomor - kolejny builder klas i obiektów
9 Name:           perl-Class-Gomor
10 Version:        1.03
11 Release:        1
12 License:        artistic
13 Group:          Development/Languages/Perl
14 Source0:        http://www.cpan.org/modules/by-module/Class/%{pdir}-%{pnam}-%{version}.tar.gz
15 # Source0-md5:  701c0d407574cd5bb1c52537a63ac276
16 URL:            http://search.cpan.org/dist/Class-Gomor/
17 BuildRequires:  perl-devel >= 1:5.8.0
18 BuildRequires:  rpm-perlprov >= 4.1-13
19 %if %{with tests}
20 %endif
21 BuildArch:      noarch
22 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24 %description
25 This module is yet another class builder. This one adds parameter
26 checking in new constructor, that is to check for attributes
27 existence, and definedness.
28
29 %description -l pl.UTF-8
30 Ten moduł jest jeszcze kolejnym builderem klas.
31
32 %prep
33 %setup -q -n %{pdir}-%{pnam}-%{version}
34
35 %build
36 %{__perl} Makefile.PL \
37         INSTALLDIRS=vendor
38 %{__make}
39
40 %{?with_tests:%{__make} test}
41
42 %install
43 rm -rf $RPM_BUILD_ROOT
44
45 %{__make} install \
46         DESTDIR=$RPM_BUILD_ROOT
47
48 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
49 cp -a examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
50
51 %clean
52 rm -rf $RPM_BUILD_ROOT
53
54 %files
55 %defattr(644,root,root,755)
56 %doc Changes README
57 %{perl_vendorlib}/Class/*.pm
58 %{perl_vendorlib}/Class/Gomor
59 %{_mandir}/man3/*
60 %{_examplesdir}/%{name}-%{version}
This page took 1.511579 seconds and 3 git commands to generate.