mate-notification-daemon-vl.spec 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. Summary: Notification daemon for MATE
  2. Name: mate-notification-daemon
  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: libmatenotify-devel
  12. BuildRequires: gtk2-devel
  13. BuildRequires: dbus-devel
  14. BuildRequires: dbus-glib-devel
  15. BuildRequires: libcanberra-devel
  16. BuildRequires: libwnck-devel
  17. BuildRequires: gtk-doc
  18. BuildRequires: autoconf
  19. BuildRequires: automake
  20. Requires(post,pre,preun): mate-conf
  21. Requires(post,postun): desktop-file-utils
  22. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  23. Vendor: Project Vine
  24. Distribution: Vine Linux
  25. Packager: Takemikaduchi
  26. %description
  27. %package devel
  28. Summary: Development tools for mate-notification-daemon
  29. Summary(ja): mate-notification-daemon の開発環境
  30. Group: Development/Libraries
  31. Requires: %{name} = %{version}-%{release}
  32. Requires: pkgconfig
  33. %description devel
  34. Header files and libraries for building a extension library for the
  35. mate-notification-daemon.
  36. %package doc
  37. Summary: Documentation for mate-notification-daemon
  38. Summary(ja): mate-notification-daemon 用のドキュメント
  39. Group: Documentation
  40. Requires: %{name} = %{version}-%{release}
  41. BuildArch: noarch
  42. %description doc
  43. This package contains documentation for mate-notification-daemon.
  44. %prep
  45. %setup -q
  46. %build
  47. (if ! test -x configure; then NOCONFIGURE=1 ./autogen.sh; fi)
  48. %configure \
  49. --libexecdir=%{_libexecdir}/mate \
  50. --disable-static \
  51. --disable-scrollkeeper
  52. %{__make} %{?_smp_mflags}
  53. %install
  54. %{__rm} -rf ${RPM_BUILD_ROOT}
  55. export MATECONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
  56. %{__make} install DESTDIR=${RPM_BUILD_ROOT}
  57. unset MATECONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
  58. find $RPM_BUILD_ROOT -name '*.a' -exec rm -f {} \;
  59. find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} \;
  60. %find_lang %{name}
  61. %clean
  62. %{__rm} -rf ${RPM_BUILD_ROOT}
  63. %post
  64. /sbin/ldconfig
  65. export MATECONF_CONFIG_SOURCE=`mateconftool-2 --get-default-source`
  66. SCHEMAS=" \
  67. mate-notification-daemon.schemas"
  68. for S in $SCHEMAS; do
  69. echo %{_sysconfdir}/mateconf/schemas/$S; done \
  70. | xargs mateconftool-2 --makefile-install-rule >& /dev/null ||:
  71. update-desktop-database %{_datadir}/applications >& /dev/null ||:
  72. touch --no-create %{_datadir}/icons/hicolor
  73. if [ -x /usr/bin/gtk-update-icon-cache ]; then
  74. /usr/bin/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor ||:
  75. fi
  76. %pre
  77. if [ "$1" -gt 1 ]; then
  78. export MATECONF_CONFIG_SOURCE=`mateconftool-2 --get-default-source`
  79. SCHEMAS=" \
  80. mate-notification-daemon.schemas"
  81. for S in $SCHEMAS; do
  82. echo %{_sysconfdir}/mateconf/schemas/$S; done \
  83. | xargs mateconftool-2 --makefile-uninstall-rule >& /dev/null ||:
  84. fi
  85. %preun
  86. if [ "$1" -eq 0 ]; then
  87. export MATECONF_CONFIG_SOURCE=`mateconftool-2 --get-default-source`
  88. SCHEMAS=" \
  89. mate-notification-daemon.schemas"
  90. for S in $SCHEMAS; do
  91. echo %{_sysconfdir}/mateconf/schemas/$S; done \
  92. | xargs mateconftool-2 --makefile-uninstall-rule >& /dev/null ||:
  93. fi
  94. %postun
  95. /sbin/ldconfig
  96. update-desktop-database %{_datadir}/applications >& /dev/null ||:
  97. touch --no-create %{_datadir}/icons/hicolor
  98. if [ -x /usr/bin/gtk-update-icon-cache ]; then
  99. /usr/bin/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor ||:
  100. fi
  101. %files -f %{name}.lang
  102. %defattr(-,root,root,-)
  103. %doc COPYING ChangeLog NEWS README
  104. %{_sysconfdir}/mateconf/schemas/mate-notification-daemon.schemas
  105. %{_bindir}/mate-notification-properties
  106. %{_libdir}/mate-notification-daemon/engines/libslider.so
  107. %{_libdir}/mate-notification-daemon/engines/libstandard.so
  108. %{_libexecdir}/mate/mate-notification-daemon
  109. %{_datadir}/applications/mate-notification-properties.desktop
  110. %{_datadir}/dbus-1/services/org.freedesktop.mate.Notifications.service
  111. %{_datadir}/icons/hicolor/*/*/*
  112. %{_datadir}/mate-notification-daemon/mate-notification-properties.ui
  113. %changelog
  114. * Fri Dec 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.1.0-1
  115. - initial build for Vine Linux