Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:smarty12:Python
python-perlmodule
python-perlmodule.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File python-perlmodule.spec of Package python-perlmodule
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")} %{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")} %define oname pyperl %define name python-perlmodule %define version 1.0.1d # tried enabled again as perl build now provides threads again, but breaks... %define multi_perl 0 #%define perl_sitearch %(eval "`perl -V:installsitearch`"; echo $installsitearch) #%define perl_sitelib %(eval "`perl -V:installsitelib`"; echo $installsitelib) #%define perl_archlib %(eval "`perl -V:installarchlib`"; echo $installarchlib) Summary: Perl for python - use perl code in python Name: %{name} Version: %{version} Release: 0 Source0: %{oname}-%{version}.tar.bz2 #Patch0: pyperl-1.0.1d-disable-threads.patch # Patches FROM # http://svn.mandriva.com/cgi-bin/viewvc.cgi/packages/cooker/python-perlmodule/current/SPECS/ Patch1: pyperl-1.0.1d-improved-setup.py Patch2: pyperl-1.0.1d-makefile.pl-fixes.patch Patch3: pyperl-1.0.1d-fix-tests.patch Patch4: pyperl-1.0.1d-python2.5-fixes.patch Patch5: pyperl-1.0.1d-older-python-compat.patch Patch6: pyperl-1.0.1d-fix-setup-install.patch Patch7: pyperl-1.0.1d-new-perl-fix.patch Patch8: pyperl-1.0.1d-fix-format-warnings.patch # Patch9: pyperl-1.0.1d-perl-5.12-fixes.patch License: Artistic Group: Development/Libraries/Python BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot Url: http://search.cpan.org/dist/%{oname}/ #BuildRequires: perl-devel >= 5.6 %{py_requires} BuildRequires: perl >= 5.6 Requires: perl >= 5.6, perl-base >= 5.6 BuildRequires: python-devel >= 1.5.2 Provides: %{oname} = %{version}-%{release} %description Perlmodule makes it possible to embed perl interpreters in any python program. It can be used to invoke arbitrary perl code, load any perl modules, and make calls directly into perl functions. The perl code invoked can call back into python as it sees fit. %if %multi_perl This package is built with MULTI_PERL enabled--each python thread gets its own separate perl interpreter. %endif %prep %setup -q -n %{oname}-%{version} #%patch0 -p1 -b .nothreads %patch1 -p1 -b .improved~ %patch2 -p1 -b .makefixes~ %patch3 -p1 -b .fixtests~ %patch4 -p1 -b .python2.5~ %patch5 -p0 -b .oldpython~ %patch6 -p0 -b .fixsetup~ %patch7 -p1 -b .newperl~ %patch8 -p1 -b .format_warnings~ %patch9 -p1 -b .perl5.12~ %build # distutils enforce the use of the same build options used for python # for building modules, and format errors are impossible to fix here with # current gcc error messages export CFLAGS="-Wno-error=format-security" %if !%multi_perl rm -f MULTI_PERL %else touch MULTI_PERL %endif python setup.py build %check python setup.py test %install rm -rf %{buildroot} python setup.py install --prefix=%{_prefix} --root %{buildroot} find %{buildroot}/usr/lib/perl5/ -name .packlist | xargs rm -f %clean rm -rf %{buildroot} %files %defattr(-,root,root) %doc README TODO MANIFEST Changes # /usr/lib/perl5/5.10.0/i586-linux-thread-multi/perllocal.pod %{perl_archlib}/perllocal.pod %{perl_vendorarch}/auto/Python %{perl_vendorarch}/Python.pm %{perl_vendorarch}/Python %{_mandir}/man3/* %{python_sitearch}/* %changelog * Fri Dec 04 2009 - Ciaran Farrell <cfarrell1980@gmail.com> - 1.0.1d - Initial build
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor