File gchempaint.spec of Package gchempaint
#
# spec file for package gchempaint
#
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# norootforbuild
Name: gchempaint
Summary: 2D chemical structures editor
Version: 0.8.7
Release: 1
License: GPL
Url: http://www.nongnu.org/gchempaint/index.html
Group: Productivity/Scientific/Chemistry
Vendor: openSUSE-Education
Source0: %{name}-%{version}.tar.bz2
Source1: %{name}.desktop
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version}
BuildRequires: update-desktop-files
%endif
BuildRequires: gcc-c++
BuildRequires: pkgconfig
BuildRequires: gnome-doc-utils-devel
BuildRequires: perl-XML-Parser
BuildRequires: gtk2-devel
BuildRequires: libglade2-devel
BuildRequires: libgnomeprintui-devel
BuildRequires: libgnomeui-devel
BuildRequires: gnome-vfs2-devel
BuildRequires: gnome-chemistry-utils-devel
%description
GChemPaint is a multi document application and will be a bonobo server so that
some chemistry could be embedded in other Gnome applications.
Authors:
--------
Jean Bréfort <jean dot brefort at normalesup dot org>
%prep
%setup -q
%build
%configure --disable-static
%install
%makeinstall
install -D -m 644 %{SOURCE1} ${RPM_BUILD_ROOT}/%{_datadir}/applications/gchempaint.desktop
%if 0%{?suse_version}
%suse_update_desktop_file -n %name Education Chemistry
%endif
%find_lang %{name}
%clean
rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files -f %{name}.lang
%defattr (-, root, root)
%doc AUTHORS COPYING COPYING.DATA NEWS README TODO TRANSLATORS
%{_bindir}/%name
%{_libdir}/libelemental.so*
%exclude %{_libdir}/libelemental.so
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*
%changelog