Search
SailfishOS Open Build Service
>
Projects
>
home:notmart
:
CE:Adaptation:x86-generic
>
newt
> newt-python.spec
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File newt-python.spec of Package newt
# spec file originally created for Fedora, modified for Moblin Linux %{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} Summary: Python bindings for newt Group: System/Libraries Name: newt-python Version: 0.52.12 Release: 1 License: LGPLv2 URL: https://fedorahosted.org/newt/ Source: https://fedorahosted.org/releases/n/e/newt/newt-%{version}.tar.gz BuildRequires: popt-devel slang-devel ncurses-devel BuildRequires: python-devel Provides: snack = %{version}-%{release} Requires: newt = %{version} %description The newt-python package contains the Python bindings for the newt library providing a python API for creating text mode ionterfaces. %prep %setup -q -n newt-%{version} %build # gpm support seems to smash the stack w/ we use help in anaconda?? # --with-gpm-support %configure --without-tcl %ifarch %{arm} make all %else make %{?_smp_mflags} all %endif chmod 0644 peanuts.py popcorn.py %install rm -rf $RPM_BUILD_ROOT make instroot=$RPM_BUILD_ROOT install find "%{buildroot}" -not -type d -and -not -path %{buildroot}%{_libdir}/python%{py_ver}/site-packages/\* -print0 | xargs -0 rm %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %{python_sitearch}/*.so %{python_sitearch}/*.py*