mate-screensaver-vl.spec 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  1. Summary: Screensaver for MATE
  2. Name: mate-screensaver
  3. Version: 1.8.0
  4. Release: 2%{?_dist_release}
  5. Source0: http://pub.mate-desktop.org/releases/1.8/%{name}-%{version}.tar.xz
  6. Source1: %{name}.pam
  7. Patch1000: mate-screensaver-1.8.0-ja.po.patch
  8. License: GPLv2
  9. Group: User Interface/Desktops
  10. URL: http://mate-desktop.org/
  11. BuildRequires: mate-common
  12. BuildRequires: mate-doc-utils
  13. BuildRequires: mate-desktop-devel
  14. BuildRequires: mate-menus-devel
  15. BuildRequires: libmatekbd-devel
  16. BuildRequires: libnotify-devel
  17. BuildRequires: gtk2-devel
  18. BuildRequires: dbus-glib-devel
  19. BuildRequires: libSM-devel
  20. BuildRequires: libXScrnSaver-devel
  21. BuildRequires: libXxf86misc-devel
  22. BuildRequires: pam-devel
  23. BuildRequires: gtk-doc
  24. BuildRequires: autoconf
  25. BuildRequires: automake
  26. Requires(posttrans,postun): glib2
  27. Requires(post,postun): gtk2
  28. Requires(post,postun): desktop-file-utils
  29. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  30. Vendor: Project Vine
  31. Distribution: Vine Linux
  32. Packager: Takemikaduchi
  33. %description
  34. mate-screensaver is a screen saver and locker that aims to have
  35. simple, sane, secure defaults and be well integrated with the desktop.
  36. It is designed to support:
  37. * the ability to lock down configuration settings
  38. * translation into many languages
  39. * user switching
  40. %package devel
  41. Summary: Development tools for mate-screensaver
  42. Summary(ja): mate-screensaver の開発環境
  43. Group: Development/Libraries
  44. Requires: %{name} = %{version}-%{release}
  45. Requires: pkgconfig
  46. %description devel
  47. Header files and libraries for building a extension library for the
  48. mate-screensaver.
  49. %prep
  50. %setup -q
  51. %patch1000 -p1
  52. %build
  53. (if ! test -x configure; then NOCONFIGURE=1 ./autogen.sh; fi)
  54. %configure \
  55. --libexecdir=%{_libexecdir}/mate \
  56. --disable-static \
  57. --without-systemd \
  58. --enable-pam=yes
  59. %{__make} %{?_smp_mflags}
  60. %install
  61. %{__rm} -rf ${RPM_BUILD_ROOT}
  62. %{__make} install DESTDIR=${RPM_BUILD_ROOT}
  63. mkdir -p ${RPM_BUILD_ROOT}%{_sysconfdir}/pam.d
  64. install -m 644 %{SOURCE1} ${RPM_BUILD_ROOT}%{_sysconfdir}/pam.d/mate-screensaver
  65. find $RPM_BUILD_ROOT -name '*.a' -exec rm -f {} \;
  66. find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} \;
  67. # conflict with gnome-screensaver
  68. %{__rm} -rf ${RPM_BUILD_ROOT}%{_datadir}/backgrounds/cosmos
  69. %{__rm} -f ${RPM_BUILD_ROOT}%{_datadir}/pixmaps/gnome-logo-white.svg
  70. %find_lang %{name}
  71. %clean
  72. %{__rm} -rf ${RPM_BUILD_ROOT}
  73. %post
  74. /sbin/ldconfig
  75. update-desktop-database %{_datadir}/applications >& /dev/null ||:
  76. touch --no-create %{_datadir}/icons/hicolor
  77. gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor ||:
  78. %postun
  79. /sbin/ldconfig
  80. if [ $1 -eq 0 ]; then
  81. update-desktop-database %{_datadir}/applications >& /dev/null ||:
  82. touch --no-create %{_datadir}/icons/hicolor
  83. gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor ||:
  84. glib-compile-schemas %{_datadir}/glib-2.0/schemas ||:
  85. fi
  86. %posttrans
  87. glib-compile-schemas %{_datadir}/glib-2.0/schemas ||:
  88. %files -f %{name}.lang
  89. %defattr(-,root,root,-)
  90. %doc COPYING ChangeLog NEWS README
  91. %{_sysconfdir}/pam.d/mate-screensaver
  92. %{_sysconfdir}/xdg/autostart/mate-screensaver.desktop
  93. %{_sysconfdir}/xdg/menus/mate-screensavers.menu
  94. %{_bindir}/mate-screensaver
  95. %{_bindir}/mate-screensaver-command
  96. %{_bindir}/mate-screensaver-preferences
  97. %{_libexecdir}/mate/mate-screensaver
  98. %{_libexecdir}/mate/mate-screensaver-dialog
  99. %{_libexecdir}/mate/mate-screensaver-gl-helper
  100. %{_datadir}/MateConf/gsettings/org.mate.screensaver.gschema.migrate
  101. %{_datadir}/applications/mate-screensaver-preferences.desktop
  102. %{_datadir}/applications/screensavers/*.desktop
  103. %{_datadir}/dbus-1/services/org.mate.ScreenSaver.service
  104. %{_datadir}/desktop-directories/mate-screensaver.directory
  105. %{_datadir}/glib-2.0/schemas/org.mate.screensaver.gschema.xml
  106. %{_datadir}/mate-background-properties/cosmos.xml
  107. %{_datadir}/%{name}
  108. %{_datadir}/pixmaps/mate-logo-white.svg
  109. %{_mandir}/man1/*.1.gz
  110. %files devel
  111. %defattr(-,root,root,-)
  112. %{_libdir}/pkgconfig/mate-screensaver.pc
  113. %changelog
  114. * Wed Apr 16 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.8.0-2
  115. - add Patch1000 (mate-screensaver-1.8.0-ja.po.patch)
  116. * Wed Apr 16 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.8.0-1
  117. - new upstream release
  118. * Sun Dec 29 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.6.1-2
  119. - rebuild with VineSeed environment
  120. * Sun Sep 22 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.6.1-1
  121. - new upstream release
  122. * Sun May 19 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.6.0-1
  123. - new upstream release
  124. - remove BuildRequires: mate-conf-devel, libmatenotify-devel
  125. - add BuildRequires: libnotify-devel, pam-devel
  126. * Thu Aug 02 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.4.0-1
  127. - new upstream release
  128. * Sat May 12 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.2.0-1
  129. - new upstream release
  130. * Fri Dec 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.1.0-2
  131. - change category
  132. * Fri Dec 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.1.0-1
  133. - initial build for Vine Linux