libmatekbd-vl.spec 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. Summary: MATE keyboard shared library
  2. Name: libmatekbd
  3. Version: 1.1.0
  4. Release: 1%{?_dist_release}
  5. Source0: %{name}-%{version}.tar.xz
  6. License: GPLv2
  7. Group: System Environment/Libraries
  8. URL: https://matsusoft.com.ar/projects/mate/
  9. BuildRequires: mate-common
  10. BuildRequires: mate-conf-devel
  11. BuildRequires: gtk2-devel
  12. BuildRequires: libxklavier-devel
  13. BuildRequires: autoconf
  14. BuildRequires: automake
  15. Requires(post,pre,preun): mate-conf
  16. Requires(post,postun): desktop-file-utils
  17. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  18. Vendor: Project Vine
  19. Distribution: Vine Linux
  20. Packager: Takemikaduchi
  21. %description
  22. MATE keyboard shared library
  23. %package devel
  24. Summary: Development tools for libmatekbd
  25. Summary(ja): libmatekbd の開発環境
  26. Group: Development/Libraries
  27. Requires: %{name} = %{version}-%{release}
  28. Requires: pkgconfig
  29. %description devel
  30. Header files and libraries for building a extension library for the
  31. libmatekbd.
  32. %prep
  33. %setup -q
  34. %build
  35. (if ! test -x configure; then NOCONFIGURE=1 ./autogen.sh; fi)
  36. %configure \
  37. --disable-static \
  38. %{__make} %{?_smp_mflags}
  39. %install
  40. %{__rm} -rf ${RPM_BUILD_ROOT}
  41. export MATECONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
  42. %{__make} install DESTDIR=${RPM_BUILD_ROOT}
  43. unset MATECONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
  44. find $RPM_BUILD_ROOT -name '*.a' -exec rm -f {} \;
  45. find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} \;
  46. %find_lang %{name}
  47. %clean
  48. %{__rm} -rf ${RPM_BUILD_ROOT}
  49. %post
  50. /sbin/ldconfig
  51. export MATECONF_CONFIG_SOURCE=`mateconftool-2 --get-default-source`
  52. SCHEMAS=" \
  53. desktop_mate_peripherals_keyboard_xkb.schemas"
  54. for S in $SCHEMAS; do
  55. echo %{_sysconfdir}/mateconf/schemas/$S; done \
  56. | xargs mateconftool-2 --makefile-install-rule >& /dev/null ||:
  57. update-desktop-database %{_datadir}/applications >& /dev/null ||:
  58. %pre
  59. if [ "$1" -gt 1 ]; then
  60. export MATECONF_CONFIG_SOURCE=`mateconftool-2 --get-default-source`
  61. SCHEMAS=" \
  62. desktop_mate_peripherals_keyboard_xkb.schemas"
  63. for S in $SCHEMAS; do
  64. echo %{_sysconfdir}/mateconf/schemas/$S; done \
  65. | xargs mateconftool-2 --makefile-uninstall-rule >& /dev/null ||:
  66. fi
  67. %preun
  68. if [ "$1" -eq 0 ]; then
  69. export MATECONF_CONFIG_SOURCE=`mateconftool-2 --get-default-source`
  70. SCHEMAS=" \
  71. desktop_mate_peripherals_keyboard_xkb.schemas"
  72. for S in $SCHEMAS; do
  73. echo %{_sysconfdir}/mateconf/schemas/$S; done \
  74. | xargs mateconftool-2 --makefile-uninstall-rule >& /dev/null ||:
  75. fi
  76. %postun
  77. /sbin/ldconfig
  78. update-desktop-database %{_datadir}/applications >& /dev/null ||:
  79. %files -f %{name}.lang
  80. %defattr(-,root,root,-)
  81. %doc COPYING.LIB ChangeLog NEWS README
  82. %{_sysconfdir}/mateconf/schemas/desktop_mate_peripherals_keyboard_xkb.schemas
  83. %{_bindir}/matekbd-indicator-plugins-capplet
  84. %{_libdir}/libmatekbd*.so.*
  85. %{_datadir}/applications/matekbd-indicator-plugins-capplet.desktop
  86. %{_datadir}/libmatekbd/ui/*.ui
  87. %files devel
  88. %defattr(-,root,root,-)
  89. %{_includedir}/libmatekbd
  90. %{_libdir}/libmatekbd*.so
  91. %{_libdir}/pkgconfig/libmatekbd.pc
  92. %{_libdir}/pkgconfig/libmatekbdui.pc
  93. %changelog
  94. * Fri Dec 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.1.0-1
  95. - initial build for Vine Linux