libgnomekbd-vl.spec 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  1. Summary: A keyboard configuration library
  2. Summary(ja): キーボード設定ライブラリ
  3. Name: libgnomekbd
  4. Version: 2.30.0
  5. Release: 1%{?_dist_release}
  6. Group: System Environment/Libraries
  7. License: LGPL
  8. URL: http://gswitchit.sourceforce.net
  9. Source0: http://ftp.gnome.org/pub/gnome/sources/libgnomekbd/2.26/libgnomekbd-%{version}.tar.bz2
  10. # http://bugzilla.gnome.org/show_bug.cgi?id=365590
  11. Patch1: libgnomekbd-0.1-werror.patch
  12. # http://bugzilla.gnome.org/show_bug.cgi?id=353163
  13. Patch5: libgnomekbd-2.17.2-redraw.patch
  14. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  15. BuildRequires: dbus-devel >= 1.0
  16. BuildRequires: dbus-glib >= 0.73
  17. BuildRequires: GConf2-devel >= 2.26.0
  18. BuildRequires: gtk2-devel >= 2.16.0
  19. BuildRequires: libgnome-devel >= 2.26.0
  20. BuildRequires: libgnomeui-devel >= 2.24.0
  21. BuildRequires: libxklavier-devel >= 5.0
  22. BuildRequires: desktop-file-utils
  23. BuildRequires: perl(XML::Parser)
  24. BuildRequires: gettext
  25. Requires(pre): GConf2
  26. Requires(post): GConf2 gtk2
  27. Requires(preun): GConf2
  28. Requires(postun): gtk2
  29. %description
  30. The libgnomekbd package contains a GNOME library which manages
  31. keyboard configuration and offers various widgets related to
  32. keyboard configuration.
  33. %package devel
  34. Summary: Development files for %{name}
  35. Group: Development/Libraries
  36. Requires: %{name} = %{version}-%{release}
  37. Requires: libxklavier-devel >= 5.0
  38. Requires: libgnome-devel >= 2.24.0
  39. Requires: pkgconfig
  40. %description devel
  41. The libgnomekbd-devel package contains libraries and header files for
  42. developing applications that use libgnomekbd.
  43. %prep
  44. %setup -q
  45. %build
  46. %configure --disable-static --disable-schemas-install --enable-compile-warnings=no
  47. %__make %{?_smp_mflags}
  48. %install
  49. rm -rf $RPM_BUILD_ROOT
  50. make install DESTDIR=$RPM_BUILD_ROOT
  51. find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
  52. desktop-file-install --vendor gnome --delete-original \
  53. --dir $RPM_BUILD_ROOT%{_datadir}/applications \
  54. $RPM_BUILD_ROOT%{_datadir}/applications/gkbd-indicator-plugins-capplet.desktop
  55. %find_lang %{name}
  56. %clean
  57. rm -rf $RPM_BUILD_ROOT
  58. %post
  59. /sbin/ldconfig
  60. export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
  61. gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/desktop_gnome_peripherals_keyboard_xkb.schemas >& /dev/null || :
  62. touch --no-create %{_datadir}/icons/hicolor || :
  63. %posttrans
  64. %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
  65. %pre
  66. if [ "$1" -gt 1 ]; then
  67. export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
  68. gconftool-2 --makefile-uninstall-rule %{_sysconfdir}/gconf/schemas/desktop_gnome_peripherals_keyboard_xkb.schemas >& /dev/null || :
  69. fi
  70. %preun
  71. if [ "$1" -eq 0 ]; then
  72. export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
  73. gconftool-2 --makefile-uninstall-rule %{_sysconfdir}/gconf/schemas/desktop_gnome_peripherals_keyboard_xkb.schemas >& /dev/null || :
  74. fi
  75. %postun
  76. /sbin/ldconfig
  77. touch --no-create %{_datadir}/icons/hicolor || :
  78. %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
  79. %files -f %{name}.lang
  80. %defattr(-,root,root,-)
  81. %doc AUTHORS COPYING.LIB
  82. %{_libdir}/*.so.*
  83. %{_sysconfdir}/gconf/schemas/*
  84. %{_bindir}/gkbd-indicator-plugins-capplet
  85. %{_datadir}/applications/gnome-gkbd-indicator-plugins-capplet.desktop
  86. %{_datadir}/libgnomekbd
  87. #{_datadir}/icons/hicolor/48x48/apps/gkbd-indicator-plugins-capplet.png
  88. %files devel
  89. %defattr(-,root,root,-)
  90. %{_includedir}/*
  91. %{_libdir}/*.so
  92. %{_libdir}/pkgconfig/*
  93. %changelog
  94. * Wed Mar 31 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.30.0-1
  95. - new upstream release
  96. - fix BuildRequires: libxklavier-devel >= 5.0
  97. * Sun Mar 14 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.28.2-1
  98. - new upstream release
  99. * Sat Oct 31 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.28.0-1
  100. - new upstream release
  101. - remove BR: libglade2-devel
  102. * Sat Mar 21 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.26.0-1
  103. - new upstream release
  104. * Wed Sep 24 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.24.0-1
  105. - new upstream release
  106. * Sun Mar 30 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.22.0-1vl5
  107. - new upstream release
  108. * Thu Dec 13 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.20.0-0vl1
  109. - new upstream release
  110. * Fri Apr 27 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 2.18.0-0vl1
  111. - initial build for Vine Linux
  112. * Tue Mar 13 2007 Matthias Clasen <mclasen@redhat.com> - 2.18.0-1
  113. - Update to 2.18.0
  114. * Wed Jan 24 2007 Matthias Clasen <mclasen@redhat.com> - 2.17.2-2
  115. - Port former control-center patches to improve keyboard drawing
  116. * Tue Nov 7 2006 Matthias Clasen <mclasen@redhat.com> - 2.17.2-1
  117. - Update to 2.17.2
  118. * Tue Nov 7 2006 Matthias Clasen <mclasen@redhat.com> - 0.1-4
  119. - Fix up Requires
  120. * Thu Nov 2 2006 Matthias Clasen <mclasen@redhat.com> - 0.1-3
  121. - Don't use --Werror
  122. * Sat Oct 28 2006 Matthias Clasen <mclasen@redhat.com> - 0.1-2
  123. - Fix a memory allocation error
  124. * Sat Oct 28 2006 Matthias Clasen <mclasen@redhat.com> - 0.1-1
  125. - Initial release