Group :: Desenvolvimento/Python
RPM: python-module-Reportlab
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
# $Id: pyserial.spec 61 2004-02-23 19:05:36Z cray $
%define rname reportlab
Name: python-module-Reportlab
Version: 2.1
Release: alt2.1
License: BSD license (see license.txt for details)
Summary: The Reportlab Toolkit
Group: Development/Python
Packager: Alexey Morsov <swi at altlinux.ru>
Vendor: Robinson, Watters, Becker, Precedo and many more... <info at reportlab.com>
Url: http://www.reportlab.org
Source: %name-%version.tar.bz2
Prefix: %{_prefix}
BuildRequires: rpm-build-python >= 0.8
BuildRequires: python-devel
Provides: %name
Requires: python
%add_python_req_skip rlextra
%description
The ReportLab Toolkit.
An Open Source Python library for generating PDFs and graphics.
%prep
%setup
%build
env CFLAGS="$RPM_OPT_FLAGS" %__python setup.py build
%install
%__python setup.py install --root=$RPM_BUILD_ROOT --optimize=2 --record=INSTALLED_FILES
%files -f INSTALLED_FILES
%defattr(-,root,root)
%doc license.txt
%doc docs
%python_sitelibdir/%rname
%changelog
…
Todas as alterações você pod ver aqui
%define rname reportlab
Name: python-module-Reportlab
Version: 2.1
Release: alt2.1
License: BSD license (see license.txt for details)
Summary: The Reportlab Toolkit
Group: Development/Python
Packager: Alexey Morsov <swi at altlinux.ru>
Vendor: Robinson, Watters, Becker, Precedo and many more... <info at reportlab.com>
Url: http://www.reportlab.org
Source: %name-%version.tar.bz2
Prefix: %{_prefix}
BuildRequires: rpm-build-python >= 0.8
BuildRequires: python-devel
Provides: %name
Requires: python
%add_python_req_skip rlextra
%description
The ReportLab Toolkit.
An Open Source Python library for generating PDFs and graphics.
%prep
%setup
%build
env CFLAGS="$RPM_OPT_FLAGS" %__python setup.py build
%install
%__python setup.py install --root=$RPM_BUILD_ROOT --optimize=2 --record=INSTALLED_FILES
%files -f INSTALLED_FILES
%defattr(-,root,root)
%doc license.txt
%doc docs
%python_sitelibdir/%rname
%changelog
…
Todas as alterações você pod ver aqui