Sophie

Sophie

distrib > * > 2008.0 > x86_64 > by-pkgid > 655d2a6f7cf9d967059ce225a5361a53 > files > 1

gnome-db2.0-3.1.1-3mdv2008.0.src.rpm

%define pkgname	libgnomedb
%define	major	4
%define name	gnome-db2.0
%define oname gnome-db
%define api 3.0
%define libname	%mklibname %{oname}%{api}_ %major 
%define libnamedev %mklibname -d %{oname}%{api}
%define gdaver 3.1.1

Summary:	GNOME DB
Name:		%name
Version: 3.1.1
Release: %mkrel 3
License:	GPL/LGPL
Group: 		Databases
URL:		http://www.gnome-db.org/
Source0:	ftp://ftp.gnome.org/pub/GNOME/sources/%{pkgname}/%{pkgname}-%{version}.tar.bz2
BuildRoot: 	%{_tmppath}/%{name}-%{version}-root
BuildRequires:	libgnomeui2-devel
BuildRequires:	gda2.0-devel >= %gdaver
BuildRequires:	scrollkeeper
BuildRequires:	gtk-doc
BuildRequires:	libglade2.0-devel
BuildRequires:	gtksourceview1-devel
BuildRequires:  evolution-data-server-devel
BuildRequires:	glade3-devel >= 3.1.5
BuildRequires:	libgoocanvas-devel >= 0.9
BuildRequires:	libgraphviz-devel
BuildRequires:	ImageMagick
BuildRequires:  perl-XML-Parser
BuildRequires:  desktop-file-utils
BuildRequires:  intltool

%description
Gnome DB is a frontend to the GDA architecture, being developed as part
of the GNOME project. It adds, to the already powerful GDA architecture,
a nice GUI front end for users, as well as a whole set of software
components intended to be reused in other unrelated applications.

This package contains the core components of GNOME-DB.

%package -n %{libname}
Summary:	GNOME DB libraries
Group: 		System/Libraries
Requires: %name >= %version

%description -n %{libname}
Gnome DB is a frontend to the GDA architecture, being developed as part
of the GNOME project. It adds, to the already powerful GDA architecture,
a nice GUI front end for users, as well as a whole set of software
components intended to be reused in other unrelated applications.


%package -n %{libnamedev}
Summary:	GNOME DB Development
Group: 		Development/Databases
Requires:	%{libname} = %{version}
Provides:	%{name}-devel = %{version}
Provides:	lib%{name}-devel = %{version}
Obsoletes: %mklibname -d %{oname}%{api}_ %major
Requires(post):		scrollkeeper
Requires(postun):		scrollkeeper

%description -n %{libnamedev}
Gnome DB is a frontend to the GDA architecture, being developed as part
of the GNOME project. It adds, to the already powerful GDA architecture,
a nice GUI front end for users, as well as a whole set of software
components intended to be reused in other unrelated applications.

This package contains libraries, header files and tools to let
you develop GNOME-DB applications.


%prep
%setup -q -n %{pkgname}-%{version}

%build
%configure2_5x
%make

%install
rm -rf $RPM_BUILD_ROOT

GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 %makeinstall_std

#replace icon with correct name
sed -i -e 's/^Icon=gnome-db$/Icon=gnome-db2/g' $RPM_BUILD_ROOT%{_datadir}/applications/database-properties-3.0.desktop

