%define name mergeant %define version 0.65 %define cvsversion 0.cvs20060309 Summary: GNOME DB frontend Name: %name Version: %version Release: %mkrel 1 License: GPL Group: Databases URL: http://www.gnome-db.org/ Source0: ftp://ftp.gnome.org/pub/GNOME/sources/%{name}/%{name}-%{version}.tar.bz2 Source1: %name-icons.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot BuildRequires: scrollkeeper Buildrequires: gnome-db2.0-devel BuildRequires: libgnomeprintui2-2-devel BuildRequires: libgnomeui2-devel BuildRequires: libglade2.0-devel BuildRequires: automake1.8 BuildRequires: gnome-common BuildRequires: intltool Requires: scrollkeeper Requires: gnome-db2.0 %description Mergeant is a program which helps administer a DBMS database using the gnome-db framework. Basically, it memorizes all the structure of the database, and some queries, and does the SQL queries instead of the user (not having to type all over again those SQL commands, although it is still possible to do so). %prep %setup -q -n %{name}-%{version} -a1 %build %configure2_5x %make %install rm -rf $RPM_BUILD_ROOT %makeinstall_std %find_lang %{name} --with-gnome # Menu entry mkdir -p $RPM_BUILD_ROOT/%{_menudir} cat >$RPM_BUILD_ROOT/%{_menudir}/%{name} <<EOF ?package(%{name}): command="%{_bindir}/mergeant" icon="%name.png" needs="X11" \ section="Applications/Databases" title="Mergeant" longtitle="DBMS admin tool" \ xdg="true" EOF mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications cat > $RPM_BUILD_ROOT%{_datadir}/applications/mandriva-%{name}.desktop << EOF [Desktop Entry] Encoding=UTF-8 Name=Mergeant Comment=GNOME DB frontend Exec=%{name} Icon=%{name} Terminal=false Type=Application Categories=X-MandrivaLinux-MoreApplications-Databases;Database;Office; EOF %__install -D -m 644 %{name}48.png %buildroot/%_liconsdir/%name.png %__install -D -m 644 %{name}32.png %buildroot/%_iconsdir/%name.png %__install -D -m 644 %{name}16.png %buildroot/%_miconsdir/%name.png #remove unpackaged files rm -f $RPM_BUILD_ROOT%{_libdir}/mergeant/plugins/*.{la,a} %post if [ -x %{_bindir}/scrollkeeper-update ]; then %{_bindir}/scrollkeeper-update -q || true ; fi %{update_menus} %postun if [ -x %{_bindir}/scrollkeeper-update ]; then %{_bindir}/scrollkeeper-update -q || true ; fi %{clean_menus} %clean rm -rf $RPM_BUILD_ROOT %files -f %{name}.lang %defattr(-,root,root,-) %doc README ChangeLog AUTHORS BUGS TODO %{_bindir}/* %{_libdir}/bonobo/servers/* %{_datadir}/application-registry/* %{_datadir}/applications/* %{_datadir}/pixmaps/* %{_datadir}/omf/* %{_datadir}/mime-info/* %{_menudir}/* %{_iconsdir}/*/%name.png %{_iconsdir}/%name.png %changelog * Tue Jan 02 2007 Jérôme Soyer <saispo@mandriva.org> 0.65-1mdv2007.0 + Revision: 103447 - New release 0.65 * Mon Nov 27 2006 Jérôme Soyer <saispo@mandriva.org> 0.64-1mdv2007.1 + Revision: 87527 - New release 0.64 - Import mergeant * Wed May 10 2006 Frederic Crozat <fcrozat@mandriva.com> 0.62-5mdk - Add more buildrequires * Tue Apr 04 2006 Nicolas Lécureuil <neoclust@mandriva.org> 0.62-4mdk - Add Buildrequires * Mon Apr 03 2006 Jerome Soyer <saispo@mandriva.org> 0.62-3mdk - Fix Source Tarball * Mon Apr 03 2006 Jerome Soyer <saispo@mandriva.org> 0.62-2mdk - Rebuild with the new gnome-db - Rpmbuildupdate aware * Wed Feb 15 2006 Jerome Soyer <saispo@mandriva.org> 0.62-1mdk - New release 0.62 - Clean spec * Fri Apr 01 2005 Frederic Crozat <fcrozat@mandrakesoft.com> 0.52-4mdk - Rebuild * Wed Jan 05 2005 Frederic Crozat <fcrozat@mandrakesoft.com> 0.52-3mdk - Rebuild with latest howl * Wed Dec 29 2004 Frederic Crozat <fcrozat@mandrakesoft.com> 0.52-2mdk - from Tigrux <tigrux@ximian.com> (go monkey, go) : - Enable compilation against libgda 1.2 * Mon Aug 16 2004 Frederic Crozat <fcrozat@mandrakesoft.com> 0.52-1mdk - Release 0.52 * Mon Jul 28 2003 Marcel Pol <mpol@gmx.net> 0.12.1-2mdk - requires gnome-db2.0 (bug #4074) * Thu Jul 17 2003 Frederic Crozat <fcrozat@mandrakesoft.com> - 0.12.1-1mdk - Release 0.12.1 * Tue Jun 03 2003 Frederic Crozat <fcrozat@mandrakesoft.com> - 0.12.0-1mdk - Release 0.12.0 - Remove patch0 (merged upstream) * Fri Apr 25 2003 Frederic Crozat <fcrozat@mandrakesoft.com> - 0.11.0-2mdk - Fix BuildRequires * Tue Apr 22 2003 Frederic Crozat <fcrozat@mandrakesoft.com> - 0.11.0-1mdk - Initial build. - Patch0: fix plugin directory location