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
13 BuildRequires: python-devel
14 BuildRequires: python-modules
16 Requires: python-devel-tools
18 Requires: python-PyXML
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 BKchem is a free (as in free software :o) chemical drawing program. It
24 was conceived and written by Beda Kosata. Supported file formats are
25 SVG and CML. The output looks best with the Adobe SVG viewer, but
26 sodipodi and batik do a reasonable job as well.
29 BKchem to wolnodostêpny program do rysunków chemicznych. Jego
30 pomys³odawc± i autorem jest Beda Kosata. Obs³ugiwane formaty plików to
31 SVG i CML. Wyj¶cie wygl±da najlepiej pod przegl±dark± SVG firmy Adobe,
32 ale sodipodi i batik tak¿e wy¶wietlaj± je sensownie.
42 rm -rf $RPM_BUILD_ROOT
43 install -d $RPM_BUILD_ROOT{%{_bindir},%{_desktopdir},%{_pixmapsdir}}
44 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
45 install images/icon.png $RPM_BUILD_ROOT%{_pixmapsdir}/bkchem.png
46 python setup.py install \
47 --root=$RPM_BUILD_ROOT \
51 sed -e "s@$RPM_BUILD_ROOT@@g" -i $RPM_BUILD_ROOT%{_bindir}/%{name}
52 sed -e "s@%{name}.py@%{name}.pyo@g" -i $RPM_BUILD_ROOT%{_bindir}/%{name}
53 sed -e "s@$RPM_BUILD_ROOT@@g" -i $RPM_BUILD_ROOT%{py_sitescriptdir}/%{name}/site_config.py
58 rm -rf $RPM_BUILD_ROOT
61 %defattr(644,root,root,755)
62 %doc README RELEASE doc/html
63 %attr(755,root,root) %{_bindir}/%{name}
65 %{_desktopdir}/%{name}.desktop
66 %{_pixmapsdir}/%{name}.png
67 %dir %{py_sitescriptdir}/%{name}
68 %{py_sitescriptdir}/%{name}/*.py[co]
69 %{py_sitescriptdir}/%{name}/site_config.py
70 %{py_sitescriptdir}/%{name}/%{name}.py
71 %dir %{py_sitescriptdir}/%{name}/plugins
72 %{py_sitescriptdir}/%{name}/plugins/*.py[co]
73 %dir %{py_sitescriptdir}/%{name}/oasa
74 %{py_sitescriptdir}/%{name}/oasa/*.py[co]
75 %dir %{py_sitescriptdir}/%{name}/oasa/oasa/graph
76 %{py_sitescriptdir}/%{name}/oasa/oasa/graph/*.py[co]
77 %dir %{py_sitescriptdir}/%{name}/oasa/oasa
78 %{py_sitescriptdir}/%{name}/oasa/oasa/*.py[co]
79 %dir %{py_sitescriptdir}/%{name}/piddle
80 %dir %{py_sitescriptdir}/%{name}/piddle/*.py[co]