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