%define prefix %(kde-config --prefix) Name: chemtool Version: 1.6.14 Release: 1mamba Summary: Chemtool is a small program for drawing chemical structures on Linux and Unix systems using the GTK toolkit under X11 Group: Graphical Desktop/Applications/Educational Distribution: openmamba Vendor: openmamba Packager: Silvan Calarco URL: http://ruby.chemie.uni-freiburg.de/~martin/chemtool/ Source: http://ruby.chemie.uni-freiburg.de/~martin/chemtool/%{name}-%{version}.tar.gz Patch0: %{name}-1.6.7-gcc.patch Patch1: %{name}-1.6.11-desktop.patch Patch2: %{name}-1.6.11-x-desktop.patch Patch3: %{name}-1.6.11-applnk-desktop.patch License: GPL Requires: transfig Requires: openbabel ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel BuildRequires: libatk-devel BuildRequires: libcairo-devel BuildRequires: libglib-devel BuildRequires: libgtk-devel BuildRequires: libpango-devel BuildRequires: libX11-devel BuildRequires: openbabel-devel BuildRequires: transfig ## AUTOBUILDREQ-END BuildRoot: %{_tmppath}/%{name}-%{version}-root %description Chemtool is a small program for drawing chemical structures on Linux and Unix systems using the GTK toolkit under X11 %prep %setup -q #%patch0 -p1 %patch1 -p1 %patch2 -p1 %patch3 -p1 %build %configure_kde --with-kdedir=%{prefix} %make %install [ "%{buildroot}" != / ] && rm -rf %{buildroot} %makeinstall DESTDIR=%{buildroot} %{__mkdir_p} %{buildroot}%{_kdedatadir}/icons/hicolor/32x32/mimetypes %{__mkdir_p} %{buildroot}%{_kdedatadir}/mimelnk/application %{__mkdir_p} %{buildroot}%{_kdedatadir}/applications %{__mkdir_p} %{buildroot}%{_kdedatadir}/applnk/Graphics %{__mkdir_p} %{buildroot}%{_kdedatadir}/apps/%{name}-%{version}/examples install -m 644 kde/icons/hicolor/32x32/mimetypes/chemtool.png \ %{buildroot}%{_kdedatadir}/icons/hicolor/32x32/mimetypes/chemtool.png install -m 644 kde/mimelnk/application/x-chemtool.desktop %{buildroot}%{_kdedatadir}/mimelnk/application/x-chemtool.desktop install -D -m 644 kde/applnk/Graphics/chemtool.desktop %{buildroot}%{_datadir}/applications/chemtool.desktop install -m 644 examples/* %{buildroot}%{_kdedatadir}/apps/%{name}-%{version}/examples #for lang in es_ES hu_HU it_IT ru_RU #do # dest=$(echo $lang | cut -d_ -f1) # mv %{buildroot}%{_kdedatadir}/locale/$lang \ # %{buildroot}%{_kdedatadir}/locale/$dest 2>&1 > /dev/null #done %find_lang %{name} %clean [ "%{buildroot}" != / ] && rm -rf %{buildroot} %files -f %{name}.lang %defattr(-,root,root) %{_kdebindir}/chemtoolbg %{_kdebindir}/chemtool %{_kdebindir}/cht %{_datadir}/applications/chemtool.desktop %{_kdedatadir}/mimelnk/application/x-chemtool.desktop %dir %{_kdedatadir}/apps/chemtool-%{version}/examples %{_kdedatadir}/apps/chemtool-%{version}/examples/*.mol %{_kdedatadir}/apps/chemtool-%{version}/examples/*.cht %{_kdedatadir}/apps/chemtool-%{version}/examples/*.pdb %{_kdedatadir}/apps/chemtool-%{version}/examples/Neu2 %{_kdedatadir}/apps/chemtool-%{version}/examples/labeltest %{_kdedatadir}/apps/chemtool-%{version}/examples/*.sdf %{_kdedatadir}/icons/hicolor/32x32/mimetypes/chemtool.png %{_mandir}/man1/chemtool.1.gz %{_mandir}/man1/cht.1.gz %doc ChangeLog NEWS README TODO %changelog * Sun Aug 18 2013 Automatic Build System 1.6.14-1mamba - automatic update by autodist * Wed Dec 28 2011 Automatic Build System 1.6.13-1mamba - automatic version update by autodist * Mon Jun 29 2009 Automatic Build System 1.6.12-1mamba - automatic update by autodist * Fri Jul 25 2008 gil 1.6.11-1mamba - update to 1.6.11 - removed gcc patch, edit patch desktop - added new patches for: ../applnk/Graphics/chemtool.desktop ../mimelnk/application/x-chemtool.desktop * Thu Nov 10 2005 Alessandro Ramazzina 1.6.7-1qilnx - update to version 1.6.7 by autospec * Tue Aug 30 2005 Massimo Pintore 1.6.6-2qilnx - added missing requirements - rebuilt with '--with-kdedir=%{_prefix}' * Fri Jul 08 2005 Alessandro Ramazzina 1.6.6-1qilnx - package created by autospec