# NOTE: Please do not edit this file, it was auto generated by jhconvert # See http://wiki.sugarlabs.org/go/Deployment_Team/jhconvert for details Name: python-xpcom Version: 1.9.2 Release: %mkrel 0.hgd6af7838ab28.1 Summary: Python interface for mozilla XPCOM library License: MPLv1.1 or GPLv2+ or LGPLv2+ Group: Development/Python Url: http://developer.mozilla.org/en/PyXPCOM # wget --no-clobber --continue 'http://hg.mozilla.org/pyxpcom/archive/d6af7838ab28.tar.bz2' -O python-xpcom-1.9.2-20100212.tar.gz Source: python-xpcom-1.9.2-20100212.tar.gz Patch: python-xpcom-1.9.2-pyxpcom-configure.patch Requires: python BuildRequires: pkgconfig BuildRequires: libpython-devel BuildRequires: xulrunner-devel BuildRequires: zip BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) %description Files needed to run Gecko applications written in python. %package devel Summary: Development files for %{name} Group: Development/C Requires: %{name} = %{version}-%{release} Requires: xulrunner-devel %description devel Files needed to run Gecko applications written in python. %prep %setup -q -n pyxpcom-d6af7838ab28 %patch -p1 %build chmod a+x objdir/configure cd objdir && %define __libtoolize true %configure --with-libxul-sdk=`pkg-config --variable=sdkdir libxul` --with-system-nspr; cd - make -C objdir %install rm -rf %{buildroot} _dst=%{buildroot}/%{python_sitelib}; install -d ${_dst} && cp -r objdir/dist/bin/python/* ${_dst}/ _dst=%{buildroot}/%{_libdir}/xulrunner-`pkg-config --modversion libxul`; install -d ${_dst} && cp -r objdir/dist/bin/* ${_dst}/ _dst=%{buildroot}/`pkg-config --variable=includedir libxul`; install -d ${_dst} && cp -r objdir/dist/include/* ${_dst}/ _dst=%{buildroot}/`pkg-config --variable=idldir libxul`; install -d ${_dst} && cp -r objdir/dist/idl/* ${_dst}/ _dst=%{buildroot}/`pkg-config --variable=sdkdir libxul`/sdk/lib; install -d ${_dst} && cp -r objdir/dist/lib/* ${_dst}/ %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %{python_sitelib}/* %{_libdir}/xulrunner-[0-9]*/* %files devel %{_includedir}/* %{_libdir}/xulrunner-devel*/sdk/lib/* %{_datadir}/idl/* %changelog * Sat Apr 03 2010 Aleksey Lim <alsroot@mandriva.org> 1.9.2-0.hgd6af7838ab28.1mdv2010.1 + Revision: 530890 - Initial commit