/[packages]/cauldron/gnome-screensaver/current/SPECS/gnome-screensaver.spec
ViewVC logotype

Contents of /cauldron/gnome-screensaver/current/SPECS/gnome-screensaver.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 26579 - (show annotations) (download)
Thu Jan 20 18:21:44 2011 UTC (12 years ago) by pterjan
File size: 4618 byte(s)
- Drop ia_ora stuff and old scriptlets
1 %define name gnome-screensaver
2 %define version 2.30.2
3 %define release %mkrel 1
4
5 Summary: GNOME Screensaver
6 Name: %{name}
7 Version: %{version}
8 Release: %{release}
9 Source0: http://ftp.gnome.org/pub/GNOME/sources/%name/%{name}-%{version}.tar.bz2
10 # (fc) 2.15.7-2mdv change default settings
11 Patch4: gnome-screensaver-2.15.7-default.patch
12 # (vdanen) drops setgid calls to work with tcb auth
13 Patch9: gnome-screensaver-2.22.2-drop_setgid.patch
14
15 License: GPLv2+
16 Group: Graphical desktop/GNOME
17 Url: http://www.gnome.org
18 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
19 BuildRequires: libgnomeui2-devel
20 BuildRequires: libglade2.0-devel
21 BuildRequires: libgnome-menu-devel
22 BuildRequires: libgnomekbd-devel
23 BuildRequires: gnome-desktop-devel >= 2.23.2
24 BuildRequires: libnotify-devel
25 BuildRequires: libxmu-devel
26 BuildRequires: libexif-devel
27 BuildRequires: libmesagl-devel
28 BuildRequires: libxscrnsaver-devel
29 BuildRequires: libxtst-devel
30 BuildRequires: libxxf86misc-devel
31 BuildRequires: libxxf86vm-devel
32 BuildRequires: dbus-devel >= 0.30
33 BuildRequires: pam-devel
34 BuildRequires: gdm
35 BuildRequires: intltool
36 BuildRequires: gnome-common
37 BuildRequires: desktop-file-utils
38 Requires: libxslt-proc
39 Requires: dbus-x11
40 Suggests: mageia-theme-screensaver
41
42 %description
43 gnome-screensaver is a screen saver and locker that aims to have
44 simple, sane, secure defaults and be well integrated with the desktop.
45 It is designed to support:
46
47 * the ability to lock down configuration settings
48 * translation into other languages
49 * user switching
50
51 %prep
52 %setup -q
53 %patch4 -p1 -b .default
54 #%patch9 -p0 -b .drop_setgid
55
56 %build
57 %configure2_5x --disable-more-warnings --with-xscreensaverdir=%{_datadir}/xscreensaver/config --with-xscreensaverhackdir=%{_libdir}/xscreensaver
58 %make
59
60 %install
61 rm -rf $RPM_BUILD_ROOT
62 %makeinstall_std
63
64 sed -ie 's@XSL=${DIST_BIN}/xscreensaver-config.xsl@XSL=%{_datadir}/gnome-screensaver/xscreensaver-config.xsl@' \
65 data/migrate-xscreensaver-config.sh
66 sed -ie 's@b=`basename ${FILE} .xml`@b=xscreensaver-`basename ${FILE} .xml`@' \
67 data/migrate-xscreensaver-config.sh
68
69 install -m755 data/migrate-xscreensaver-config.sh $RPM_BUILD_ROOT%{_datadir}/gnome-screensaver
70 install -m644 data/xscreensaver-config.xsl $RPM_BUILD_ROOT%{_datadir}/gnome-screensaver
71
72 desktop-file-install --vendor="" \
73 --add-category="GTK" \
74 --add-category="GNOME" \
75 --dir $RPM_BUILD_ROOT%{_datadir}/applications $RPM_BUILD_ROOT%{_datadir}/applications/*.desktop
76
77 %find_lang %name
78
79 %define schemas %name
80
81 %triggerin -- xscreensaver-base xscreensaver-gl xscreensaver-extrusion xscreensaver-matrix
82 ( cd %{_datadir}/applications/screensavers ; \
83 for f in %{_datadir}/xscreensaver/config/*.xml; do
84 %{_datadir}/gnome-screensaver/migrate-xscreensaver-config.sh $f > /dev/null 2>&1
85 done)
86
87 %triggerun -- xscreensaver-base
88 [ "$2" = 0 ] || exit 0
89 (cd %{_datadir}/applications/screensavers; \
90 for f in $(rpm -ql xscreensaver-base | grep '%{_datadir}/xscreensaver/config/'); do
91 rm -f xscreensaver-$(basename $f .xml).desktop
92 done)
93
94 %triggerun -- xscreensaver-gl
95 [ "$2" = 0 ] || exit 0
96 (cd %{_datadir}/applications/screensavers; \
97 for f in $(rpm -ql xscreensaver-gl | grep '%{_datadir}/xscreensaver/config/'); do
98 rm -f xscreensaver-$(basename $f .xml).desktop
99 done)
100
101 %triggerun -- xscreensaver-extrusion
102 [ "$2" = 0 ] || exit 0
103 (cd %{_datadir}/applications/screensavers; \
104 for f in $(rpm -ql xscreensaver-extrusion | grep '%{_datadir}/xscreensaver/config/'); do
105 rm -f xscreensaver-$(basename $f .xml).desktop
106 done)
107
108 %triggerun -- xscreensaver-matrix
109 [ "$2" = 0 ] || exit 0
110 (cd %{_datadir}/applications/screensavers; \
111 for f in $(rpm -ql xscreensaver-matrix | grep '%{_datadir}/xscreensaver/config/'); do
112 rm -f xscreensaver-$(basename $f .xml).desktop
113 done)
114
115
116
117 %preun
118 %preun_uninstall_gconf_schemas %{schemas}
119
120 %clean
121 rm -rf $RPM_BUILD_ROOT
122
123 %files -f %name.lang
124 %defattr(-,root,root)
125 %doc README AUTHORS
126 %config(noreplace) %_sysconfdir/xdg/menus/gnome-screensavers.menu
127 %config(noreplace) %_sysconfdir/pam.d/gnome-screensaver
128 %_sysconfdir/gconf/schemas/%name.schemas
129 %_sysconfdir/xdg/autostart/%name.desktop
130 %_bindir/*
131 %_mandir/man1/gnome-screensaver*
132 %_libexecdir/gnome-screensaver-dialog
133 %_libexecdir/gnome-screensaver-gl-helper
134 %_libdir/%name
135 %_datadir/dbus-1/services/org.gnome.ScreenSaver.service
136 %_datadir/desktop-directories/gnome-screensaver.directory
137 %_datadir/applications/gnome-screensaver-preferences.desktop
138 %_datadir/applications/screensavers
139 %_datadir/gnome-background-properties/cosmos.xml
140 %_datadir/backgrounds/cosmos
141 %_datadir/pixmaps/*.svg
142 %_datadir/%name/
143 %_libdir/pkgconfig/*.pc
144
145

  ViewVC Help
Powered by ViewVC 1.1.28