desktop-file-install --vendor="" \
  --remove-category="Application" \
  --remove-category="AdvancedSettings" \
  --add-category="GNOME" \
  --add-category="GTK" \
  --dir $RPM_BUILD_ROOT%{_datadir}/applications $RPM_BUILD_ROOT%{_datadir}/applications/*


# icons
mkdir -p $RPM_BUILD_ROOT%{_iconsdir} $RPM_BUILD_ROOT%{_miconsdir}
install -D -m 644 gnome-db.png $RPM_BUILD_ROOT%{_liconsdir}/gnome-db2.png
convert -geometry 32x32 gnome-db.png $RPM_BUILD_ROOT%{_iconsdir}/gnome-db2.png
convert -geometry 16x16 gnome-db.png $RPM_BUILD_ROOT%{_miconsdir}/gnome-db2.png

%{find_lang} %{pkgname}-%api --with-gnome

# remove unpackaged files
rm -rf $RPM_BUILD_ROOT%{_libdir}/libglade/2.0/*.{la,a} \
       $RPM_BUILD_ROOT%{_libdir}/glade3/modules/*a \
       $RPM_BUILD_ROOT%{_libdir}/libgnomedb/plugins/*a

%clean
rm -rf $RPM_BUILD_ROOT

%post
%{update_menus}
%post_install_gconf_schemas libgnomedb-3.0

%preun
%preun_uninstall_gconf_schemas libgnomedb-3.0

%postun
%{clean_menus}

%post -n %{libnamedev}
%update_scrollkeeper

%postun -n %{libnamedev}
%clean_scrollkeeper

%post -n %{libname} -p /sbin/ldconfig
							  
%postun -n %{libname} -p /sbin/ldconfig
							  
%files -f %{pkgname}-%api.lang
%defattr(-, root, root)
%doc AUTHORS COPYING ChangeLog NEWS
%_sysconfdir/gconf/schemas/libgnomedb-3.0.schemas
%{_bindir}/*
%{_datadir}/pixmaps/*
%_libdir/glade3/modules/libgladegnomedb.so
%_datadir/glade3/
%dir %_datadir/gnome-db-%{api}/
%_datadir/gnome-db-%{api}/*.xml
%_datadir/gnome-db-%{api}/*.glade
%_datadir/applications/database-properties-3.0.desktop
%{_libdir}/libglade/2.0/*
%dir %{_libdir}/gnome-db-%{api}/
%{_libdir}/gnome-db-%{api}/plugins/
%{_iconsdir}/*.png
%{_liconsdir}/*.png
%{_miconsdir}/*.png

%files -n %{libname}
%defattr(-, root, root)
%{_libdir}/libgnomedb*-%{api}.so.%{major}*

%files -n %{libnamedev}
%defattr(-, root, root)
%doc %{_datadir}/gtk-doc/html/*
%{_libdir}/*.so
%attr(644,root,root) %{_libdir}/*.la
%{_libdir}/*.a
%{_libdir}/pkgconfig/*
%{_includedir}/*
%dir %{_datadir}/omf/*
%{_datadir}/omf/*/*-C.omf
%_datadir/gnome-db-%{api}/demo


%changelog
* Tue Sep 11 2007 Frederic Crozat <fcrozat@mandriva.com> 3.1.1-3mdv2008.0
+ Revision: 84391
- Fix categories in .desktop to only appear in Settings
- Fix missing icon for .desktop

* Fri Sep 07 2007 Götz Waschk <waschk@mandriva.org> 3.1.1-2mdv2008.0
+ Revision: 81440
- add dep on the main package to the library package

* Sun Sep 02 2007 Götz Waschk <waschk@mandriva.org> 3.1.1-1mdv2008.0
+ Revision: 78335
- new version
- bump gda dep
- depend on graphviz and goocanvas
- new devel name
- update file list

* Tue Jul 24 2007 Götz Waschk <waschk@mandriva.org> 3.0.0-3mdv2008.0
+ Revision: 54945
- fix buildrequires

* Fri Jun 08 2007 Götz Waschk <waschk@mandriva.org> 3.0.0-2mdv2008.0
+ Revision: 37254
- rebuild

* Tue Apr 24 2007 Götz Waschk <waschk@mandriva.org> 3.0.0-1mdv2008.0
+ Revision: 17771
- new version

* Wed Apr 18 2007 Götz Waschk <waschk@mandriva.org> 2.99.6-1mdv2008.0
+ Revision: 14654
- new version
- drop sharp binding
- bump deps
- new api version


