]> git.pld-linux.org Git - packages/perl-Scalar-Properties.git/blob - perl-Scalar-Properties.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-Scalar-Properties.git] / perl-Scalar-Properties.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # do not perform "make test"
4 #
5 %define         pdir    Scalar
6 %define         pnam    Properties
7 Summary:        Scalar::Properties - run-time properties on scalar variables
8 Summary(pl.UTF-8):      Scalar::Properties - właściwości skalarów w trakcie wykonywania
9 Name:           perl-Scalar-Properties
10 Version:        1.100860
11 Release:        1
12 # same as perl
13 License:        GPL v1+ or Artistic
14 Group:          Development/Languages/Perl
15 Source0:        http://www.cpan.org/modules/by-module/Scalar/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5:  6f144203205f0a60026b82f32e51c595
17 URL:            http://search.cpan.org/dist/Scalar-Properties/
18 BuildRequires:  perl-ExtUtils-MakeMaker >= 6.11
19 BuildRequires:  perl-devel >= 1:5.8.0
20 %if %{with tests}
21 BuildRequires:  perl-Test-Simple >= 0.88
22 %endif
23 BuildRequires:  rpm-perlprov >= 4.1-13
24 BuildArch:      noarch
25 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27 %description
28 Scalar::Properties attempts to make Perl more object-oriented by
29 taking an idea from Ruby: Everything you manipulate is an object, and
30 the results of those manipulations are objects themselves.
31
32 %description -l pl.UTF-8
33 Scalar::Properties próbuje dodać do Perla nieco więcej obiektowości
34 poprzez zaimplementowanie pomysłu z Ruby: wszystko, na czym operujesz,
35 jest obiektem; tak samo, jak rezultat tych manipulacji.
36
37 %prep
38 %setup -q -n %{pdir}-%{pnam}-%{version}
39
40 %build
41 %{__perl} Makefile.PL \
42         INSTALLDIRS=vendor
43 %{__make}
44
45 %{?with_tests: %{__make} test}
46
47 %install
48 rm -rf $RPM_BUILD_ROOT
49 %{__make} install \
50         DESTDIR=$RPM_BUILD_ROOT
51
52 %clean
53 rm -rf $RPM_BUILD_ROOT
54
55 %files
56 %defattr(644,root,root,755)
57 %doc Changes
58 %dir %{perl_vendorlib}/Scalar
59 %{perl_vendorlib}/Scalar/Properties.pm
60 %{_mandir}/man3/Scalar::Properties.3pm*
This page took 0.078782 seconds and 4 git commands to generate.