%define name PyX %define version 0.8.1 %define release 1 Summary: Python package for the generation of PostScript and PDF files Name: %{name} Version: %{version} Release: %{release} Source0: %{name}-%{version}.tar.gz Source1: mkhowto License: GPL Group: Development/Libraries BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot BuildArch: noarch Vendor: Jörg Lehmann, André Wobst Url: http://pyx.sourceforge.net/ %description PyX is a Python package for the creation of PostScript and PDF files. It combines an abstraction of the PostScript drawing model with a TeX/LaTeX interface. Complex tasks like 2d and 3d plots in publication-ready quality are built out of these primitives. %prep %setup %build python setup.py build cp $RPM_SOURCE_DIR/mkhowto manual/ make -C manual %install python setup.py install --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES %clean rm -rf $RPM_BUILD_ROOT %files -f INSTALLED_FILES %defattr(-,root,root) %doc AUTHORS CHANGES README %doc contrib examples faq manual