%{!?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: 2%{?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}.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-imaging PyXML python-pmw python-oasa Patch1: bkchem-exclude-oasa-piddle-pmw.patch %description BKChem is a free chemical drawing program. It was conceived and written by Beda Kosata. %prep %setup -q -n %{name}-%{version} %patch1 -p1 -b .bkchem-exclude-oasa-piddle-pmw %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 * Tue Dec 16 2008 Henrique (LonelySpooky) Junior - 0.12.5-2 - inclusion of a patch that works directly with the upstream tarball. Untill now, upstream was building one tarball specially for Fedora and this patch works deleting OASA, piddle and Pmw*.py files, there are no longer necessary. * 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