]> git.pld-linux.org Git - packages/bkchem.git/blob - bkchem.spec
- up to 0.11.5
[packages/bkchem.git] / bkchem.spec
1 Summary:        Python 2D chemical structure drawing tool
2 Summary(pl):    Narzêdzie do rysowania dwuwymiarowych struktur chemicznych
3 Name:           bkchem
4 Version:        0.11.5
5 Release:        1
6 License:        GPL
7 Group:          X11/Applications/Science
8 Source0:        http://bkchem.zirael.org/download/%{name}-%{version}.tar.gz
9 # Source0-md5:  306758350652d2e814c3dbbfecb4c5d6
10 Source1:        %{name}.desktop
11 URL:            http://bkchem.zirael.org/
12 BuildRequires:  python
13 BuildRequires:  python-devel
14 BuildRequires:  python-modules
15 Requires:       python
16 Requires:       python-devel-tools
17 Requires:       Pmw
18 Requires:       python-PyXML
19 BuildArch:      noarch
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22 %description
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.
27
28 %description -l pl
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.
33
34 %package plugin-cairo
35 Summary:        High quality PDF and PNG export plugin
36 Summary(pl):    Wtyczka do tworzenia wysokiej jako¶ci plików PDF i PNG
37 Group:          X11/Applications/Science
38 Requires:       %{name} = %{version}-%{release}
39 Requires:       python-pycairo >= 0.5.1
40
41 %description plugin-cairo
42 The plugin, that allowes exporting the picture to the high quality PDF
43 and PNG files. It uses Cairo and pycario libraries.
44
45 %description plugin-cairo -l pl
46 Wtyczka umo¿liwiaj±ca exportowanie do plików PDF i PNG, o wysokiej 
47 jako¶ci. U¿ywane s± biblioteki Cairo oraz pycairo.
48
49 %prep
50 %setup -q
51
52 %build
53 %{__python} setup.py build
54
55 %install
56 rm -rf $RPM_BUILD_ROOT
57 install -d $RPM_BUILD_ROOT{%{_bindir},%{_desktopdir},%{_pixmapsdir}}
58 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
59 install images/bkchem.png $RPM_BUILD_ROOT%{_pixmapsdir}/bkchem.png
60 %{__python} setup.py install \
61         --root=$RPM_BUILD_ROOT \
62         --optimize=2
63
64 #fix executable
65 sed -e "s@$RPM_BUILD_ROOT@@g" -i $RPM_BUILD_ROOT%{_bindir}/%{name}
66 sed -e "s@%{name}.py@%{name}.pyo@g" -i $RPM_BUILD_ROOT%{_bindir}/%{name}
67 sed -e "s@$RPM_BUILD_ROOT@@g" -i $RPM_BUILD_ROOT%{py_sitescriptdir}/%{name}/site_config.py
68
69 %find_lang BKchem
70
71 %clean
72 rm -rf $RPM_BUILD_ROOT
73
74 %files -f BKchem.lang
75 %defattr(644,root,root,755)
76 %doc README RELEASE doc/*
77 %attr(755,root,root) %{_bindir}/%{name}
78 %{_datadir}/%{name}
79 %{_desktopdir}/%{name}.desktop
80 %{_pixmapsdir}/%{name}.png
81 %dir %{py_sitescriptdir}/%{name}
82 %{py_sitescriptdir}/%{name}/*.py[co]
83 %{py_sitescriptdir}/%{name}/site_config.py
84 %{py_sitescriptdir}/%{name}/%{name}.py
85 %dir %{py_sitescriptdir}/%{name}/plugins
86 %{py_sitescriptdir}/%{name}/plugins/*.py[co]
87 %dir %{py_sitescriptdir}/%{name}/oasa
88 %{py_sitescriptdir}/%{name}/oasa/*.py[co]
89 %dir %{py_sitescriptdir}/%{name}/oasa/oasa/graph
90 %{py_sitescriptdir}/%{name}/oasa/oasa/graph/*.py[co]
91 %dir %{py_sitescriptdir}/%{name}/oasa/oasa
92 %{py_sitescriptdir}/%{name}/oasa/oasa/*.py[co]
93 %dir %{py_sitescriptdir}/%{name}/plugins/piddle
94 %{py_sitescriptdir}/%{name}/plugins/piddle/*.py[co]
95 %exclude %{py_sitescriptdir}/%{name}/plugins/*cairo* 
96
97 %files plugin-cairo
98 %defattr(644,root,root,755)
99 %{py_sitescriptdir}/%{name}/plugins/*cairo*
This page took 0.045617 seconds and 3 git commands to generate.