%define name easychem %define version 0.5 %define release 1mdk Name: %{name} Summary: 2D molecular drawing program Version: %{version} Release: %{release} Source: %{name}-%{version}.tar.bz2 URL: http://easychem.sourceforge.net/ License: GPL Group: Sciences/Chemistry BuildRoot: %{_tmppath}/%{name}-buildroot BuildRequires: pkgconfig gtk2-devel %description EasyChem is a program designed to draw chemical molecules. The problem in all existing programs is: they intend to be easy to use at first try, kind of a quick-and-dirty approach. EasyChem would be a bit difficult to learn, but when you master it, you can be very fast, and with a huge precision. In fact, it's just like a specialized vectorial drawing tool. %prep %setup -q %build %make -f Makefile.linux C_FLAGS="$RPM_OPT_FLAGS" %install rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT/%_bindir cp %name $RPM_BUILD_ROOT/%_bindir/ #menu mkdir -p $RPM_BUILD_ROOT%{_menudir} cat << EOF > $RPM_BUILD_ROOT%{_menudir}/%{name} ?package(%{name}): command="%{name}" icon="chemistry_section.png" needs="x11" title="EasyChem" longtitle="2D Molecule Editor" section="Applications/Sciences/Chemistry" EOF %clean rm -rf $RPM_BUILD_ROOT %post %update_menus %postun %clean_menus %files %defattr(-,root,root) %doc COPYING %{_bindir}/%name %{_menudir}/%name %changelog * Sun May 2 2004 Austin Acton <austin@mandrake.org> 0.5-1mdk - 0.5 * Wed Jan 28 2004 Austin Acton <austin@mandrake.org> 0.3-1mdk - initial package