Summary: A program for 2D drawing organic molecules Name: chemtool Version: 1.6.14 Release: 8%{?dist} License: GPLv2+ Source0: http://ruby.chemie.uni-freiburg.de/~martin/chemtool/%{name}-%{version}.tar.gz Patch0: %{name}-compile.patch Patch1: %{name}-desktop.patch Patch2: %{name}-gmd.patch URL: http://ruby.chemie.uni-freiburg.de/~martin/chemtool/chemtool.html BuildRequires: desktop-file-utils BuildRequires: gtk2-devel BuildRequires: libXt-devel BuildRequires: kdelibs Requires: openbabel Requires: transfig %description Chemtool is a program for drawing organic molecules easily and store them in a variety of output formats including as a X bitmap, Xfig, SVG or EPS file. It runs under the X Window System using the GTK widget set. %prep %setup -q %patch0 -p1 -b .compile %patch1 -p1 -b .d %patch2 -p1 -b .gmd %build %configure \ --with-kdedir=%{_prefix} \ --with-gnomedir=%{_prefix} make %{?_smp_mflags} %install install -d %{buildroot}%{_datadir}/{applications,mimelnk/application,mime-info,mime-types,pixmaps} \ %{buildroot}%{_datadir}/icons/hicolor/{32x32/mimetypes,48x48/apps} # fix line endings pushd examples tr -d '\r' < 14263232.mol > 14263232.mol.unix && mv -f 14263232.mol.unix 14263232.mol tr -d '\r' < sample.sdf > sample.sdf.unix && mv -f sample.sdf.unix sample.sdf popd %make_install install -pm644 kde/mimelnk/application/x-chemtool.desktop %{buildroot}%{_datadir}/mimelnk/application install -pm644 kde/icons/hicolor/32x32/mimetypes/chemtool.png %{buildroot}%{_datadir}/icons/hicolor/32x32/mimetypes install -pm644 gnome/mime-types/chemtool.* %{buildroot}%{_datadir}/mime-types install -pm644 gnome/gnome-application-chemtool.png %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/chemtool.png desktop-file-install \ --dir=%{buildroot}%{_datadir}/applications \ --add-category=Education \ --add-category=Science \ chemtool.desktop %find_lang %{name} %post touch --no-create %{_datadir}/icons/hicolor &>/dev/null || : %if 0%{fedora} < 25 %{_bindir}/update-desktop-database &> /dev/null ||: %endif %posttrans gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %postun if [ $1 -eq 0 ] ; then touch --no-create %{_datadir}/icons/hicolor gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : fi %if 0%{fedora} < 25 %{_bindir}/update-desktop-database &> /dev/null ||: %endif %files -f %{name}.lang %doc ChangeLog README TODO examples using_chemtool.html %{_bindir}/chemtool %{_bindir}/chemtoolbg %{_bindir}/cht %{_datadir}/mimelnk/application/x-chemtool.desktop %{_datadir}/mime-types/chemtool.keys %{_datadir}/mime-types/chemtool.mime %{_datadir}/icons/hicolor/32x32/mimetypes/chemtool.png %{_datadir}/icons/hicolor/48x48/apps/chemtool.png %{_datadir}/applications/chemtool.desktop %{_mandir}/man1/chemtool.1* %{_mandir}/man1/cht.1* %changelog * Tue Feb 21 2017 Dominik Mierzejewski - 1.6.14-8 - add missing semicolon to the desktop file (#1423253) - drop unnecessary update-desktop-database calls for F25+ * Fri Feb 10 2017 Fedora Release Engineering - 1.6.14-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Wed Feb 03 2016 Fedora Release Engineering - 1.6.14-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Wed Jun 17 2015 Fedora Release Engineering - 1.6.14-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sat Aug 16 2014 Fedora Release Engineering - 1.6.14-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Thu Jul 17 2014 Dominik Mierzejewski - 1.6.14-3 - use PNG icon in .desktop file - drop XPM icon, it's never used at run-time - add HTML doc to docs - list all files in the file list explicitly - drop some unnecessary spec file bits - replace $RPM_BUILD_ROOT with (shorter) buildroot macro - fix bogus date in changelog - set mode on installed files explicitly * Sat Jun 07 2014 Fedora Release Engineering - 1.6.14-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Tue Aug 13 2013 Dominik Mierzejewski - 1.6.14-1 - updated to 1.6.14 * Sat Aug 03 2013 Fedora Release Engineering - 1.6.13-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Thu Feb 14 2013 Rahul Sundaram - 1.6.13-4 - remove vendor tag from desktop file. https://fedorahosted.org/fpc/ticket/247 - clean up spec to follow current guidelines * Wed Feb 13 2013 Fedora Release Engineering - 1.6.13-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Wed Jul 18 2012 Fedora Release Engineering - 1.6.13-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Mon Mar 12 2012 Dominik Mierzejewski - 1.6.13-1 - updated to 1.6.13 - dropped upstreamed explicit libX11 linking patch * Thu Jan 12 2012 Fedora Release Engineering - 1.6.12-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Tue Dec 06 2011 Adam Jackson - 1.6.12-4 - Rebuild for new libpng * Tue Feb 08 2011 Fedora Release Engineering - 1.6.12-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Mon Feb 15 2010 Dominik 'Rathann' Mierzejewski 1.6.12-2 - fixed FTBFS with new ld (rhbz#564785) * Sat Aug 22 2009 Dominik 'Rathann' Mierzejewski 1.6.12-1 - updated to 1.6.12 - dropped obsolete patch hunks - moved gtk-update-icon-cache to posttrans scriptlet * Fri Jul 24 2009 Fedora Release Engineering - 1.6.11-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Mon Feb 23 2009 Fedora Release Engineering - 1.6.11-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Tue Feb 19 2008 Fedora Release Engineering - 1.6.11-3 - Autorebuild for GCC 4.3 * Sun Sep 23 2007 Dominik 'Rathann' Mierzejewski 1.6.11-2 - drop libEMF dependency (current transfig/fig2dev supports EMF output) * Sun Aug 26 2007 Dominik 'Rathann' Mierzejewski 1.6.11-1 - updated to 1.6.11 - updated license tag - specfile cleanups - fixed GNOME dir detection - fixed build with libEMF * Wed Apr 25 2007 Dominik 'Rathann' Mierzejewski 1.6.10-1 - updated to 1.6.10 * Fri Dec 22 2006 Dominik 'Rathann' Mierzejewski 1.6.9-7 - fix stupid directory creation bug * Thu Dec 21 2006 Dominik 'Rathann' Mierzejewski 1.6.9-6 - fix MIME type in desktop file (#220125) * Mon Nov 20 2006 Dominik 'Rathann' Mierzejewski 1.6.9-5 - keep the whole examples dir in docs - add update-desktop-database call to post{,un} scripts * Mon Nov 20 2006 Dominik 'Rathann' Mierzejewski 1.6.9-4 - fix build without mock * Sun Nov 19 2006 Dominik 'Rathann' Mierzejewski 1.6.9-3 - added missing BRs - add scriptlets to update icon cache * Sun Nov 19 2006 Dominik 'Rathann' Mierzejewski 1.6.9-2 - don't use non-standard macros * Fri Nov 17 2006 Dominik 'Rathann' Mierzejewski 1.6.9-1 - initial build, based on bioxray.dk and PLD specfiles