mate-screensaver-vl.spec 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235
  1. Summary: Screensaver for MATE
  2. Name: mate-screensaver
  3. Version: 1.20.3
  4. Release: 1%{?_dist_release}
  5. %define shortver %(echo %{version} | sed -e 's/\\.[0-9]*$//')
  6. Source0: https://pub.mate-desktop.org/releases/%{shortver}/%{name}-%{version}.tar.xz
  7. Source1: %{name}.pam
  8. License: GPLv2 and LGPLv2
  9. Group: User Interface/Desktops
  10. URL: http://mate-desktop.org/
  11. # for Vine Linux
  12. Patch1001: mate-screensaver-1.12.0-accountsservice.patch
  13. Patch1002: mate-elogind.patch
  14. BuildRequires: mate-common
  15. BuildRequires: mate-desktop-devel >= 1.17.0
  16. BuildRequires: mate-menus-devel
  17. BuildRequires: libmatekbd-devel
  18. BuildRequires: libnotify-devel
  19. BuildRequires: gtk3-devel
  20. BuildRequires: dbus-glib-devel
  21. BuildRequires: libSM-devel
  22. BuildRequires: libXScrnSaver-devel
  23. BuildRequires: libXxf86misc-devel
  24. BuildRequires: pam-devel
  25. BuildRequires: accountsservice-devel
  26. BuildRequires: gtk-doc
  27. BuildRequires: autoconf
  28. BuildRequires: automake
  29. BuildRequires: elogind-devel
  30. Requires(posttrans,postun): glib2
  31. Requires(post,postun): gtk2
  32. Requires(post,postun): desktop-file-utils
  33. Requires: accountsservice
  34. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  35. Vendor: Project Vine
  36. Distribution: Vine Linux
  37. Packager: iwaim
  38. %description
  39. mate-screensaver is a screen saver and locker that aims to have
  40. simple, sane, secure defaults and be well integrated with the desktop.
  41. It is designed to support:
  42. * the ability to lock down configuration settings
  43. * translation into many languages
  44. * user switching
  45. %package devel
  46. Summary: Development tools for mate-screensaver
  47. Summary(ja): mate-screensaver の開発環境
  48. Group: Development/Libraries
  49. Requires: %{name} = %{version}-%{release}
  50. Requires: pkgconfig
  51. %description devel
  52. Header files and libraries for building a extension library for the
  53. mate-screensaver.
  54. %prep
  55. %setup -q
  56. %patch1001 -p1 -b .vine
  57. %patch1002 -p1 -b .elogind
  58. %build
  59. NOCONFIGURE=1 ./autogen.sh
  60. %configure \
  61. --libexecdir=%{_libexecdir}/mate \
  62. --disable-static \
  63. --without-systemd \
  64. --with-elogind \
  65. --enable-pam=yes
  66. %{__make} %{?_smp_mflags}
  67. %install
  68. %{__rm} -rf ${RPM_BUILD_ROOT}
  69. %{__make} install DESTDIR=${RPM_BUILD_ROOT}
  70. mkdir -p ${RPM_BUILD_ROOT}%{_sysconfdir}/pam.d
  71. install -m 644 %{SOURCE1} ${RPM_BUILD_ROOT}%{_sysconfdir}/pam.d/mate-screensaver
  72. find $RPM_BUILD_ROOT -name '*.a' -exec rm -f {} \;
  73. find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} \;
  74. # conflict with gnome-screensaver
  75. %{__rm} -rf ${RPM_BUILD_ROOT}%{_datadir}/backgrounds/cosmos
  76. %{__rm} -f ${RPM_BUILD_ROOT}%{_datadir}/pixmaps/gnome-logo-white.svg
  77. %find_lang %{name}
  78. %clean
  79. %{__rm} -rf ${RPM_BUILD_ROOT}
  80. %post
  81. /sbin/ldconfig
  82. update-desktop-database %{_datadir}/applications >& /dev/null ||:
  83. touch --no-create %{_datadir}/icons/hicolor
  84. gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor ||:
  85. %postun
  86. /sbin/ldconfig
  87. if [ $1 -eq 0 ]; then
  88. update-desktop-database %{_datadir}/applications >& /dev/null ||:
  89. touch --no-create %{_datadir}/icons/hicolor
  90. gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor ||:
  91. glib-compile-schemas %{_datadir}/glib-2.0/schemas ||:
  92. fi
  93. %posttrans
  94. glib-compile-schemas %{_datadir}/glib-2.0/schemas ||:
  95. %files -f %{name}.lang
  96. %defattr(-,root,root,-)
  97. %license COPYING*
  98. %doc ChangeLog NEWS README
  99. %{_sysconfdir}/pam.d/mate-screensaver
  100. %{_sysconfdir}/xdg/autostart/mate-screensaver.desktop
  101. %{_sysconfdir}/xdg/menus/mate-screensavers.menu
  102. %{_bindir}/mate-screensaver
  103. %{_bindir}/mate-screensaver-command
  104. %{_bindir}/mate-screensaver-preferences
  105. %{_libexecdir}/mate/mate-screensaver
  106. %{_libexecdir}/mate/mate-screensaver-dialog
  107. %{_libexecdir}/mate/mate-screensaver-gl-helper
  108. %{_datadir}/applications/mate-screensaver-preferences.desktop
  109. %{_datadir}/applications/screensavers/*.desktop
  110. %{_datadir}/dbus-1/services/org.mate.ScreenSaver.service
  111. %{_datadir}/desktop-directories/mate-screensaver.directory
  112. %{_datadir}/glib-2.0/schemas/org.mate.screensaver.gschema.xml
  113. %{_datadir}/mate-background-properties/cosmos.xml
  114. %{_datadir}/%{name}
  115. %{_datadir}/pixmaps/mate-logo-white.svg
  116. %{_mandir}/man1/*.1.gz
  117. %files devel
  118. %defattr(-,root,root,-)
  119. %{_libdir}/pkgconfig/mate-screensaver.pc
  120. %changelog
  121. * Tue Oct 01 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.20.3-1
  122. - updated to 1.20.3.
  123. - imported Patch1002 from upstream to support elogind.
  124. * Sun May 20 2018 IWAI, Masaharu <iwaim.sub@gmail.com> 1.20.0-1
  125. - update to 1.20.0
  126. * Thu Jan 18 2018 IWAI, Masaharu <iwaim.sub@gmail.com> 1.18.2-1
  127. - update to 1.18.2
  128. * Fri May 05 2017 IWAI, Masaharu <iwaim.sub@gmail.com> 1.18.1-1
  129. - update to 1.18.1
  130. * Sat Apr 8 2017 IWAI, Masaharu <iwaim.sub@gmail.com> 1.18.0-1
  131. - update to 1.18.0
  132. - move to GTK3+
  133. - drop BR: mate-doc-utils
  134. * Sun Mar 26 2017 IWAI, Masaharu <iwaim.sub@gmail.com> 1.16.1-1
  135. - update to 1.16.1
  136. * Sun Nov 27 2016 IWAI, Masaharu <iwaim.sub@gmail.com> 1.16.0-1
  137. - new upstream release
  138. - update License
  139. - update Packager
  140. * Sun May 22 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.14.1-1
  141. - new upstream release
  142. * Sun May 08 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.14.0-1
  143. - new upstream release
  144. * Sat Nov 07 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.12.0-1
  145. - add BuildRequires: accountsservice-devel
  146. - add Patch1001 (mate-screensaver-1.12.0-accountsservice.patch)
  147. * Sat Nov 07 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.12.0-1
  148. - new upstream release
  149. * Sun Jul 19 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.10.2-1
  150. - new upstream release
  151. * Sat Jun 13 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.10.1-1
  152. - new upstream release
  153. * Sat May 09 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.10.0-1
  154. - new upstream release
  155. - remove Patch1000 (mate-screensaver-1.8.0-ja.po.patch)
  156. * Wed Nov 26 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.8.1-1
  157. - new upstream release
  158. * Wed Apr 16 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.8.0-2
  159. - add Patch1000 (mate-screensaver-1.8.0-ja.po.patch)
  160. * Wed Apr 16 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.8.0-1
  161. - new upstream release
  162. * Sun Dec 29 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.6.1-2
  163. - rebuild with VineSeed environment
  164. * Sun Sep 22 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.6.1-1
  165. - new upstream release
  166. * Sun May 19 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.6.0-1
  167. - new upstream release
  168. - remove BuildRequires: mate-conf-devel, libmatenotify-devel
  169. - add BuildRequires: libnotify-devel, pam-devel
  170. * Thu Aug 02 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.4.0-1
  171. - new upstream release
  172. * Sat May 12 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.2.0-1
  173. - new upstream release
  174. * Fri Dec 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.1.0-2
  175. - change category
  176. * Fri Dec 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.1.0-1
  177. - initial build for Vine Linux