3 %bcond_without tests # do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
8 Summary: Python::Bytecode - Disassemble and investigate Python bytecode
9 Name: perl-Python-Bytecode
13 License: GPL v1+ or Artistic
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/Python/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: e357351a3bf32c54ac1aa8910b4c53f7
17 URL: http://search.cpan.org/dist/Python-Bytecode/
18 BuildRequires: perl-devel >= 1:5.8.0
19 BuildRequires: rpm-perlprov >= 4.1-13
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 Python::Bytecode accepts a string or filehandle contain Python
25 bytecode and puts it into a format you can manipulate.
28 %setup -q -n %{pdir}-%{pnam}-%{version}
31 %{__perl} Makefile.PL \
35 %{?with_tests:%{__make} test}
38 rm -rf $RPM_BUILD_ROOT
40 %{__make} pure_install \
41 DESTDIR=$RPM_BUILD_ROOT
44 rm -rf $RPM_BUILD_ROOT
47 %defattr(644,root,root,755)
49 %{perl_vendorlib}/Python/*.pm
50 %{perl_vendorlib}/Python/Bytecode