mate-screensaver-vl.spec 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223
  1. %define major_ver 1.18
  2. %define ver %{major_ver}.1
  3. %define rel 1
  4. Summary: Screensaver for MATE
  5. Name: mate-screensaver
  6. Version: %{ver}
  7. Release: %{rel}%{?_dist_release}
  8. Source0: http://pub.mate-desktop.org/releases/%{major_ver}/%{name}-%{version}.tar.xz
  9. Source1: %{name}.pam
  10. License: GPLv2 and LGPLv2
  11. Group: User Interface/Desktops
  12. URL: http://mate-desktop.org/
  13. # for Vine Linux
  14. Patch1001: mate-screensaver-1.12.0-accountsservice.patch
  15. BuildRequires: mate-common
  16. BuildRequires: mate-desktop-devel >= 1.17.0
  17. BuildRequires: mate-menus-devel
  18. BuildRequires: libmatekbd-devel
  19. BuildRequires: libnotify-devel
  20. BuildRequires: gtk3-devel
  21. BuildRequires: dbus-glib-devel
  22. BuildRequires: libSM-devel
  23. BuildRequires: libXScrnSaver-devel
  24. BuildRequires: libXxf86misc-devel
  25. BuildRequires: pam-devel
  26. BuildRequires: accountsservice-devel
  27. BuildRequires: gtk-doc
  28. BuildRequires: autoconf
  29. BuildRequires: automake
  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: Takemikaduchi, 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. %build
  58. NOCONFIGURE=1 ./autogen.sh
  59. %configure \
  60. --libexecdir=%{_libexecdir}/mate \
  61. --disable-static \
  62. --without-systemd \
  63. --enable-pam=yes
  64. %{__make} %{?_smp_mflags}
  65. %install
  66. %{__rm} -rf ${RPM_BUILD_ROOT}
  67. %{__make} install DESTDIR=${RPM_BUILD_ROOT}
  68. mkdir -p ${RPM_BUILD_ROOT}%{_sysconfdir}/pam.d
  69. install -m 644 %{SOURCE1} ${RPM_BUILD_ROOT}%{_sysconfdir}/pam.d/mate-screensaver
  70. find $RPM_BUILD_ROOT -name '*.a' -exec rm -f {} \;
  71. find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} \;
  72. # conflict with gnome-screensaver
  73. %{__rm} -rf ${RPM_BUILD_ROOT}%{_datadir}/backgrounds/cosmos
  74. %{__rm} -f ${RPM_BUILD_ROOT}%{_datadir}/pixmaps/gnome-logo-white.svg
  75. %find_lang %{name}
  76. %clean
  77. %{__rm} -rf ${RPM_BUILD_ROOT}
  78. %post
  79. /sbin/ldconfig
  80. update-desktop-database %{_datadir}/applications >& /dev/null ||:
  81. touch --no-create %{_datadir}/icons/hicolor
  82. gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor ||:
  83. %postun
  84. /sbin/ldconfig
  85. if [ $1 -eq 0 ]; then
  86. update-desktop-database %{_datadir}/applications >& /dev/null ||:
  87. touch --no-create %{_datadir}/icons/hicolor
  88. gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor ||:
  89. glib-compile-schemas %{_datadir}/glib-2.0/schemas ||:
  90. fi
  91. %posttrans
  92. glib-compile-schemas %{_datadir}/glib-2.0/schemas ||:
  93. %files -f %{name}.lang
  94. %defattr(-,root,root,-)
  95. %doc COPYING* ChangeLog NEWS README
  96. %{_sysconfdir}/pam.d/mate-screensaver
  97. %{_sysconfdir}/xdg/autostart/mate-screensaver.desktop
  98. %{_sysconfdir}/xdg/menus/mate-screensavers.menu
  99. %{_bindir}/mate-screensaver
  100. %{_bindir}/mate-screensaver-command
  101. %{_bindir}/mate-screensaver-preferences
  102. %{_libexecdir}/mate/mate-screensaver
  103. %{_libexecdir}/mate/mate-screensaver-dialog
  104. %{_libexecdir}/mate/mate-screensaver-gl-helper
  105. %{_datadir}/applications/mate-screensaver-preferences.desktop
  106. %{_datadir}/applications/screensavers/*.desktop
  107. %{_datadir}/dbus-1/services/org.mate.ScreenSaver.service
  108. %{_datadir}/desktop-directories/mate-screensaver.directory
  109. %{_datadir}/glib-2.0/schemas/org.mate.screensaver.gschema.xml
  110. %{_datadir}/mate-background-properties/cosmos.xml
  111. %{_datadir}/%{name}
  112. %{_datadir}/pixmaps/mate-logo-white.svg
  113. %{_mandir}/man1/*.1.gz
  114. %files devel
  115. %defattr(-,root,root,-)
  116. %{_libdir}/pkgconfig/mate-screensaver.pc
  117. %changelog
  118. * Fri May 05 2017 IWAI, Masaharu <iwaim.sub@gmail.com> 1.18.1-1
  119. - update to 1.18.1
  120. * Sat Apr 8 2017 IWAI, Masaharu <iwaim.sub@gmail.com> 1.18.0-1
  121. - update to 1.18.0
  122. - move to GTK3+
  123. - drop BR: mate-doc-utils
  124. * Sun Mar 26 2017 IWAI, Masaharu <iwaim.sub@gmail.com> 1.16.1-1
  125. - update to 1.16.1
  126. * Sun Nov 27 2016 IWAI, Masaharu <iwaim.sub@gmail.com> 1.16.0-1
  127. - new upstream release
  128. - update License
  129. - update Packager
  130. * Sun May 22 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.14.1-1
  131. - new upstream release
  132. * Sun May 08 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.14.0-1
  133. - new upstream release
  134. * Sat Nov 07 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.12.0-1
  135. - add BuildRequires: accountsservice-devel
  136. - add Patch1001 (mate-screensaver-1.12.0-accountsservice.patch)
  137. * Sat Nov 07 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.12.0-1
  138. - new upstream release
  139. * Sun Jul 19 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.10.2-1
  140. - new upstream release
  141. * Sat Jun 13 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.10.1-1
  142. - new upstream release
  143. * Sat May 09 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.10.0-1
  144. - new upstream release
  145. - remove Patch1000 (mate-screensaver-1.8.0-ja.po.patch)
  146. * Wed Nov 26 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.8.1-1
  147. - new upstream release
  148. * Wed Apr 16 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.8.0-2
  149. - add Patch1000 (mate-screensaver-1.8.0-ja.po.patch)
  150. * Wed Apr 16 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.8.0-1
  151. - new upstream release
  152. * Sun Dec 29 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.6.1-2
  153. - rebuild with VineSeed environment
  154. * Sun Sep 22 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.6.1-1
  155. - new upstream release
  156. * Sun May 19 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.6.0-1
  157. - new upstream release
  158. - remove BuildRequires: mate-conf-devel, libmatenotify-devel
  159. - add BuildRequires: libnotify-devel, pam-devel
  160. * Thu Aug 02 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.4.0-1
  161. - new upstream release
  162. * Sat May 12 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.2.0-1
  163. - new upstream release
  164. * Fri Dec 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.1.0-2
  165. - change category
  166. * Fri Dec 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.1.0-1
  167. - initial build for Vine Linux