3 %bcond_without tests # do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
8 Summary: enum - C style enumerated types and bitmask flags in Perl
9 Summary(pl.UTF-8): enum - typy wyliczeniowe w stylu C i znaczniki bitowe dla Perla
14 License: GPL v1+ or Artistic
15 Group: Development/Languages/Perl
16 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pnam}-%{version}.tar.gz
17 # Source0-md5: aace7ee8648e5d20c0e81f5a51cb6604
18 BuildRequires: rpm-perlprov >= 4.1-13
19 BuildRequires: perl-devel >= 1:5.8.0
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 enum defines a set of symbolic constants with ordered numeric values
27 %description -l pl.UTF-8
28 enum definiuje zestaw stałych symbolicznych o uporządkowanych
29 wartościach numerycznych, podobnie do typów enum w C.
32 %setup -q -n %{pnam}-%{version}
35 %{__perl} Makefile.PL \
39 %{?with_tests:%{__make} test}
42 rm -rf $RPM_BUILD_ROOT
45 DESTDIR=$RPM_BUILD_ROOT
48 rm -rf $RPM_BUILD_ROOT
51 %defattr(644,root,root,755)
53 %{perl_vendorlib}/enum.pm