mutter-vl.spec 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. %define pkg_version 3.1.4
  2. %define pkg_release 1%{?_dist_release}
  3. Summary: Window and compositing manager based on Clutter
  4. Name: mutter
  5. Version: %{pkg_version}
  6. Release: %{pkg_release}
  7. Source0: %{name}-%{version}.tar.xz
  8. Patch101: mutter-vine-customize.patch
  9. License: GPLv2+
  10. Group: User Interface/Desktops
  11. URL: http://git.gnome.org/browse/mutter
  12. Requires(post,postun): scrollkeeper >= 0.1.4
  13. Requires(post,pre,preun): GConf2 >= 2.14
  14. BuildRequires: pkgconfig
  15. BuildRequires: gtk3-devel
  16. BuildRequires: clutter-devel
  17. BuildRequires: libSM-devel
  18. BuildRequires: GConf2-devel
  19. BuildRequires: gobject-introspection-devel
  20. BuildRequires: python-devel
  21. BuildRequires: startup-notification-devel
  22. BuildRequires: libcanberra-gtk3-devel
  23. BuildRequires: gnome-doc-utils
  24. BuildRequires: desktop-file-utils
  25. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  26. Vendor: Project Vine
  27. Distribution: Vine Linux
  28. Packager: Takemikaduchi
  29. %description
  30. Mutter is a minimal X window manager aimed at nontechnical users and is designed to integrate well with the GNOME desktop. Mutter lacks some features that may be expected by traditional UNIX or other technical users; these users may want to investigate other available window managers for use with GNOME or standalone.
  31. %package devel
  32. Summary: Development files of the mutter library.
  33. Group: Development/Libraries
  34. Requires: %{name} = %{version}-%{release}
  35. Requires: pkgconfig
  36. Requires: gtk-doc
  37. Requires: clutter-devel
  38. %description devel
  39. Development files of the mutter library.
  40. %prep
  41. %setup -q
  42. %patch101 -p1 -b .vine
  43. %build
  44. %configure --disable-static
  45. %{__make} %{?_smp_mflags}
  46. %install
  47. %{__rm} -rf ${RPM_BUILD_ROOT}
  48. %{__make} install DESTDIR=${RPM_BUILD_ROOT}
  49. %find_lang %{name}
  50. find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
  51. %clean
  52. %{__rm} -rf ${RPM_BUILD_ROOT}
  53. %post
  54. /sbin/ldconfig
  55. export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
  56. gconftool-2 --makefile-install-rule \
  57. %{_sysconfdir}/gconf/schemas/mutter.schemas \
  58. > /dev/null || :
  59. /sbin/ldconfig
  60. touch --no-create %{_datadir}/icons/hicolor
  61. if [ -x /usr/bin/gtk-update-icon-cache ]; then
  62. gtk-update-icon-cache -q %{_datadir}/icons/hicolor
  63. fi
  64. %pre
  65. if [ "$1" -gt 1 ]; then
  66. export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
  67. gconftool-2 --makefile-uninstall-rule \
  68. %{_sysconfdir}/gconf/schemas/mutter.schemas \
  69. > /dev/null || :
  70. fi
  71. %preun
  72. if [ "$1" -eq 0 ]; then
  73. export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
  74. gconftool-2 --makefile-uninstall-rule \
  75. %{_sysconfdir}/gconf/schemas/mutter.schemas \
  76. > /dev/null || :
  77. fi
  78. %postun
  79. scrollkeeper-update -q || :
  80. /sbin/ldconfig
  81. touch --no-create %{_datadir}/icons/hicolor
  82. if [ -x /usr/bin/gtk-update-icon-cache ]; then
  83. gtk-update-icon-cache -q %{_datadir}/icons/hicolor
  84. fi
  85. %files -f %{name}.lang
  86. %defattr(-,root,root)
  87. %doc COPYING ChangeLog NEWS README
  88. %{_bindir}/mutter
  89. %{_bindir}/mutter-message
  90. %{_libdir}/lib*.so.*
  91. %{_libdir}/mutter/*
  92. %{_datadir}/applications/*
  93. %{_datadir}/gnome/wm-properties/*
  94. %{_datadir}/mutter/*
  95. %{_sysconfdir}/gconf/schemas/*
  96. %{_mandir}/man1/mutter.1.gz
  97. %{_mandir}/man1/mutter-message.1.gz
  98. %files devel
  99. %defattr(-,root,root,-)
  100. %{_bindir}/mutter-theme-viewer
  101. %{_bindir}/mutter-window-demo
  102. %{_includedir}/mutter/*
  103. %{_libdir}/lib*.so
  104. %{_libdir}/pkgconfig/*
  105. %{_mandir}/man1/mutter-theme-viewer.1.gz
  106. %{_mandir}/man1/mutter-window-demo.1.gz
  107. %changelog
  108. * Fri Aug 12 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.1.4-1
  109. - new upstream release
  110. - change BuildRequires: gobject-introspection-devel instead of gir-repository-devel
  111. - change BuildRequires: gtk3-devel instead of gtk2-devel
  112. - change BuildRequires: libcanberra-gtk3-devel instead of libcanberra-devel
  113. - add Patch101 (mutter-vine-customize.patch)
  114. * Thu Sep 23 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.29.1-2
  115. - rebuild with rpm-4.8.1 for pkg-config file
  116. * Thu Apr 29 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.29.1-1
  117. - new upstream release
  118. - add BuildRequires: libcanberra-devel
  119. - Requires: clutter-devel (devel package)
  120. * Sun Feb 28 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.28.0-1
  121. - initial build for Vine Linux