libgnomekbd-vl.spec 5.3 KB

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