Name: gchempaint
Version: 0.3.3
Release: 1
-Source0: http://savannah.nongnu.org/download/gchempaint/unstable.pkg/%{version}/%name-%{version}.tar.bz2
-URL: http://www.nongnu.org/gchempaint
License: GPL
Group: X11/Applications/Science
+Source0: http://savannah.nongnu.org/download/gchempaint/unstable.pkg/%{version}/%name-%{version}.tar.bz2
+URL: http://www.nongnu.org/gchempaint
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: libglade2-devel >= 2.0.0
BuildRequires: libgnomeprint-devel >= 2.0.0
BuildRequires: libgnomeprintui-devel >= 2.1.3
BuildRequires: libgnomeui-devel >= 2.0.0
-BuildRequires: gcu-lib-devel
-Requires: gcu-lib
+BuildRequires: gcu-lib-devel >= 0.1.3
+Requires: gcu-lib >= 0.1.3
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+%define _noautoreqdep libGL.so.1 libGLU.so.1
+
%description
GChemPaint is a 2D chemical structures editor for the Gnome-2 desktop.
GChemPaint is a multi-document application and will be a bonobo server
##crappy fix for make install running scrollkeeper-update
#rm -fr $RPM_BUILD_ROOT/var
-%find_lang %name
-
+%find_lang %{name} --with-gnome
%clean
rm -rf $RPM_BUILD_ROOT
-%post
-/usr/bin/scrollkeeper-update
-
+%post -p /usr/bin/scrollkeeper-update
%postun -p /usr/bin/scrollkeeper-update
%files -f %{name}.lang
%defattr(644,root,root,755)
-%doc AUTHORS ChangeLog COPYING NEWS README
+%doc AUTHORS ChangeLog NEWS README
%attr(755,root,root) %{_bindir}/%{name}
-%{_datadir}/applications/%name.desktop
-%{_datadir}/%{name}/glade/*
-%{_datadir}/gnome/*
+%{_datadir}/%{name}
+%{_datadir}/gnome/ui/*.xml
%{_omf_dest_dir}/*
-%{_datadir}/pixmaps/*.png
+%{_desktopdir}/%{name}.desktop
+%{_pixmapsdir}/*.png
%{_datadir}/mime-info/%{name}.*
%{_libdir}/bonobo/servers/%{name}.server