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