%define module fuse Summary: - Summary(pl.UTF-8): - Name: template Version: _ Release: 0.1 License: - (enter GPL/GPL v2/GPL v3/LGPL/BSD/BSD-like/other license name here) Group: Development/Languages/Python Source0: %{name}-%{version}.tar.gz # Source0-md5: - URL: - BuildRequires: python-devel >= 1:2.5 BuildRequires: rpm-pythonprov #%pyrequires_eq python-libs %pyrequires_eq python-modules #BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description %prep %setup -q -n %{module}-python %build python setup.py build %install rm -rf $RPM_BUILD_ROOT python setup.py install \ --optimize=2 \ --root=$RPM_BUILD_ROOT %py_ocomp $RPM_BUILD_ROOT%{py_sitedir} %py_comp $RPM_BUILD_ROOT%{py_sitedir} %py_postclean %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %doc AUTHORS CREDITS ChangeLog NEWS README THANKS TODO %{py_sitedir}/*.py[co] %attr(755,root,root) %{py_sitedir}/*.so %{py_sitedir}/%{module}-*.egg-info