From 6fceaf9ff2ce2f9c63565ba33f7b8e8ef7fcbdff Mon Sep 17 00:00:00 2001 From: djrzulf Date: Sat, 26 Nov 2005 17:59:25 +0000 Subject: [PATCH] - new, builds Changed files: python-pydot.spec -> 1.1 --- python-pydot.spec | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 python-pydot.spec diff --git a/python-pydot.spec b/python-pydot.spec new file mode 100644 index 0000000..7deab21 --- /dev/null +++ b/python-pydot.spec @@ -0,0 +1,47 @@ +# TODO: +# - summary, desc, +%define module pydot +Summary: Python package for +Summary(pl): Pakiet dla Pythona +Name: python-%{module} +Version: 0.9.10 +Release: 0.1 +License: GPL v2+ +Group: Libraries/Python +Source0: http://dkbza.org/data/%{module}-%{version}.tar.gz +# Source0-md5: d59609a3b69b19ad018c55d765945baf +URL: http://dkbza.org/pydot.html +BuildRequires: rpm-pythonprov +BuildRequires: graphviz-devel +BuildRequires: graphviz-python +BuildRequires: python-pyparsing +%pyrequires_eq python-modules +BuildArch: noarch +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description + +%description -l pl + +%prep +%setup -q -n %{module}-%{version} + + +%build +python setup.py build + +%install +rm -rf $RPM_BUILD_ROOT + +#broken! +python setup.py install --optimize=2 --root=$RPM_BUILD_ROOT + +find $RPM_BUILD_ROOT%{py_scriptdir} -type f -name "*.py" | xargs rm + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +%doc README +%{py_sitescriptdir}/* -- 2.44.0