[packages/perl-ExtUtils-CppGuess] - initial
arekm
arekm at pld-linux.org
Tue Jun 9 20:39:33 CEST 2015
commit 4faa25964356578b345656ac8eb6dfbd1013e6da
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Tue Jun 9 20:39:19 2015 +0200
- initial
perl-ExtUtils-CppGuess.spec | 58 +++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 58 insertions(+)
---
diff --git a/perl-ExtUtils-CppGuess.spec b/perl-ExtUtils-CppGuess.spec
new file mode 100644
index 0000000..c705fe7
--- /dev/null
+++ b/perl-ExtUtils-CppGuess.spec
@@ -0,0 +1,58 @@
+#
+# Conditional build:
+%bcond_without tests # do not perform "make test"
+#
+%define pdir ExtUtils
+%define pnam CppGuess
+%include /usr/lib/rpm/macros.perl
+Summary: ExtUtils::CppGuess - guess C++ compiler and flags
+Name: perl-ExtUtils-CppGuess
+Version: 0.09
+Release: 1
+# same as perl
+License: GPL v1+ or Artistic
+Group: Development/Languages/Perl
+Source0: http://www.cpan.org/modules/by-module/ExtUtils/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5: f8ada38ee4ad86a4f1e20d8525ce0c99
+URL: http://search.cpan.org/dist/ExtUtils-CppGuess/
+BuildRequires: perl-devel >= 1:5.8.0
+BuildRequires: rpm-perlprov >= 4.1-13
+%if %{with tests}
+BuildRequires: perl-Capture-Tiny
+%endif
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+ExtUtils::CppGuess attempts to guess the system's C++ compiler
+that is compatible with the C compiler that your perl was built with.
+
+It can generate the necessary options to the Module::Build
+constructor or to ExtUtils::MakeMaker's WriteMakefile
+function.
+
+%prep
+%setup -q -n %{pdir}-%{pnam}-%{version}
+
+%build
+%{__perl} Makefile.PL \
+ INSTALLDIRS=vendor
+%{__make} \
+ CC="%{__cc}" \
+ OPTIMIZE="%{rpmcflags}"
+
+%{?with_tests:%{__make} test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} pure_install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc Changes README
+%{perl_vendorlib}/ExtUtils/CppGuess.pm
+%{_mandir}/man3/*
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/perl-ExtUtils-CppGuess.git/commitdiff/4faa25964356578b345656ac8eb6dfbd1013e6da
More information about the pld-cvs-commit
mailing list