mate-control-center-vl.spec 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  1. Summary: The Control Center for MATE
  2. Name: mate-control-center
  3. Version: 1.1.0
  4. Release: 2%{?_dist_release}
  5. Source0: %{name}-%{version}.tar.xz
  6. License: GPLv2
  7. Group: User Interface/Desktops
  8. URL: https://matsusoft.com.ar/projects/mate/
  9. BuildRequires: mate-common
  10. BuildRequires: mate-doc-utils
  11. BuildRequires: mate-conf-devel
  12. BuildRequires: mate-desktop-devel
  13. BuildRequires: mate-menus-devel
  14. BuildRequires: mate-window-manager-devel
  15. BuildRequires: mate-settings-daemon-devel
  16. BuildRequires: libmatekbd-devel
  17. BuildRequires: gtk2-devel
  18. BuildRequires: libxml2-devel
  19. BuildRequires: libSM-devel
  20. BuildRequires: libXScrnSaver-devel
  21. BuildRequires: libXext-devel
  22. BuildRequires: libXxf86misc-devel
  23. BuildRequires: libcanberra-devel
  24. BuildRequires: unique-devel
  25. BuildRequires: desktop-file-utils
  26. BuildRequires: gtk-doc
  27. BuildRequires: autoconf
  28. BuildRequires: automake
  29. Requires(post,pre,preun): mate-conf
  30. Requires(post,postun): desktop-file-utils
  31. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  32. Vendor: Project Vine
  33. Distribution: Vine Linux
  34. Packager: Takemikaduchi
  35. %description
  36. The control center is MATE's main interface for configuration of various
  37. aspects of your desktop.
  38. %package devel
  39. Summary: Development tools for mate-control-center
  40. Summary(ja): mate-control-center の開発環境
  41. Group: Development/Libraries
  42. Requires: %{name} = %{version}-%{release}
  43. Requires: pkgconfig
  44. %description devel
  45. Header files and libraries for building a extension library for the
  46. mate-control-center.
  47. %prep
  48. %setup -q
  49. %build
  50. (if ! test -x configure; then NOCONFIGURE=1 ./autogen.sh; fi)
  51. %configure \
  52. --disable-static \
  53. --disable-scrollkeeper \
  54. --disable-update-mimedb
  55. %{__make} %{?_smp_mflags}
  56. %install
  57. %{__rm} -rf ${RPM_BUILD_ROOT}
  58. export MATECONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
  59. %{__make} install DESTDIR=${RPM_BUILD_ROOT}
  60. unset MATECONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
  61. find $RPM_BUILD_ROOT -name '*.a' -exec rm -f {} \;
  62. find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} \;
  63. %{__rm} -f ${RPM_BUILD_ROOT}%{_datadir}/applications/mimeinfo.cache
  64. %find_lang %{name}-2.0
  65. %clean
  66. %{__rm} -rf ${RPM_BUILD_ROOT}
  67. %post
  68. /sbin/ldconfig
  69. export MATECONF_CONFIG_SOURCE=`mateconftool-2 --get-default-source`
  70. SCHEMAS=" \
  71. fontilus.schemas \
  72. mate-control-center.schemas"
  73. for S in $SCHEMAS; do
  74. echo %{_sysconfdir}/mateconf/schemas/$S; done \
  75. | xargs mateconftool-2 --makefile-install-rule >& /dev/null ||:
  76. update-desktop-database %{_datadir}/applications >& /dev/null ||:
  77. touch --no-create %{_datadir}/icons/hicolor
  78. if [ -x /usr/bin/gtk-update-icon-cache ]; then
  79. /usr/bin/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor ||:
  80. fi
  81. %pre
  82. if [ "$1" -gt 1 ]; then
  83. export MATECONF_CONFIG_SOURCE=`mateconftool-2 --get-default-source`
  84. SCHEMAS=" \
  85. fontilus.schemas \
  86. mate-control-center.schemas"
  87. for S in $SCHEMAS; do
  88. echo %{_sysconfdir}/mateconf/schemas/$S; done \
  89. | xargs mateconftool-2 --makefile-uninstall-rule >& /dev/null ||:
  90. fi
  91. %preun
  92. if [ "$1" -eq 0 ]; then
  93. export MATECONF_CONFIG_SOURCE=`mateconftool-2 --get-default-source`
  94. SCHEMAS=" \
  95. fontilus.schemas \
  96. mate-control-center.schemas"
  97. for S in $SCHEMAS; do
  98. echo %{_sysconfdir}/mateconf/schemas/$S; done \
  99. | xargs mateconftool-2 --makefile-uninstall-rule >& /dev/null ||:
  100. fi
  101. %postun
  102. /sbin/ldconfig
  103. update-desktop-database %{_datadir}/applications >& /dev/null ||:
  104. touch --no-create %{_datadir}/icons/hicolor
  105. if [ -x /usr/bin/gtk-update-icon-cache ]; then
  106. /usr/bin/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor ||:
  107. fi
  108. %files -f %{name}-2.0.lang
  109. %defattr(-,root,root,-)
  110. %doc COPYING ChangeLog NEWS README
  111. %{_sysconfdir}/mateconf/schemas/fontilus.schemas
  112. %{_sysconfdir}/mateconf/schemas/mate-control-center.schemas
  113. %{_sysconfdir}/xdg/autostart/mate-at-session.desktop
  114. %{_bindir}/mate-*
  115. %{_libdir}/libmate-window-settings.so.*
  116. %{_libdir}/window-manager-settings/libmarco.so
  117. %{_sbindir}/mate-display-properties-install-systemwide
  118. %{_datadir}/applications/*.desktop
  119. %{_datadir}/icons/hicolor/*/*/*
  120. %{_datadir}/mate/cursor-fonts/*
  121. %{_datadir}/mate/help/%{name}
  122. %{_datadir}/%{name}
  123. %{_datadir}/mime/packages/mate-theme-package.xml
  124. %{_datadir}/omf/%{name}
  125. %{_datadir}/polkit-1/actions/org.mate.randr.policy
  126. %files devel
  127. %defattr(-,root,root,-)
  128. %{_includedir}/mate-window-settings-2.0
  129. %{_libdir}/libmate-window-settings.so
  130. %{_libdir}/pkgconfig/mate-window-settings-2.0.pc
  131. %{_datadir}/pkgconfig/mate-default-applications.pc
  132. %{_datadir}/pkgconfig/mate-keybindings.pc
  133. %changelog
  134. * Fri Dec 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.1.0-2
  135. - change category
  136. * Fri Dec 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.1.0-1
  137. - initial build for Vine Linux