3 %bcond_without tests # do not perform "make test"
7 Summary: ExtUtils::CppGuess - guess C++ compiler and flags
8 Name: perl-ExtUtils-CppGuess
12 License: GPL v1+ or Artistic
13 Group: Development/Languages/Perl
14 Source0: http://www.cpan.org/modules/by-module/ExtUtils/%{pdir}-%{pnam}-%{version}.tar.gz
15 # Source0-md5: f8ada38ee4ad86a4f1e20d8525ce0c99
16 URL: http://search.cpan.org/dist/ExtUtils-CppGuess/
17 BuildRequires: perl-devel >= 1:5.8.0
18 BuildRequires: rpm-perlprov >= 4.1-13
20 BuildRequires: perl-Capture-Tiny
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 ExtUtils::CppGuess attempts to guess the system's C++ compiler
26 that is compatible with the C compiler that your perl was built with.
28 It can generate the necessary options to the Module::Build
29 constructor or to ExtUtils::MakeMaker's WriteMakefile
33 %setup -q -n %{pdir}-%{pnam}-%{version}
36 %{__perl} Makefile.PL \
40 OPTIMIZE="%{rpmcflags}"
42 %{?with_tests:%{__make} test}
45 rm -rf $RPM_BUILD_ROOT
47 %{__make} pure_install \
48 DESTDIR=$RPM_BUILD_ROOT
51 rm -rf $RPM_BUILD_ROOT
54 %defattr(644,root,root,755)
56 %{perl_vendorlib}/ExtUtils/CppGuess.pm