libgnomekbd-vl.spec 5.4 KB

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