gnome-screensaver-vl.spec 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  1. %define _dbus_ver 1.4.0
  2. %define _gconf_ver 2.32.0
  3. %define _gtk_ver 2.22.0
  4. %define _glib_ver 2.26.0
  5. %define _libgnomekbd_ver 2.32.0
  6. %define _libglade_ver 2.6.0
  7. %define _libgnome_menu_ver 2.30.4
  8. %define _gnome_desktop_ver 2.32.0
  9. %define _libexif_ver 0.6.12
  10. %define xscreensaverdir %{_datadir}/control-center/screensavers
  11. Summary: GNOME Screensaver
  12. Summary(ja): GNOME スクリーンセーバー
  13. Name: gnome-screensaver
  14. Version: 2.30.2
  15. Release: 1%{?_dist_release}
  16. License: GPL
  17. Group: User Interface/Desktops
  18. URL: http://live.gnome.org/GnomeScreensaver/
  19. Source0: ftp://ftp.gnome.org/pub/gnome/sources/gnome-screensaver/2.30/gnome-screensaver-%{version}.tar.bz2
  20. Source1: gnome-screensaver-hide-xscreensaver.menu
  21. Vendor: Project Vine
  22. Distribution: Vine Linux
  23. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  24. BuildRequires: gtk2-devel >= %{_gtk_ver}
  25. BuildRequires: glib2-devel >= %{_glib_ver}
  26. BuildRequires: dbus-devel >= %{_dbus_ver}
  27. BuildRequires: GConf2-devel >= %{_gconf_ver}
  28. BuildRequires: libgnomekbd-devel >= %{_libgnomekbd_ver}
  29. BuildRequires: libglade2-devel >= %{_libglade_ver}
  30. BuildRequires: gnome-menus-devel >= %{_libgnome_menu_ver}
  31. BuildRequires: gnome-desktop-devel >= %{_gnome_desktop_ver}
  32. BuildRequires: libexif-devel >= %{_libexif_ver}
  33. BuildRequires: pam-devel
  34. BuildRequires: libX11-devel, libXScrnSaver-devel, libXext-devel
  35. BuildRequires: libXinerama-devel libXmu-devel
  36. BuildRequires: libnotify-devel
  37. BuildRequires: xorg-x11-proto-devel
  38. BuildRequires: libXxf86misc-devel
  39. BuildRequires: libXxf86vm-devel
  40. BuildRequires: gettext
  41. BuildRequires: perl(XML::Parser)
  42. BuildRequires: nss-devel
  43. BuildRequires: automake, autoconf, libtool, intltool
  44. BuildRequires: desktop-file-utils
  45. Requires(post): GConf2
  46. Requires(preun): GConf2
  47. %description
  48. gnome-screensaver is a screen saver and locker that aims to have
  49. simple, sane, secure defaults and be well integrated with the desktop.
  50. It is designed to support:
  51. * the ability to lock down configuration settings
  52. * translation into many languages
  53. * user switching
  54. %prep
  55. %setup -q
  56. %build
  57. %configure \
  58. --disable-schemas-install \
  59. --enable-locking \
  60. --enable-pam \
  61. --enable-debug=no \
  62. --with-xscreensaverdir=%{_datadir}/xscreensavers/config \
  63. --with-xscreensaverhackdir=%{_libexecdir}/xscreensaver \
  64. --with-gdm-config=%{_datadir}/gdm/defaults.conf \
  65. --with-mit-screensaver=no
  66. %__make
  67. %install
  68. rm -rf $RPM_BUILD_ROOT
  69. export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
  70. make install DESTDIR=$RPM_BUILD_ROOT
  71. unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
  72. desktop-file-install --vendor gnome --delete-original \
  73. --dir $RPM_BUILD_ROOT%{_datadir}/applications \
  74. --add-only-show-in GNOME \
  75. $RPM_BUILD_ROOT%{_datadir}/applications/*.desktop
  76. %find_lang %{name}
  77. # hide xscreensaver from the menus
  78. install -D -m644 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/xdg/menus/preferences-post-merged/gnome-screensaver-hide-xscreensaver.menu
  79. %post
  80. export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
  81. gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/gnome-screensaver.schemas >/dev/null
  82. %pre
  83. if [ "$1" -gt 1 ]; then
  84. export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
  85. gconftool-2 --makefile-uninstall-rule %{_sysconfdir}/gconf/schemas/gnome-screensaver.schemas >/dev/null
  86. fi
  87. %preun
  88. if [ "$1" -eq 0 ]; then
  89. export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
  90. gconftool-2 --makefile-uninstall-rule %{_sysconfdir}/gconf/schemas/gnome-screensaver.schemas >/dev/null
  91. fi
  92. %clean
  93. %__rm -rf %{buildroot}
  94. %files -f %{name}.lang
  95. %defattr(-,root,root)
  96. %doc AUTHORS COPYING ChangeLog NEWS README TODO
  97. %{_sysconfdir}/gconf/schemas/*.schemas
  98. %{_sysconfdir}/pam.d/*
  99. %{_sysconfdir}/xdg/menus/preferences-post-merged/*
  100. %{_sysconfdir}/xdg/menus/*.menu
  101. %{_sysconfdir}/xdg/autostart/gnome-screensaver.desktop
  102. %{_bindir}/*
  103. %{_libexecdir}/*
  104. %{_libdir}/pkgconfig/*.pc
  105. %{_datadir}/%{name}
  106. %{_datadir}/applications/*.desktop
  107. %{_datadir}/applications/screensavers/*.desktop
  108. %{_datadir}/backgrounds/cosmos
  109. %{_datadir}/desktop-directories/*.directory
  110. %dir %{_datadir}/gnome-background-properties
  111. %{_datadir}/gnome-background-properties/cosmos.xml
  112. #%{_datadir}/pixmaps/backgrounds/*
  113. %{_datadir}/pixmaps/*.svg
  114. %{_datadir}/dbus-1/services/org.gnome.ScreenSaver.service
  115. %{_mandir}/man1/*.1*
  116. %changelog
  117. * Tue Oct 05 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.30.2-1
  118. - new upstream release
  119. - remove BuildRequires: gnome-vfs2-devel, libgnomeui-devel
  120. - fix %files
  121. * Sat Sep 25 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.30.0-2
  122. - rebuild with rpm-4.8.1 for pkg-config file
  123. * Wed Mar 31 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.30.0-1
  124. - new upstream release
  125. * Sun Mar 07 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.28.3-1
  126. - new upstream release
  127. - add BuildRequires: desktop-file-utils
  128. * Mon Nov 2 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 2.28.0-1
  129. - new upstream release
  130. - update BR with gnome-2.28
  131. * Sat Apr 25 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.26.1-1
  132. - new upstream release
  133. * Sun Mar 22 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.26.0-1
  134. - new upstream release
  135. - add BR: gnome-desktop-devel
  136. - update BR with gnome-2.26
  137. * Wed Sep 24 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.24.0-1
  138. - new upstream release
  139. * Thu May 22 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.22.2-1
  140. - new upstream release
  141. * Mon Aug 07 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 2.14.3-0vl1
  142. - new upstream release
  143. * Mon Jul 17 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 2.14.2-0vl3
  144. - do not migrate at %%post
  145. * Mon Jul 17 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 2.14.2-0vl2
  146. - migrate xscreensaver's screensavers like FC et al.
  147. * Mon Jul 17 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 2.14.2-0vl1
  148. - initial build