[packages/perl-Inline-C] - split from perl-Inline
qboosh
qboosh at pld-linux.org
Sun Jan 10 08:48:14 CET 2016
commit a32c35f7c50f64aa93b44a3ccb83263db74d3be9
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sun Jan 10 08:50:03 2016 +0100
- split from perl-Inline
perl-Inline-C.spec | 81 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 81 insertions(+)
---
diff --git a/perl-Inline-C.spec b/perl-Inline-C.spec
new file mode 100644
index 0000000..3575339
--- /dev/null
+++ b/perl-Inline-C.spec
@@ -0,0 +1,81 @@
+#
+# Conditional build:
+%bcond_without tests # do not perform "make test"
+#
+%define pdir Inline
+%define pnam C
+%include /usr/lib/rpm/macros.perl
+Summary: Inline::C - C Language Support for Inline
+Summary(pl.UTF-8): Inline::C - obsługa języka C dla Inline
+Name: perl-Inline-C
+Version: 0.76
+Release: 1
+Epoch: 1
+# same as perl
+License: GPL v1+ or Artistic
+Group: Development/Languages/Perl
+Source0: http://www.cpan.org/modules/by-module/Inline/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5: c0fbfdd058075c9271a1384c822c9a87
+URL: http://search.cpan.org/dist/Inline-C/
+BuildRequires: perl-File-ShareDir-Install
+BuildRequires: perl-devel >= 1:5.8.0
+BuildRequires: rpm-perlprov >= 4.1-13
+%if %{with tests}
+BuildRequires: perl-File-Copy-Recursive
+BuildRequires: perl-IO-All
+BuildRequires: perl-Inline >= 1:0.79
+BuildRequires: perl-Parse-RecDescent >= 1.967009
+BuildRequires: perl-Pegex >= 0.58
+BuildRequires: perl-Test-Warn >= 0.23
+BuildRequires: perl-YAML-LibYAML
+%endif
+Requires: gcc
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Inline::C is a module that allows you to write Perl subroutines in C.
+Since version 0.30 the Inline module supports multiple programming
+languages and each language has its own support module.
+
+%description -l pl.UTF-8
+Inline::C to moduł pozwalający na pisanie funkcji Perla w języku C. Od
+wersji 0.30 moduł Inline obsługuje wiele języków programowania, a
+każdy język ma własny moduł obsługujący.
+
+%prep
+%setup -q -n %{pdir}-%{pnam}-%{version}
+
+%build
+%{__perl} Makefile.PL \
+ INSTALLDIRS=vendor
+%{__make}
+
+%{?with_tests:%{__make} test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} pure_install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+%{__rm} $RPM_BUILD_ROOT%{perl_vendorlib}/Inline/C.pod
+
+install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+cp -a example $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc Changes README
+%{perl_vendorlib}/Inline/C.pm
+%{perl_vendorlib}/Inline/C
+%{perl_vendorlib}/auto/share/dist/Inline-C
+%{_mandir}/man3/Inline::C.3pm*
+%{_mandir}/man3/Inline::C::Cookbook.3pm*
+%{_mandir}/man3/Inline::C::ParsePegex.3pm*
+%{_mandir}/man3/Inline::C::ParseRecDescent.3pm*
+%{_mandir}/man3/Inline::C::ParseRegExp.3pm*
+%{_examplesdir}/%{name}-%{version}
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/perl-Inline-C.git/commitdiff/a32c35f7c50f64aa93b44a3ccb83263db74d3be9
More information about the pld-cvs-commit
mailing list