]>
Commit | Line | Data |
---|---|---|
df010d1d | 1 | # |
2 | # Conditional build: | |
d8f62088 | 3 | %bcond_without tests # do not perform "make test" |
43f3dd24 | 4 | # |
13c7424f | 5 | %define pdir Scalar |
6 | %define pnam Properties | |
85177510 | 7 | Summary: Scalar::Properties - run-time properties on scalar variables |
44c60edd | 8 | Summary(pl.UTF-8): Scalar::Properties - właściwości skalarów w trakcie wykonywania |
3783047b | 9 | Name: perl-Scalar-Properties |
21aad2fe JB |
10 | Version: 1.100860 |
11 | Release: 1 | |
731d7758 | 12 | # same as perl |
13 | License: GPL v1+ or Artistic | |
a5ecb670 | 14 | Group: Development/Languages/Perl |
21a11b8a | 15 | Source0: http://www.cpan.org/modules/by-module/Scalar/%{pdir}-%{pnam}-%{version}.tar.gz |
21aad2fe | 16 | # Source0-md5: 6f144203205f0a60026b82f32e51c595 |
21a11b8a | 17 | URL: http://search.cpan.org/dist/Scalar-Properties/ |
21aad2fe | 18 | BuildRequires: perl-ExtUtils-MakeMaker >= 6.11 |
1564bc52 | 19 | BuildRequires: perl-devel >= 1:5.8.0 |
21aad2fe JB |
20 | %if %{with tests} |
21 | BuildRequires: perl-Test-Simple >= 0.88 | |
22 | %endif | |
87d4bd96 | 23 | BuildRequires: rpm-perlprov >= 4.1-13 |
a5ecb670 | 24 | BuildArch: noarch |
25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
26 | ||
27 | %description | |
3783047b | 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. | |
a5ecb670 | 31 | |
ef9b5e56 JR |
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, | |
a5ecb670 | 35 | jest obiektem; tak samo, jak rezultat tych manipulacji. |
36 | ||
37 | %prep | |
38 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
39 | ||
40 | %build | |
87d4bd96 | 41 | %{__perl} Makefile.PL \ |
9acf552d | 42 | INSTALLDIRS=vendor |
a5ecb670 | 43 | %{__make} |
43f3dd24 | 44 | |
df010d1d | 45 | %{?with_tests: %{__make} test} |
a5ecb670 | 46 | |
47 | %install | |
48 | rm -rf $RPM_BUILD_ROOT | |
df010d1d | 49 | %{__make} install \ |
50 | DESTDIR=$RPM_BUILD_ROOT | |
a5ecb670 | 51 | |
52 | %clean | |
53 | rm -rf $RPM_BUILD_ROOT | |
54 | ||
55 | %files | |
56 | %defattr(644,root,root,755) | |
21aad2fe | 57 | %doc Changes |
87d4bd96 | 58 | %dir %{perl_vendorlib}/Scalar |
21aad2fe JB |
59 | %{perl_vendorlib}/Scalar/Properties.pm |
60 | %{_mandir}/man3/Scalar::Properties.3pm* |