Sisyphus repository
Last update: 20 september 2019 | SRPMs: 17455 | Visits: 15132102
en ru br
ALT Linux repos
S:1.6.14-alt1
5.0: 1.6.11-alt5
4.1: 1.6.11-alt3.M41.1
4.0: 1.6.11-alt2
+backports:1.6.11-alt3.M40.1
3.0: 1.6.5-alt1

Other repositories
Upstream:1.6.11

Group :: Sciences/Chemistry
RPM: chemtool

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Name: chemtool
Version: 1.6.11
Release: alt3.M40.1

%define pre %nil

Summary: Chemtool - program for 2D drawing organic molecules
License: GPL
Group: Sciences/Chemistry

Url: http://ruby.chemie.uni-freiburg.de/~martin/chemtool
Source0: %url/%name-%version%pre.tar.gz
Source1: %name.desktop
Source2: %name.menu
Patch: chemtool-cht.patch

Summary(ru_RU.KOI8-R): Программа для рисования двумерных органических структур
Summary(uk_UA.KOI8-U): Програма для малювання двовим╕рних орган╕чних структур
Summary(pl): Chemtool - program do rysowania 2-wymiarowych cz╠steczek organicznych.

# should be generalized?

%define _applnkdir %_datadir/applnk
%define _pixmapsdir %_datadir/pixmaps

%define desktop_cat Edutainment/Science

# Automatically added by buildreq on Mon Oct 06 2008

BuildRequires: imake libgtk+2-devel libXt-devel xorg-cf-files

# actually soft requires but better get them here than not...

Requires: openbabel transfig

%description
Chemtool is a program for drawing organic molecules easily and store
them as a X bitmap, Xfig or EPS file. It runs under the X Window
System using the GTK widget set.

%description -l ru_RU.KOI8-R
Chemtool -- программа для удобного рисования органических молекул и
сохранения их в различных форматах, использующая gtk+.

%description -l uk_UA.KOI8-U
Chemtool -- програма для зручного малювання орган╕чних молекул та
збереження ╖х у р╕зних форматах, що використову╓ gtk+.

%description -l pl
Chemtool jest programem do rysowania cz╠steczek organicznych i zapisu
ich jako pliki X-bitmap, Xfig lub EPS. Pracuje pod X Window u©ywaj╠c
bibliotek GTK.

%prep
%setup
%patch -p1

%build
%configure --enable-undo
%make_build

%install
install -d %buildroot%_datadir/{pixmaps,mimelnk/application,mime-info,mime-types} \
%buildroot%_iconsdir/hicolor/32x32/mimetypes \
%buildroot%_applnkdir/%desktop_cat \
%buildroot%_menudir

make install DESTDIR=%buildroot

install -m644 kde/mimelnk/application/x-chemtool.desktop \
%buildroot%_datadir/mimelnk/application/
install -m644 kde/icons/hicolor/32x32/mimetypes/chemtool.png %buildroot%_iconsdir/hicolor/32x32/mimetypes/
install -m644 gnome/mime-types/* %buildroot%_datadir/mime-info/
install -m644 %name.xpm %buildroot%_datadir/icons/
install -m644 gnome/gnome-application-chemtool.png %buildroot%_pixmapsdir/
install -m644 %SOURCE1 %buildroot%_applnkdir/%desktop_cat/
#install -m644 %SOURCE2 %buildroot%_menudir/%name

%find_lang %name

%post
%update_menus

%postun
%clean_menus

%files -f %name.lang
%doc ChangeLog README TODO examples/
%_bindir/*
%_man1dir/*
%_datadir/mimelnk/application/*
%_datadir/icons/hicolor/32x32/mimetypes/*.png
%_datadir/mime-info/*
#_menudir/%name
%_pixmapsdir/*.png
%_datadir/icons/*.xpm
%_applnkdir/%desktop_cat/*.desktop

# TODO: move to proper %%makeinstall? :)

# TODO: try to build with libEMF

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin