forked from pool/perl-Inline-Python
Copy from home:jnweiger:perl/perl-Inline-Python via accept of submit request 25540 revision 2. Request was accepted with message: i trust you here, juergen :) OBS-URL: https://build.opensuse.org/request/show/25540 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Inline-Python?expand=0&rev=1
77 lines
2.4 KiB
RPMSpec
77 lines
2.4 KiB
RPMSpec
# $Id: perl-Inline-Python.spec 5703 2007-08-07 23:23:07Z dag $
|
|
# Authority: dries
|
|
# Upstream: Neil Watkiss <nwatkiss$ttul,org>
|
|
|
|
%define perl_vendorlib %(eval "`perl -V:installvendorlib`"; echo $installvendorlib)
|
|
%define perl_vendorarch %(eval "`perl -V:installvendorarch`"; echo $installvendorarch)
|
|
%define perl_vendorarch %(eval "`perl -V:installvendorarch`"; echo $installvendorarch)
|
|
|
|
%define real_name Inline-Python
|
|
|
|
Summary: Write Perl subs and classes in Python
|
|
Name: perl-Inline-Python
|
|
Version: 0.30
|
|
Release: 1.2
|
|
License: Artistic
|
|
Group: Applications/CPAN
|
|
URL: http://search.cpan.org/dist/Inline-Python/
|
|
|
|
# Packager: Dries Verachtert <dries@ulyssis.org>; jw@suse.de for 0.30
|
|
# Vendor: Dries RPM Repository http://dries.ulyssis.org/rpm/
|
|
Source: http://www.cpan.org/modules/by-module/Inline/Inline-Python-%{version}.tar.bz2
|
|
Patch1: happy_gcc.patch
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
|
|
|
Requires: perl-base >= 5.10.0, perl-Inline >= 0.42
|
|
BuildRequires: perl, perl-base >= 5.10.0, perl(ExtUtils::MakeMaker)
|
|
BuildRequires: perl-Inline >= 0.42, python-devel
|
|
|
|
%description
|
|
Inline::Python lets you write Perl subroutines and classes in
|
|
Python. You don't have to use any funky techniques for sharing most
|
|
types of data between the two languages, either. Inline::Python comes
|
|
with its own data translation service. It converts any Python structures
|
|
it knows about into Perl structures, and vice versa.
|
|
|
|
%prep
|
|
%setup -n %{real_name}-%{version}
|
|
%patch1 -p1
|
|
|
|
%build
|
|
%{__perl} Makefile.PL INSTALLDIRS="vendor" destdir="%{buildroot}"
|
|
%{__make} %{?_smp_mflags} OPTIMIZE="%{optflags}"
|
|
|
|
%check
|
|
%{__make} test
|
|
|
|
%install
|
|
%{__rm} -rf %{buildroot}
|
|
%makeinstall
|
|
%{__rm} -f %{buildroot}%{perl_archlib}/perllocal.pod
|
|
%{__rm} -f %{buildroot}%{perl_vendorarch}/auto/*/*/.packlist
|
|
|
|
%clean
|
|
%{__rm} -rf %{buildroot}
|
|
|
|
%files
|
|
%defattr(-, root, root, 0755)
|
|
%doc Changes README
|
|
%doc %{_mandir}/man3/*.3pm*
|
|
%dir %{perl_vendorarch}/Inline/
|
|
%{perl_vendorarch}/Inline/Python.*
|
|
%dir %{perl_vendorarch}/auto/Inline/
|
|
%{perl_vendorarch}/auto/Inline/Python/
|
|
|
|
%changelog
|
|
* Wed Mar 22 2006 Dries Verachtert <dries@ulyssis.org> - 0.22-1.2
|
|
- Rebuild for Fedora Core 5.
|
|
|
|
* Fri Mar 4 2005 Dries Verachtert <dries@ulyssis.org> - 0.22-1
|
|
- Updated to release 0.22.
|
|
|
|
* Wed Dec 29 2004 Dries Verachtert <dries@ulyssis.org> - 0.21-1
|
|
- Updated to release 0.21.
|
|
|
|
* Thu Jul 22 2004 Dries Verachtert <dries@ulyssis.org> - 0.20-1
|
|
- Initial package.
|