libgnomedb-vl.spec 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206
  1. Summary: Library for writing gnome database programs
  2. Name: libgnomedb
  3. Version: 3.1.2
  4. Release: 1%{?_dist_release}
  5. Source: %{name}-%{version}.tar.bz2
  6. Patch0: libgnomedb-3.1.2-desktop.patch
  7. URL: http://www.gnome-db.org/
  8. Group: System Environment/Libraries
  9. License: LGPL
  10. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  11. Requires: libgda >= 3.0.0
  12. Requires: gtk2 >= 2.6.0
  13. Requires: libglade2
  14. Requires: gtksourceview
  15. Requires(post,pre,preun): GConf2
  16. BuildRequires: GConf2-devel
  17. BuildRequires: gtk2-devel >= 2.6.0
  18. BuildRequires: libgda-devel >= 3.0.0
  19. BuildRequires: libgcrypt-devel
  20. BuildRequires: libgnomecanvas-devel
  21. BuildRequires: iso-codes
  22. BuildRequires: libglade2-devel
  23. BuildRequires: intltool >= 0.30
  24. BuildRequires: gtk-doc >= 1.0
  25. BuildRequires: gtksourceview-devel
  26. BuildRequires: desktop-file-utils
  27. BuildRequires: gamin-devel
  28. BuildRequires: pkgconfig >= 0.8
  29. %description
  30. libgnomedb is a library that eases the task of writing
  31. gnome database programs.
  32. %package devel
  33. Summary: Development libraries and header files for libgnomedb.
  34. Group: Development/Libraries
  35. Requires: %name = %{version}
  36. Requires: pkgconfig >= 0.8
  37. Requires: gtk2-devel >= 2.6.0
  38. Requires: libgda-devel >= 3.0.0
  39. Requires: libgnomecanvas-devel
  40. Requires: libglade2-devel
  41. Requires: gtksourceview-devel
  42. Requires: iso-codes
  43. Requires(post,postun): scrollkeeper
  44. %description devel
  45. This package contains the header files and libraries needed to write
  46. or compile programs that use libgda.
  47. %prep
  48. %setup -q -n %{name}-%{version}
  49. %patch0 -p1 -b .desktop.patch
  50. %build
  51. %configure --disable-schemas-install
  52. make
  53. %install
  54. rm -rf %{buildroot}
  55. export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
  56. make install DESTDIR=$RPM_BUILD_ROOT
  57. unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
  58. %find_lang libgnomedb-3.0
  59. #desktop-file-install \
  60. # --dir %{buildroot}%{_datadir}/applications \
  61. # --vendor gnome --delete-original \
  62. # %{buildroot}%{_datadir}/applications/database-properties.desktop
  63. # remove unpackaged files
  64. rm -f %{buildroot}/%{_libdir}/*.la
  65. rm -f %{buildroot}/%{_libdir}/gnome-db-3.0/plugins/*.{a,la}
  66. rm -f %{buildroot}/%{_libdir}/libglade/2.0/*.{a,la}
  67. %post
  68. /sbin/ldconfig
  69. export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
  70. /usr/bin/gconftool-2 --makefile-install-rule \
  71. %{_sysconfdir}/gconf/schemas/libgnomedb-3.0.schemas > /dev/null || :
  72. %pre
  73. if [ "$1" -gt 1 ]; then
  74. export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
  75. gconftool-2 --makefile-uninstall-rule \
  76. %{_sysconfdir}/gconf/schemas/libgnomedb-3.0.schemas \
  77. > /dev/null || :
  78. fi
  79. %preun
  80. if [ "$1" -eq 0 ]; then
  81. export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
  82. gconftool-2 --makefile-uninstall-rule \
  83. %{_sysconfdir}/gconf/schemas/libgnomedb-3.0.schemas \
  84. > /dev/null || :
  85. fi
  86. %postun -p /sbin/ldconfig
  87. %post devel
  88. if which scrollkeeper-update >/dev/null 2>&1; then scrollkeeper-update; fi
  89. %postun devel
  90. if which scrollkeeper-update >/dev/null 2>&1; then scrollkeeper-update; fi
  91. %clean
  92. rm -rf %{buildroot}
  93. %files -f libgnomedb-3.0.lang
  94. %defattr(-,root,root)
  95. %doc AUTHORS COPYING ChangeLog README NEWS
  96. %{_bindir}/*
  97. %{_datadir}/applications/*.desktop
  98. %dir %{_datadir}/gnome-db-3.0
  99. %{_datadir}/gnome-db-3.0/*
  100. %{_datadir}/pixmaps/*
  101. %{_libdir}/lib*.so.*
  102. %{_libdir}/libglade/2.0/lib*.so
  103. %dir %{_libdir}/gnome-db-3.0/plugins
  104. %{_libdir}/gnome-db-3.0/plugins/lib*.so
  105. %config(noreplace) %{_sysconfdir}/gconf/schemas/*.schemas
  106. %files devel
  107. %defattr(-,root,root)
  108. %{_includedir}/libgnomedb-3.0
  109. %{_libdir}/*.a
  110. #{_libdir}/*.la
  111. %{_libdir}/*.so
  112. #{_libdir}/libglade/2.0/lib*.a
  113. #{_libdir}/libgnomedb/plugins/lib*.so
  114. %{_libdir}/pkgconfig/*.pc
  115. %{_datadir}/omf/*
  116. %{_datadir}/gtk-doc/*
  117. %changelog
  118. * Mon Jun 23 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.1.2-1
  119. - new upstream release
  120. - updated Patch0
  121. * Sat Dec 29 2007 Shu KONNO <owa@bg.wakwak.com> 1.9.100-0vl6
  122. - updated libgnomedb-*-desktop.patch
  123. * Sun May 27 2007 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.9.100-0vl5
  124. - add BuildRequires: libgda-sharp, gtk-doc
  125. * Tue May 22 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.9.100-0vl4
  126. - rebuilt with new toolchains
  127. * Wed Nov 1 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.9.100-0vl3
  128. - added Patch0,1,2 and 3 from Fedora
  129. * Thu May 4 2006 Hans de Goede <j.w.r.degoede@hhs.nl> 1:1.9.100-7
  130. - Add patch3 fixing a couple of x86_64 bugs (bz 190366)
  131. * Mon Feb 13 2006 Hans de Goede <j.w.r.degoede@hhs.nl> 1:1.9.100-5
  132. - Attempt to properly install C-sharp/mono bindings
  133. * Fri Mar 24 2006 Hans de Goede <j.w.r.degoede@hhs.nl> 1:1.9.100-6
  134. - Add patch2 fixing bz 186517
  135. * Mon Feb 21 2005 Caolan McNamara <caolanm@redhat.com> 1.2.0-2
  136. - rh#149232#/rh#149222# install .desktop to /usr/share/applications
  137. * Sun Jun 18 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.9.100-0vl2
  138. - rebuilt with gamin-devel
  139. * Wed Feb 1 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.9.100-0vl1
  140. - new upstream release
  141. - added development document to devel
  142. * Fri Feb 11 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.2.0-0vl1
  143. - new upstream release
  144. * Sun Aug 22 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.1.6-0vl1
  145. - new upstream release
  146. - re-define __libtoolize to compile shared object
  147. * Sun Mar 28 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.0.3-0vl1
  148. - new upstream release
  149. - to use intltool 0.30
  150. * Sat Dec 6 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.0.2-0vl1
  151. - new upstream release
  152. * Fri Oct 17 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.0.1-0vl1
  153. - new upstream release
  154. * Sat Sep 27 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.0.0-1vl1
  155. - build for Vine Linux
  156. * Tue Jan 28 2003 Yanko Kaneti <yaneti@delcera.com>
  157. - Package and add the omf/scrollkeeper bits.
  158. - --disable-gtk-doc to configure because the generated docs are in the tarball
  159. * Mon Aug 19 2002 Ben Liblit <liblit@acm.org>
  160. - Fixed version number substitutions
  161. - Updated files list to match what "make install" actually installs
  162. - Added URL tag pointing to GNOME-DB project's web site
  163. * Mon Feb 25 2002 Chris Chabot <chabotc@reviewboard.com>
  164. - Cleaned up formatting
  165. - Added requirements
  166. * Thu Feb 21 2002 Chris Chabot <chabotc@reviewboard.com>
  167. - Initial spec file