gnome-screensaver-vl.spec 5.3 KB

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