forked from pool/python-pydot
works, thanks OBS-URL: https://build.opensuse.org/request/show/61764 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pydot?expand=0&rev=1
48 lines
1.2 KiB
RPMSpec
48 lines
1.2 KiB
RPMSpec
# norootforbuild
|
|
|
|
Name: python-pydot
|
|
Version: 1.0.4
|
|
Release: 1
|
|
Summary: Create (dot) graphs from python
|
|
License: MIT
|
|
Group: Development/Libraries/Python
|
|
Source: http://pydot.googlecode.com/files/pydot-%{version}.tar.gz
|
|
Source1: example-demo.py
|
|
Buildarch: noarch
|
|
BuildRequires: python-devel
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
Requires: python-pyparsing graphviz
|
|
%{py_requires}
|
|
|
|
|
|
%description
|
|
pydot allows to easily create both directed and non directed graphs from Python.
|
|
Currently all attributes implemented in the Dot language are supported (up to Graphviz 2.16).
|
|
|
|
|
|
%prep
|
|
%setup -q -n pydot-%{version}
|
|
cp %{S:1} .
|
|
|
|
|
|
%build
|
|
%{__python} setup.py build
|
|
|
|
%install
|
|
%{__python} setup.py install --prefix=%{_prefix} --root=%{buildroot} --record-rpm=INSTALLED_FILES
|
|
#rm -rf %{buildroot}/usr/ChangeLog
|
|
rm -rf %{buildroot}/usr/LICENSE
|
|
rm -rf %{buildroot}/usr/README
|
|
%{__perl} -n -i -e 'print unless m,(README|LICENSE|%dir /usr/.)$,' INSTALLED_FILES
|
|
|
|
%clean
|
|
rm -rf "$RPM_BUILD_ROOT"
|
|
|
|
%files -f INSTALLED_FILES
|
|
%defattr(-,root,root)
|
|
%doc README LICENSE example-demo.py
|
|
|
|
%changelog
|
|
* Thu Dec 31 2009 Leo Eraly <leo@unstable.be> - 1.0.2-1
|
|
- Initial package
|