# $Revision: 1.1 $, $Date: 2002/05/11 23:01:49 $
Summary:	Chemtool - program for 2D drawing organic molecules.
Summary(pl):	Chemtool - program do rysowania 2-wymiarowych cząsteczek organicznych.
Name:		chemtool
Version:	1.5
Release:	1
License:	GPL
Group:		X11/Applications/Science
Source0:	http://www.uni-ulm.de/~s_tvolk/chemtool/src/%{name}-%{version}.tar.gz
Source1:	%{name}.desktop
Patch0:		%{name}-DESTDIR.patch
URL:		http://www.uni-ulm.de/~s_tvolk/chemtool.html
BuildRequires:	autoconf
BuildRequires:	gtk+-devel >= 1.2.7
BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)

%define		_prefix		/usr/X11R6
%define		_mandir		%{_prefix}/man

%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 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 -q
%patch -p1

%build
autoconf
%configure
%{__make}

%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT%{_datadir}/{pixmaps/hicolor/32x32/mimetypes,mimelnk/application,mime-info}
install -d $RPM_BUILD_ROOT%{_applnkdir}/Scientific

%{__make} install DESTDIR=$RPM_BUILD_ROOT

install kde/mimelnk/application/x-chemtool.desktop	$RPM_BUILD_ROOT%{_datadir}/mimelnk/application
install kde/icons/hicolor/32x32/mimetypes/chemtool.png	$RPM_BUILD_ROOT%{_datadir}/pixmaps/hicolor/32x32/mimetypes
install gnome/mime-types/* 			$RPM_BUILD_ROOT%{_datadir}/mime-info
install gnome/gnome-application-chemtool.png	$RPM_BUILD_ROOT%{_datadir}/pixmaps
install %{SOURCE1}				$RPM_BUILD_ROOT%{_applnkdir}/Scientific
install %{name}.xpm				$RPM_BUILD_ROOT%{_datadir}/pixmaps

gzip -9nf ChangeLog README TODO

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(644,root,root,755)
%doc *.gz examples/*
%attr(755,root,root) %{_bindir}/*
%{_datadir}/mimelnk/application/*
%{_datadir}/pixmaps/hicolor/32x32/mimetypes/*.png
%{_datadir}/mime-info/*
%{_datadir}/pixmaps/*.png
%{_datadir}/pixmaps/*.xpm
%{_applnkdir}/Scientific/*.desktop

%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
* %{date} PLD Team <feedback@pld.org.pl>
All persons listed below can be reached at <cvs_login>@pld.org.pl

$Log: chemtool.spec,v $
Revision 1.1  2002/05/11 23:01:49  blues
- initial revision
program for 2D drawing organic molecules
STBR

