1 Summary: Python 2D chemical structure drawing tool
2 Summary(pl): Narzêdzie do rysowania 2D struktur chemicznych
7 Group: X11/Applications/Science
8 Source0: http://zirael.org/bkchem/download/%{name}-%{version}.tar.gz
9 Source1: %{name}.desktop
10 # Source0-md5: 85b89c905af843cb191cc6ab30fe3a4c
11 Patch0: %{name}-reaction_mode.patch
12 URL: http://zirael.org/bkchem/index.html
14 BuildRequires: python-devel
15 BuildRequires: python-modules
17 Requires: python-devel-tools
19 Requires: python-PyXML
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 BKchem is a free (as in free software :o) chemical drawing program. It
25 was conceived and written by Beda Kosata. Supported file formats are
26 SVG and CML. The output looks best with the Adobe SVG viewer, but
27 sodipodi and batik do a reasonable job as well.
30 BKchem to wolnodostêpny program do rysunków chemicznych. Jego
31 pomys³odawc± i autorem jest Beda Kosata. Obs³ugiwane formaty plików to
32 SVG i CML. Wyj¶cie wygl±da najlepiej pod przegl±dark± SVG firmy Adobe,
33 ale sodipodi i batik tak¿e wy¶wietlaj± je sensownie.
43 rm -rf $RPM_BUILD_ROOT
44 install -d $RPM_BUILD_ROOT{%{_bindir},%{_desktopdir},%{_pixmapsdir}}
45 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
46 install images/icon.png $RPM_BUILD_ROOT%{_pixmapsdir}/bkchem.png
47 python setup.py install \
48 --root=$RPM_BUILD_ROOT \
52 sed -e "s@$RPM_BUILD_ROOT@@g" -i $RPM_BUILD_ROOT%{_bindir}/%{name}
53 sed -e "s@%{name}.py@%{name}.pyo@g" -i $RPM_BUILD_ROOT%{_bindir}/%{name}
54 sed -e "s@$RPM_BUILD_ROOT@@g" -i $RPM_BUILD_ROOT%{py_sitescriptdir}/%{name}/site_config.py
59 rm -rf $RPM_BUILD_ROOT
62 %defattr(644,root,root,755)
63 %doc README RELEASE doc/html
64 %attr(755,root,root) %{_bindir}/%{name}
66 %{_desktopdir}/%{name}.desktop
67 %{_pixmapsdir}/%{name}.png
68 %dir %{py_sitescriptdir}/%{name}
69 %{py_sitescriptdir}/%{name}/*.py[co]
70 %{py_sitescriptdir}/%{name}/site_config.py
71 %{py_sitescriptdir}/%{name}/%{name}.py
72 %dir %{py_sitescriptdir}/%{name}/plugins
73 %{py_sitescriptdir}/%{name}/plugins/*.py[co]
74 %dir %{py_sitescriptdir}/%{name}/oasa
75 %{py_sitescriptdir}/%{name}/oasa/*.py[co]
76 %dir %{py_sitescriptdir}/%{name}/oasa/oasa/graph
77 %{py_sitescriptdir}/%{name}/oasa/oasa/graph/*.py[co]
78 %dir %{py_sitescriptdir}/%{name}/oasa/oasa
79 %{py_sitescriptdir}/%{name}/oasa/oasa/*.py[co]
80 %dir %{py_sitescriptdir}/%{name}/piddle
81 %dir %{py_sitescriptdir}/%{name}/piddle/*.py[co]