* Wed Feb 14 2007 Götz Waschk <waschk@mandriva.org> 2.99.5-1mdv2007.0
+ Revision: 120704
- drop patch, not needed with glade 3.1.5
- new version
- bump deps
- fix file list
- fix build with glade3

* Sat Jan 27 2007 Götz Waschk <waschk@mandriva.org> 2.99.3-1mdv2007.1
+ Revision: 114341
- new version
- bump deps
- drop patch
- update file list

* Tue Jan 02 2007 Götz Waschk <waschk@mandriva.org> 2.99.2-1mdv2007.1
+ Revision: 103183
- fix buildrequires
- new version
- update file list
- bump deps
- patch for new glade3

* Thu Nov 23 2006 Götz Waschk <waschk@mandriva.org> 1.99.1-4mdv2007.1
+ Revision: 86526
- bot rebuild
- bot rebuild
- bot rebuild
- Import gnome-db2.0

* Wed Nov 22 2006 Götz Waschk <waschk@mandriva.org> 1.99.1-1mdv2007.1
- update file list
- fix desktop entry
- bump deps
- New version 1.99.1

* Thu Aug 03 2006 Götz Waschk <waschk@mandriva.org> 1.9.102-3mdv2007.0
- fix sharp package

* Thu Aug 03 2006 Götz Waschk <waschk@mandriva.org> 1.9.102-2mdv2007.0
- enable mono
- xdg menu

* Sat Mar 25 2006 Götz Waschk <waschk@mandriva.org> 1.9.102-1mdk
- update file list
- bump deps
- New release 1.9.102

* Thu Mar 02 2006 Götz Waschk <waschk@mandriva.org> 1.9.100-2mdk
- Rebuild to remove howl dep

* Wed Feb 15 2006 Götz Waschk <waschk@mandriva.org> 1.9.100-1mdk
- update file list
- add sharp package
- spec cleanup
- new major
- new version

* Sat Dec 31 2005 Mandriva Linux Team <http://www.mandrivaexpert.com/> 1.2.2-2mdk
- Rebuild

* Wed Jun 15 2005 Götz Waschk <waschk@mandriva.org> 1.2.2-1mdk
- New release 1.2.2

* Thu Mar 03 2005 Götz Waschk <waschk@linux-mandrake.com> 1.2.1-1mdk
- New release 1.2.1

* Wed Jan 05 2005 Frederic Crozat <fcrozat@mandrakesoft.com> 1.2.0-2mdk 
- Rebuild with latest howl

* Tue Dec 28 2004 Götz Waschk <waschk@linux-mandrake.com> 1.2.0-1mdk
- major 4
- New release 1.2.0

* Wed Nov 10 2004 Götz Waschk <waschk@linux-mandrake.com> 1.1.99-1mdk
- major 1
- requires new gda
- New release 1.1.99

* Mon Aug 16 2004 Goetz Waschk <waschk@linux-mandrake.com> 1.1.6-1mdk
- New release 1.1.6

* Fri Jul 23 2004 Goetz Waschk <waschk@linux-mandrake.com> 1.1.5-1mdk
- New release 1.1.5

* Sat Jul 10 2004 Frederic Crozat <fcrozat@mandrakesoft.com> 1.1.4-2mdk
- Fix BuildRequires
- Fix icon name to not conflict with gnome-db 0.2.96

* Fri Jun 11 2004 Götz Waschk <waschk@linux-mandrake.com> 1.1.4-1mdk
- fix source URL
- New release 1.1.4

* Sat Jun 05 2004 Abel Cheung <deaddog@deaddog.org> 1.1.3-1mdk
- New version
- Use ImageMagick to convert icons
- Use UTF-8 for spec

* Wed Apr 28 2004 Götz Waschk <waschk@linux-mandrake.com> 1.1.2-1mdk
- build with evolution-data-server
- drop source 4
- new version

* Tue Apr 06 2004 Götz Waschk <waschk@linux-mandrake.com> 1.1.1-1mdk
- remove bonobo component (was removed)
- build with gtksourceview
- fix gtk-doc build
- enable gtk-doc
- requires new gda
- new version