%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} Name: bkchem Version: 0.12.5 Release: 1%{?dist} Summary: Chemical drawing program Group: Applications/Engineering License: GPLv2 and GFDL URL: http://bkchem.zirael.org/ Group: Applications/Engineering Source0: http://bkchem.zirael.org/download/%{name}-%{version}-nopiddle.tar.gz Source1: %{name}.desktop BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: python-devel desktop-file-utils Requires: pycairo tkinter python python-imaging PyXML python-pmw python-oasa %description BKChem is a free chemical drawing program. It was conceived and written by Beda Kosata. %prep %setup -q -n %{name}-%{version}-nopiddle %build %{__python} setup.py build %install %{__rm} -rf %{buildroot} %{__python} setup.py install --skip-build --root %{buildroot} %{__sed} -i -e 's,'%{buildroot}',,g' \ %{buildroot}/%{python_sitelib}/%{name}/site_config.py \ %{buildroot}/%{_bindir}/%{name} %{__rm} -rf %{buildroot}/%{_datadir}/doc/%{name} %find_lang BKchem # menu %{__install} -D -p -m 0644 images/bkchem.png \ %{buildroot}/%{_datadir}/pixmaps/bkchem.png %{__install} -d %{buildroot}/%{_datadir}/applications desktop-file-install --dir=%{buildroot}/%{_datadir}/applications %{SOURCE1} %clean %{__rm} -rf %{buildroot} %files -f BKchem.lang %defattr(-, root ,root, -) %doc README gpl.txt progress.log doc/ %{_bindir}/%{name} %{_datadir}/%{name} %{_datadir}/applications/%{name}.desktop %{_datadir}/pixmaps/%{name}.png %{python_sitelib}/%{name}* %changelog * Sat Dec 13 2008 Henrique (LonelySpooky) Junior - 0.12.5-1 - this release drops the redundant Pmw inside BKChem, since pmw is a package already provided by Fedora. OASA is now a separated package. * Tue Oct 29 2008 Henrique (LonelySpooky) Junior - 0.12.4-1 - bugfix that solve the corruption of saved files - 0.12.4-1 * Sat Oct 09 2008 Henrique (LonelySpooky) Junior - 0.12.3-1 - added the new release of BKChem - 0.12.3 * Sat Aug 23 2008 Henrique (LonelySpooky) Junior - 0.12.2-4 - removed the piddle support to be in conformation with fedora's packaging pre requisites * Sat Jun 22 2008 Henrique (LonelySpooky) Junior - 0.12.2-3 - creation of bkchem.desktop and addition of menu entrie * Thu Jun 19 2008 Henrique (LonelySpooky) Junior - 0.12.2-2 - enhacement of descriptions in the RPM * Fri Jun 13 2008 Terje Rosten - 0.12.2-1 - initial package