]> git.pld-linux.org Git - packages/perl-Object-Import.git/blob - perl-Object-Import.spec
- initial, version 1.004
[packages/perl-Object-Import.git] / perl-Object-Import.spec
1 #
2 # Conditional build:
3 %bcond_without  tests           # perform "make test"
4 #
5 %include        /usr/lib/rpm/macros.perl
6 %define pdir    Object
7 %define pnam    Import
8 Summary:        Object::Import - import methods of an object as functions to a package
9 Summary(pl.UTF-8):      Object::Import - importuje do pakietu metody obiektowe jako funkcje
10 Name:           perl-Object-Import
11 Version:        1.004
12 Release:        1
13 # same as perl
14 License:        GPL v1+ or Artistic
15 Group:          Development/Languages/Perl
16 Source0:        http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
17 # Source0-md5:  b2beba35458bd6eae6e4079ef662c8eb
18 URL:            http://search.cpan.org/dist/Object-Import/
19 BuildRequires:  perl-devel >= 1:5.8.0
20 BuildRequires:  rpm-perlprov >= 4.1-13
21 BuildArch:      noarch
22 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24 %description
25 This module lets you call methods of a certain object more easily by
26 exporting them as functions to a package. The exported functions are
27 not called as methods and do not receive an object argument, but
28 instead the object is fixed at the time you import them with this
29 module.
30
31 %description -l pl.UTF-8
32 Ten moduł pozwala w łatwiejszy sposób wywoływać metody
33 obiektowe przez wyeksportowanie ich do pakietu jako funkcji.
34 Eksportowane funkcje nie są wywoływane jako metody i nie jest im
35 przekazywana na liście argumentów referencja do obiektu. Zamiast
36 tego, obiekt, w kontekście którego się wykonują, jest ustalany
37 w czasie importowanie modułu.
38
39 %prep
40 %setup -q -n %{pdir}-%{pnam}-%{version}
41
42 %build
43 %{__perl} Makefile.PL \
44         INSTALLDIRS=vendor
45 %{__make}
46
47 %{?with_tests:%{__make} test}
48
49 %install
50 rm -rf $RPM_BUILD_ROOT
51
52 %{__make} install \
53         DESTDIR=$RPM_BUILD_ROOT
54
55 %clean
56 rm -rf $RPM_BUILD_ROOT
57
58 %files
59 %defattr(644,root,root,755)
60 %doc CHANGES README
61 %{perl_vendorlib}/Object/Import.pm
62 %{_mandir}/man?/*
This page took 0.097261 seconds and 3 git commands to generate.