rpms/em8300-kmod/F-12 em8300-kmod.spec,1.50,1.51
by Thorsten Leemhuis
Author: thl
Update of /cvs/free/rpms/em8300-kmod/F-12
In directory se02.es.rpmfusion.net:/tmp/cvs-serv16953
Modified Files:
em8300-kmod.spec
Log Message:
* Sat Dec 26 2009 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info> - 0.17.4-1.6
- rebuild for new kernel
Index: em8300-kmod.spec
===================================================================
RCS file: /cvs/free/rpms/em8300-kmod/F-12/em8300-kmod.spec,v
retrieving revision 1.50
retrieving revision 1.51
diff -u -r1.50 -r1.51
--- em8300-kmod.spec 10 Dec 2009 18:46:05 -0000 1.50
+++ em8300-kmod.spec 26 Dec 2009 15:35:18 -0000 1.51
@@ -10,7 +10,7 @@
Name: em8300-kmod
Summary: Kernel modules for DXR3/Hollywood Plus MPEG decoder cards
Version: 0.17.4
-Release: 1%{?dist}.5
+Release: 1%{?dist}.6
Group: System Environment/Kernel
License: GPLv2+
@@ -63,6 +63,9 @@
%changelog
+* Sat Dec 26 2009 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info> - 0.17.4-1.6
+- rebuild for new kernel
+
* Thu Dec 10 2009 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info> - 0.17.4-1.5
- rebuild for new kernel
14 years, 11 months
rpms/blcr-kmod/F-12 blcr-kmod.spec,1.28,1.29
by Thorsten Leemhuis
Author: thl
Update of /cvs/free/rpms/blcr-kmod/F-12
In directory se02.es.rpmfusion.net:/tmp/cvs-serv16785
Modified Files:
blcr-kmod.spec
Log Message:
* Sat Dec 26 2009 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info> - 0.8.1-3.19
- rebuild for new kernel
Index: blcr-kmod.spec
===================================================================
RCS file: /cvs/free/rpms/blcr-kmod/F-12/blcr-kmod.spec,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -r1.28 -r1.29
--- blcr-kmod.spec 10 Dec 2009 18:45:49 -0000 1.28
+++ blcr-kmod.spec 26 Dec 2009 15:34:59 -0000 1.29
@@ -7,7 +7,7 @@
Name: blcr-kmod
Version: 0.8.1
-Release: 3%{?dist}.18
+Release: 3%{?dist}.19
Summary: Kernel module (kmod) for Berkeley Lab Checkpoint/Restart for Linux
%define distname blcr-%{version}
@@ -83,6 +83,9 @@
rm -rf $RPM_BUILD_ROOT
%changelog
+* Sat Dec 26 2009 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info> - 0.8.1-3.19
+- rebuild for new kernel
+
* Thu Dec 10 2009 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info> - 0.8.1-3.18
- rebuild for new kernel
14 years, 11 months
rpms/buildsys-build-rpmfusion/F-12 buildsys-build-rpmfusion-kerneldevpkgs-current, 1.24, 1.25 buildsys-build-rpmfusion.spec, 1.32, 1.33
by Thorsten Leemhuis
Author: thl
Update of /cvs/free/rpms/buildsys-build-rpmfusion/F-12
In directory se02.es.rpmfusion.net:/tmp/cvs-serv15008
Modified Files:
buildsys-build-rpmfusion-kerneldevpkgs-current
buildsys-build-rpmfusion.spec
Log Message:
* Sat Dec 26 2009 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info> - 10:12-6
- rebuild for kernel 2.6.31.9-174.fc12
Index: buildsys-build-rpmfusion-kerneldevpkgs-current
===================================================================
RCS file: /cvs/free/rpms/buildsys-build-rpmfusion/F-12/buildsys-build-rpmfusion-kerneldevpkgs-current,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -r1.24 -r1.25
--- buildsys-build-rpmfusion-kerneldevpkgs-current 10 Dec 2009 18:36:20 -0000 1.24
+++ buildsys-build-rpmfusion-kerneldevpkgs-current 26 Dec 2009 15:06:50 -0000 1.25
@@ -1,3 +1,3 @@
-2.6.31.6-166.fc12
-2.6.31.6-166.fc12smp
-2.6.31.6-166.fc12PAE
+2.6.31.9-174.fc12
+2.6.31.9-174.fc12smp
+2.6.31.9-174.fc12PAE
Index: buildsys-build-rpmfusion.spec
===================================================================
RCS file: /cvs/free/rpms/buildsys-build-rpmfusion/F-12/buildsys-build-rpmfusion.spec,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -r1.32 -r1.33
--- buildsys-build-rpmfusion.spec 10 Dec 2009 18:36:20 -0000 1.32
+++ buildsys-build-rpmfusion.spec 26 Dec 2009 15:06:50 -0000 1.33
@@ -3,7 +3,7 @@
Name: buildsys-build-%{repo}
Epoch: 10
Version: 12
-Release: 5
+Release: 6
Summary: Tools and files used by the %{repo} buildsys
Group: Development/Tools
@@ -90,6 +90,9 @@
%changelog
+* Sat Dec 26 2009 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info> - 10:12-6
+- rebuild for kernel 2.6.31.9-174.fc12
+
* Thu Dec 10 2009 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info> - 10:12-5
- rebuild for kernel 2.6.31.6-166.fc12
14 years, 11 months
rpms/buildsys-build-rpmfusion/F-11 buildsys-build-rpmfusion-kerneldevpkgs-current, 1.31, 1.32 buildsys-build-rpmfusion.spec, 1.39, 1.40
by Thorsten Leemhuis
Author: thl
Update of /cvs/free/rpms/buildsys-build-rpmfusion/F-11
In directory se02.es.rpmfusion.net:/tmp/cvs-serv14538
Modified Files:
buildsys-build-rpmfusion-kerneldevpkgs-current
buildsys-build-rpmfusion.spec
Log Message:
* Sat Dec 26 2009 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info> - 10:11-0.29
- rebuild for kernel 2.6.30.10-105.fc11
Index: buildsys-build-rpmfusion-kerneldevpkgs-current
===================================================================
RCS file: /cvs/free/rpms/buildsys-build-rpmfusion/F-11/buildsys-build-rpmfusion-kerneldevpkgs-current,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -r1.31 -r1.32
--- buildsys-build-rpmfusion-kerneldevpkgs-current 6 Dec 2009 21:07:36 -0000 1.31
+++ buildsys-build-rpmfusion-kerneldevpkgs-current 26 Dec 2009 15:02:46 -0000 1.32
@@ -1,3 +1,3 @@
-2.6.30.9-102.fc11
-2.6.30.9-102.fc11smp
-2.6.30.9-102.fc11PAE
+2.6.30.10-105.fc11
+2.6.30.10-105.fc11smp
+2.6.30.10-105.fc11PAE
Index: buildsys-build-rpmfusion.spec
===================================================================
RCS file: /cvs/free/rpms/buildsys-build-rpmfusion/F-11/buildsys-build-rpmfusion.spec,v
retrieving revision 1.39
retrieving revision 1.40
diff -u -r1.39 -r1.40
--- buildsys-build-rpmfusion.spec 6 Dec 2009 21:07:36 -0000 1.39
+++ buildsys-build-rpmfusion.spec 26 Dec 2009 15:02:46 -0000 1.40
@@ -3,7 +3,7 @@
Name: buildsys-build-%{repo}
Epoch: 10
Version: 11
-Release: 0.28
+Release: 0.29
Summary: Tools and files used by the %{repo} buildsys
Group: Development/Tools
@@ -90,6 +90,9 @@
%changelog
+* Sat Dec 26 2009 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info> - 10:11-0.29
+- rebuild for kernel 2.6.30.10-105.fc11
+
* Sun Dec 06 2009 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info> - 10:11-0.28
- rebuild for kernel 2.6.30.9-102.fc11
14 years, 11 months
rpms/ogmrip/devel .cvsignore, 1.4, 1.5 ogmrip.spec, 1.5, 1.6 sources, 1.4, 1.5
by Gianluca Sforna
Author: giallu
Update of /cvs/free/rpms/ogmrip/devel
In directory se02.es.rpmfusion.net:/tmp/cvs-serv16029
Modified Files:
.cvsignore ogmrip.spec sources
Log Message:
* Thu Dec 24 2009 Gianluca Sforna <giallu gmail com> - 0.13.3-1
- New upstream release
Index: .cvsignore
===================================================================
RCS file: /cvs/free/rpms/ogmrip/devel/.cvsignore,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- .cvsignore 21 Sep 2009 22:02:23 -0000 1.4
+++ .cvsignore 24 Dec 2009 16:02:21 -0000 1.5
@@ -1 +1 @@
-ogmrip-0.13.1.tar.gz
+ogmrip-0.13.3.tar.gz
Index: ogmrip.spec
===================================================================
RCS file: /cvs/free/rpms/ogmrip/devel/ogmrip.spec,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- ogmrip.spec 21 Sep 2009 22:02:23 -0000 1.5
+++ ogmrip.spec 24 Dec 2009 16:02:21 -0000 1.6
@@ -1,5 +1,5 @@
Name: ogmrip
-Version: 0.13.1
+Version: 0.13.3
Release: 1%{?dist}
Summary: DVD ripping and encoding graphical user interface
@@ -10,7 +10,7 @@
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: gtk2-devel, libglade2-devel, GConf2-devel, libxml2-devel
-BuildRequires: hal-devel, dbus-glib-devel, enchant-devel, enca-devel
+BuildRequires: dbus-glib-devel, enchant-devel, enca-devel
BuildRequires: libdvdread-devel, libtheora-devel, libvorbis-devel
BuildRequires: libtiff-devel
BuildRequires: tesseract-devel
@@ -18,15 +18,12 @@
BuildRequires: gettext-devel, intltool
BuildRequires: desktop-file-utils
-# We patch configure.in
-BuildRequires: autoconf
-
# Not technically build required, but configure checks for it...
-Buildrequires: eject, mplayer, mencoder, ogmtools, vorbis-tools, theora-tools
+Buildrequires: mplayer, mencoder, ogmtools, vorbis-tools, theora-tools
BuildRequires: mkvtoolnix, lame
# Now, all the same as runtime requirements
-Requires: eject, mplayer, mencoder, ogmtools, vorbis-tools, theora-tools
+Requires: mplayer, mencoder, ogmtools, vorbis-tools, theora-tools
Requires: mkvtoolnix, lame
Requires: gpac
Requires: subtitleripper
@@ -64,7 +61,6 @@
%build
-autoconf
%configure \
--disable-static \
--disable-schemas-install \
@@ -139,6 +135,13 @@
%changelog
+* Thu Dec 24 2009 Gianluca Sforna <giallu gmail com> - 0.13.3-1
+- New upstream release
+
+* Thu Oct 8 2009 Gianluca Sforna <giallu gmail com> - 0.13.2-1
+- New upstream release
+- drop dependencies on hal-devel and eject
+
* Mon Sep 21 2009 Gianluca Sforna <giallu gmail com> - 0.13.1-1
- New upstream release
- drop upstreamed patches
Index: sources
===================================================================
RCS file: /cvs/free/rpms/ogmrip/devel/sources,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- sources 21 Sep 2009 22:02:23 -0000 1.4
+++ sources 24 Dec 2009 16:02:21 -0000 1.5
@@ -1 +1 @@
-1c0db0bae74f28e646ca90933435d0b2 ogmrip-0.13.1.tar.gz
+5c74da4e53e94d3bf2d57a3068cea151 ogmrip-0.13.3.tar.gz
14 years, 11 months
rpms/xine-lib-extras-freeworld/devel .cvsignore, 1.7, 1.8 sources, 1.7, 1.8 xine-lib-extras-freeworld.spec, 1.27, 1.28
by Rex Dieter
Author: rdieter
Update of /cvs/free/rpms/xine-lib-extras-freeworld/devel
In directory se02.es.rpmfusion.net:/tmp/cvs-serv13481
Modified Files:
.cvsignore sources xine-lib-extras-freeworld.spec
Log Message:
* Wed Dec 02 2009 Rex Dieter <rdieter(a)fedoraproject.org> - 1.1.17-1
- xine-lib-1.1.17, plugin-abi 1.27
Index: .cvsignore
===================================================================
RCS file: /cvs/free/rpms/xine-lib-extras-freeworld/devel/.cvsignore,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- .cvsignore 3 Apr 2009 17:30:52 -0000 1.7
+++ .cvsignore 24 Dec 2009 15:37:24 -0000 1.8
@@ -1 +1 @@
-xine-lib-1.1.16.3.tar.bz2
+xine-lib-1.1.17.tar.bz2
Index: sources
===================================================================
RCS file: /cvs/free/rpms/xine-lib-extras-freeworld/devel/sources,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- sources 3 Apr 2009 17:30:52 -0000 1.7
+++ sources 24 Dec 2009 15:37:24 -0000 1.8
@@ -1 +1 @@
-4f508abf088cf427a731f85634c8260d xine-lib-1.1.16.3.tar.bz2
+25aea3cae7d8e2fb091941454fcfab54 xine-lib-1.1.17.tar.bz2
Index: xine-lib-extras-freeworld.spec
===================================================================
RCS file: /cvs/free/rpms/xine-lib-extras-freeworld/devel/xine-lib-extras-freeworld.spec,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -r1.27 -r1.28
--- xine-lib-extras-freeworld.spec 2 Jul 2009 17:22:18 -0000 1.27
+++ xine-lib-extras-freeworld.spec 24 Dec 2009 15:37:24 -0000 1.28
@@ -1,7 +1,7 @@
# TODO:
# - external dvdnav - not compatible as of 1.1.11 and 4.1.1
-%define plugin_abi 1.26
+%define plugin_abi 1.27
%if 0%{?fedora} > 6
%define _with_external_ffmpeg --with-external-ffmpeg
@@ -10,8 +10,8 @@
Name: xine-lib-extras-freeworld
Summary: Extra codecs for the Xine multimedia library
-Version: 1.1.16.3
-Release: 2%{?dist}
+Version: 1.1.17
+Release: 1%{?dist}
License: GPLv2+
Group: System Environment/Libraries
URL: http://xinehq.de/
@@ -187,6 +187,9 @@
%changelog
+* Wed Dec 02 2009 Rex Dieter <rdieter(a)fedoraproject.org> - 1.1.17-1
+- xine-lib-1.1.17, plugin-abi 1.27
+
* Thu Jul 02 2009 Rex Dieter <rdieter(a)fedoraproject.org> - 1.1.16.3-2
- rebuild (DirectFB)
14 years, 11 months
rpms/k9copy/F-11 k9copy-2.3.4-ffmpeg.patch, NONE, 1.1 .cvsignore, 1.9, 1.10 k9copy.spec, 1.15, 1.16 sources, 1.9, 1.10 k9copy-2.3.1-ffmpeg.patch, 1.1, NONE k9copy-2.3.1-gcc44.patch, 1.1, NONE
by Rex Dieter
Author: rdieter
Update of /cvs/free/rpms/k9copy/F-11
In directory se02.es.rpmfusion.net:/tmp/cvs-serv7714
Modified Files:
.cvsignore k9copy.spec sources
Added Files:
k9copy-2.3.4-ffmpeg.patch
Removed Files:
k9copy-2.3.1-ffmpeg.patch k9copy-2.3.1-gcc44.patch
Log Message:
* Wed Dec 23 2009 Rex Dieter <rdieter(a)fedoraproject.org> 2.3.4-1
- k9copy-2.3.4
k9copy-2.3.4-ffmpeg.patch:
k9avidecode.cpp | 4 ++--
k9avidecode.h | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
--- NEW FILE k9copy-2.3.4-ffmpeg.patch ---
diff -up k9copy-2.3.4-Source/src/import/k9avidecode.cpp.ffmpeg k9copy-2.3.4-Source/src/import/k9avidecode.cpp
--- k9copy-2.3.4-Source/src/import/k9avidecode.cpp.ffmpeg 2009-12-06 04:13:36.000000000 -0600
+++ k9copy-2.3.4-Source/src/import/k9avidecode.cpp 2009-12-23 12:57:34.186559784 -0600
@@ -10,14 +10,14 @@
//
//
#include "k9avidecode.h"
-#include <avcodec.h>
+#include <libavcodec/avcodec.h>
#include <qimage.h>
#include <dlfcn.h>
#include <klocale.h>
#ifdef HAVE_SWSCALE
-#include "swscale.h"
+#include <libswscale/swscale.h>
static int sws_flags = SWS_BICUBIC;
diff -up k9copy-2.3.4-Source/src/import/k9avidecode.h.ffmpeg k9copy-2.3.4-Source/src/import/k9avidecode.h
--- k9copy-2.3.4-Source/src/import/k9avidecode.h.ffmpeg 2009-12-06 04:13:36.000000000 -0600
+++ k9copy-2.3.4-Source/src/import/k9avidecode.h 2009-12-23 12:56:18.225559575 -0600
@@ -14,12 +14,12 @@
#include "k9common.h"
#include <qobject.h>
-#include <avformat.h>
+#include <libavformat/avformat.h>
#include <qimage.h>
#include <cstdlib>
#include <QObject>
#ifdef HAVE_SWSCALE
-#include <swscale.h>
+#include <libswscale/swscale.h>
#endif
/**
@author Jean-Michel PETIT <k9copy(a)free.fr>
Index: .cvsignore
===================================================================
RCS file: /cvs/free/rpms/k9copy/F-11/.cvsignore,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- .cvsignore 9 Oct 2009 13:41:00 -0000 1.9
+++ .cvsignore 23 Dec 2009 21:01:26 -0000 1.10
@@ -1 +1 @@
-k9copy-2.3.3-Source.tar.gz
+k9copy-2.3.4-Source.tar.gz
Index: k9copy.spec
===================================================================
RCS file: /cvs/free/rpms/k9copy/F-11/k9copy.spec,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- k9copy.spec 9 Oct 2009 13:41:00 -0000 1.15
+++ k9copy.spec 23 Dec 2009 21:01:26 -0000 1.16
@@ -1,6 +1,6 @@
Name: k9copy
-Version: 2.3.3
+Version: 2.3.4
Release: 1%{?dist}
Summary: Video DVD backup and creation program
Group: Applications/Multimedia
@@ -9,7 +9,7 @@
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}-Source.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-Patch1: k9copy-2.3.1-ffmpeg.patch
+Patch1: k9copy-2.3.4-ffmpeg.patch
Patch2: k9copy-2.1.0-mimetype.patch
BuildRequires: cmake
@@ -104,6 +104,9 @@
%changelog
+* Wed Dec 23 2009 Rex Dieter <rdieter(a)fedoraproject.org> 2.3.4-1
+- k9copy-2.3.4
+
* Sat Aug 29 2009 Rex Dieter <rdieter(a)fedoraproject.org> 2.3.3-1
- k9copy-2.3.3
Index: sources
===================================================================
RCS file: /cvs/free/rpms/k9copy/F-11/sources,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- sources 9 Oct 2009 13:41:00 -0000 1.9
+++ sources 23 Dec 2009 21:01:26 -0000 1.10
@@ -1 +1 @@
-8c3f3dc82949f9629cf619cd8aeb8160 k9copy-2.3.3-Source.tar.gz
+7b266bb548c4c649f3a691490ccae81c k9copy-2.3.4-Source.tar.gz
--- k9copy-2.3.1-ffmpeg.patch DELETED ---
--- k9copy-2.3.1-gcc44.patch DELETED ---
14 years, 11 months
rpms/xsnow/F-11 xsnow-1.42-Imakefile.patch, NONE, 1.1 xsnow-1.42-fixoptions.patch, NONE, 1.1 xsnow-1.42-manpage.patch, NONE, 1.1 xsnow-1.42-misc.patch, NONE, 1.1 xsnow-1.42-vroot.patch, NONE, 1.1 xsnow.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
by Andrea Musuruane
Author: musuruan
Update of /cvs/nonfree/rpms/xsnow/F-11
In directory se02.es.rpmfusion.net:/tmp/cvs-serv3174/F-11
Modified Files:
.cvsignore sources
Added Files:
xsnow-1.42-Imakefile.patch xsnow-1.42-fixoptions.patch
xsnow-1.42-manpage.patch xsnow-1.42-misc.patch
xsnow-1.42-vroot.patch xsnow.spec
Log Message:
First import
xsnow-1.42-Imakefile.patch:
Imakefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- NEW FILE xsnow-1.42-Imakefile.patch ---
#! /bin/sh /usr/share/dpatch/dpatch-run
## 03_Imakefile.dpatch by <mlazar(a)kerio.com>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: New patch generated from xsnow 1.42-7 diff.gz
@DPATCH@
--- xsnow-1.42.orig/Imakefile
+++ xsnow-1.42/Imakefile
@@ -1,4 +1,4 @@
-SYS_LIBRARIES = -lm -lXpm
+SYS_LIBRARIES = -lXpm
LOCAL_LIBRARIES = $(XLIB)
DEPLIBS = $(DEPXLIB)
SRCS = xsnow.c toon_root.c xsnow.h vroot.h
xsnow-1.42-fixoptions.patch:
xsnow.c | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
--- NEW FILE xsnow-1.42-fixoptions.patch ---
#! /bin/sh /usr/share/dpatch/dpatch-run
## 01_fixoptions.dpatch by <caiqian(a)localhost.localdomain>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: -nokeepsnow will not update screen if there are expose events. ie. after
## DP: start xsnow, move away a window, the snow will not show on the area of
## DP: previous window.
## DP:
## DP: -nokeepsnowonwindows will cause snow erased on the bottom of screen as
## DP: well.
@DPATCH@
--- xsnow-1.42.orig/xsnow.c 2001-12-15 23:44:47.000000000 +0000
+++ xsnow-1.42/xsnow.c 2005-12-27 16:18:47.923074008 +0000
@@ -653,7 +653,7 @@
if (stilltddr) {
stilltddr = !DDLT();
}
- if (!NoKeepSnow) {
+
switch (ev.type) {
case Expose:
#if debug
@@ -746,7 +746,7 @@
}
}
- }
+
#if debug
#endif
uSsleep(snowDelay);
@@ -1362,8 +1362,6 @@
XOffsetRegion(rscrr, 0,MaxYStep+MaxSnowFlakeHeight);
XSubtractRegion(Wr,rscrr, rscrr);
if (NoKeepSWin) {
- XDestroyRegion(snscr);
- snscr = XCreateRegion();
return;
}
XUnionRegion(rscrr,snscr, snscr);
@@ -1378,7 +1376,7 @@
XOffsetRegion(sar, 0,-MaxWinSnowDepth);
XSubtractRegion(sar,Wr, sar);
}
- if (!NoKeepSWin) {
+ if (!NoKeepSBot) {
AllowRect.x = 0;
AllowRect.y = display_height - MaxScrSnowDepth;
AllowRect.width = display_width - 1;
xsnow-1.42-manpage.patch:
xsnow.man | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- NEW FILE xsnow-1.42-manpage.patch ---
#! /bin/sh /usr/share/dpatch/dpatch-run
## 02_manpage.dpatch by <mlazar(a)kerio.com>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: New patch generated from xsnow 1.42-7 diff.gz
@DPATCH@
--- xsnow-1.42.orig/xsnow.man
+++ xsnow-1.42/xsnow.man
@@ -1,4 +1,4 @@
-.TH XSNOW 1 "Release 6" "X Version 11"
+.TH XSNOW 6 "Release 6" "X Version 11"
.SH NAME
xsnow \- let it snow on your desktop and windows
.SH SYNOPSIS
xsnow-1.42-misc.patch:
xsnow.c | 72 +++++++++++++++++++++++++++++++++++++++++++++++-----------------
1 file changed, 53 insertions(+), 19 deletions(-)
--- NEW FILE xsnow-1.42-misc.patch ---
--- xsnow-1.42/xsnow.c.orig 2001-12-16 00:44:47.000000000 +0100
+++ xsnow-1.42/xsnow.c 2004-02-24 21:12:31.670634766 +0100
@@ -227,7 +227,7 @@
#include <X11/xpm.h>
/**** V R O O T ****/
/* For vroot.h see the credits at the beginning of Xsnow */
-/***#include <X11/vroot.h> /* if vroot.h installed in /usr/include/X11 ***/
+/***#include <X11/vroot.h> */ /* if vroot.h installed in /usr/include/X11 ***/
/* replaced by ToonGetRootWindow
#include "vroot.h"
#include "toon.h"
@@ -321,6 +321,7 @@
unsigned int RunCounter = 0;
int SantaUpdateFactor = 3;
/* Forward decls */
+void finish();
void Usage();
void SigHandler();
void SigHupHandler();
@@ -374,6 +375,7 @@
int ac;
char *av[];
{
+ XExposeEvent event;
XGCValues xgcv;
int ax;
char *arg;
@@ -383,7 +385,6 @@
int Exposed;
int ConfigureNotified;
int i;
- int x,y;
Window root; /* used in getgeometry call */
int winX, winY;
unsigned int winHeight, winWidth;
@@ -773,9 +774,50 @@
XDestroyRegion(WDR);
XDestroyRegion(rscrr);
XClearWindow(display, rootWin);
+ /* Send an expose event so that any apps that draw to the window can
+ redraw them */
+ event.type = Expose;
+ event.send_event = True;
+ event.display = display;
+ event.window = rootWin;
+ event.x = 0;
+ event.y = 0;
+ event.width = display_width;
+ event.height = display_height;
+ XSendEvent(display, rootWin, False, Expose, (XEvent *) &event);
XCloseDisplay(display);
exit(0);
} /* End of the snow */
+
+
+void finish(void)
+{
+ XExposeEvent event;
+ XDestroyRegion(Wr);
+ XDestroyRegion(snscr);
+ XDestroyRegion(sar);
+ XDestroyRegion(PrevWr);
+ XDestroyRegion(WDR);
+ XDestroyRegion(rscrr);
+ XClearWindow(display, rootWin);
+
+ /* Send an expose event so that any apps that draw to the window can
+ redraw them */
+ event.type = Expose;
+ event.send_event = True;
+ event.display = display;
+ event.window = rootWin;
+ event.x = 0;
+ event.y = 0;
+ event.width = display_width;
+ event.height = display_height;
+ XSendEvent(display, rootWin, False, Expose, (XEvent *) &event);
+
+ XCloseDisplay(display);
+ exit(0);
+}
+
+
/* ------------------------------------------------------------------ */
#define USEPRT(msg) fprintf(stderr, msg)
void
@@ -906,16 +948,15 @@
}
void
-UpdateSnowflake(rx)
-int rx;
+UpdateSnowflake(int rx)
{
Snow *snow;
-int NewX;
-int NewY;
-int tmp_x;
-int TouchDown;
-int InVisible;
-int NoErase;
+int NewX = 0;
+int NewY = 0;
+int tmp_x = 0;
+int TouchDown = 0;
+int InVisible = 0;
+int NoErase = 0;
snow = &snowflakes[rx];
NoErase = 0;
if (!snow->active) {
@@ -1058,7 +1099,6 @@
void InitSantaPixymaps()
{
int rc;
- char t[255];
#if debug
printf("InitSantaPixymaps: SantaSize=%d Rudolf=%d\n", SantaSize,Rudolf);
#endif
@@ -1135,7 +1175,6 @@
UpdateSanta()
{
int Visible;
-int tmp_x;
static int SantaXWindXcel = 0;
if (SantaVisible) EraseSanta();
if (wind) {
@@ -1282,12 +1321,9 @@
unsigned int nChildren;
Window dummy;
XWindowAttributes wa;
- int wx;
- XRectangle CatchRect;
- XRectangle AllowRect;
XRectangle WinRect;
+ int wx;
int winX, winY;
- int NouMoe;
unsigned int winHeight, winWidth;
unsigned int depth;
@@ -1327,7 +1363,7 @@
if (wa.map_state == IsViewable) {
XGetGeometry(display, children[wx], &dummy, &winX, &winY,
&winWidth, &winHeight, &borderWidth, &depth);
- /*if (winWidth == 1280) continue; /* debug */
+ /*if (winWidth == 1280) continue; */ /* debug */
#if debug
printf("\nw x:%d y:%d w:%d h:%d - bw:%d d:%d \n", winX,winY,winWidth,winHeight,borderWidth,depth);
#endif
@@ -1438,8 +1474,6 @@
}
void HEAr(int X,int Y,int W, int H) {
int AddX,AddY;
-int ClearX, ClearY;
-/*return; /* DEBUG */
AddX = X - MaxSnowFlakeHeight;
AddY = Y - MaxWinSnowDepth;
AddRect.height = H + MaxWinSnowDepth;
xsnow-1.42-vroot.patch:
vroot.h | 45 +++++++++++++++++++++++++++++++++++++++------
1 file changed, 39 insertions(+), 6 deletions(-)
--- NEW FILE xsnow-1.42-vroot.patch ---
#! /bin/sh /usr/share/dpatch/dpatch-run
## vroot.dpatch by <mlazar(a)email.cz>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Used vroot.h from xscreensaver 4.23.
@DPATCH@
diff -urNad xsnow-1.42~/vroot.h xsnow-1.42/vroot.h
--- xsnow-1.42~/vroot.h 1995-11-19 12:53:29.000000000 +0100
+++ xsnow-1.42/vroot.h 2008-10-28 20:55:54.000000000 +0100
@@ -1,3 +1,4 @@
+/* -*- Mode: C; tab-width: 2 -*- */
/*****************************************************************************/
/** Copyright 1991 by Andreas Stolcke **/
/** Copyright 1990 by Solbourne Computer Inc. **/
@@ -52,13 +53,29 @@
* - replaced all NULL's with properly cast 0's, 5/6/91
* - free children list (suggested by Mark Martin <mmm(a)cetia.fr>), 5/16/91
* - include X11/Xlib.h and support RootWindowOfScreen, too 9/17/91
+ *
+ * Jamie Zawinski <jwz(a)jwz.org>, 28-Apr-1997
+ * - use ANSI C
+ *
+ * Jamie Zawinski <jwz(a)jwz.org>, 3-Sep-2003
+ * - if the environment variable "XSCREENSAVER_WINDOW" is set, use that
+ * as the root window instead of searching for __SWM_VROOT.
+ *
+ * Jamie Zawinski <jwz(a)jwz.org>, 14-Aug-2004
+ * - changes to get gcc to stop whining about "type punning".
+ *
+ * Jamie Zawinski <jwz(a)jwz.org>, 16-Dec-2004
+ * - fixed that last fix.
*/
#ifndef _VROOT_H_
#define _VROOT_H_
+#define _XSCREENSAVER_VROOT_H_
#if !defined(lint) && !defined(SABER)
-static char vroot_rcsid[] = "$Id: vroot.h,v 1.4 1991/09/30 19:23:16 stolcke Exp stolcke $";
+static const char vroot_rcsid[] =
+ "#Id: vroot.h,v 1.8 2004/12/16 05:33:54 jwz Exp #" "\n"
+ "#Id: vroot.h,v 1.4 1991/09/30 19:23:16 stolcke Exp stolcke #";
#endif
#include <X11/X.h>
@@ -66,8 +83,11 @@
#include <X11/Xlib.h>
static Window
-VirtualRootWindowOfScreen(screen)
- Screen *screen;
+#ifdef __STDC__ /* ANSIfication added by jwz, to avoid superfluous warnings. */
+VirtualRootWindowOfScreen(Screen *screen)
+#else /* !__STDC__ */
+VirtualRootWindowOfScreen(screen) Screen *screen;
+#endif /* !__STDC__ */
{
static Screen *save_screen = (Screen *)0;
static Window root = (Window)0;
@@ -79,6 +99,19 @@
Window rootReturn, parentReturn, *children;
unsigned int numChildren;
+ /* first check for a hex or decimal window ID in the environment */
+ const char *xss_id = getenv("XSCREENSAVER_WINDOW");
+ if (xss_id && *xss_id) {
+ unsigned long id = 0;
+ char c;
+ if (1 == sscanf (xss_id, " 0x%lx %c", &id, &c) ||
+ 1 == sscanf (xss_id, " %lu %c", &id, &c)) {
+ root = (Window) id;
+ save_screen = screen;
+ return root;
+ }
+ }
+
root = RootWindowOfScreen(screen);
/* go look for a virtual root */
@@ -89,15 +122,15 @@
Atom actual_type;
int actual_format;
unsigned long nitems, bytesafter;
- Window *newRoot = (Window *)0;
+ unsigned char *newRoot = 0;
if (XGetWindowProperty(dpy, children[i],
__SWM_VROOT, 0, 1, False, XA_WINDOW,
&actual_type, &actual_format,
&nitems, &bytesafter,
- (unsigned char **) &newRoot) == Success
+ &newRoot) == Success
&& newRoot) {
- root = *newRoot;
+ root = *((Window *) newRoot);
break;
}
}
--- NEW FILE xsnow.spec ---
Name: xsnow
Version: 1.42
Release: 16%{?dist}
Summary: An X Window System based dose of Christmas cheer
Group: Amusements/Graphics
License: Distributable
URL: http://dropmix.xs4all.nl/rick/Xsnow/
Source0: http://dropmix.xs4all.nl/rick/Xsnow/%{name}-%{version}.tar.gz
# Fedora Core 3
Patch0: %{name}-1.42-misc.patch
# Debian
Patch1: %{name}-1.42-fixoptions.patch
Patch2: %{name}-1.42-Imakefile.patch
Patch3: %{name}-1.42-manpage.patch
Patch4: %{name}-1.42-vroot.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: libX11-devel
BuildRequires: libXt-devel
BuildRequires: libXpm-devel
BuildRequires: libXext-devel
BuildRequires: xorg-x11-proto-devel
BuildRequires: imake
%description
The Xsnow toy provides a continual gentle snowfall, trees, and Santa
Claus flying his sleigh around the screen. Xsnow is only for the X
Window System, though; consoles just get coal.
%prep
%setup -q
# Redraw windows when exiting
%patch0 -p1
# Patch broken -nokeepsnowonwindows and -nokeepsnow options
%patch1 -p1
# Do not link lm
%patch2 -p1
# xsnow.man belongs to section 6
%patch3 -p1
# Use vroot.h from xscreensaver 4.23
%patch4 -p1
%build
xmkmf -a
make CDEBUGFLAGS="$RPM_OPT_FLAGS" %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
# Install man page
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man6
install -m 644 xsnow.man $RPM_BUILD_ROOT%{_mandir}/man6/xsnow.6
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%{_bindir}/%{name}
%{_mandir}/man6/%{name}.6*
%doc README
%changelog
* Sat Dec 12 2009 Andrea Musuruane <musuruan(a)gmail.com> 1.42-16
- first release for RPM Fusion
- updated package to Fedora guidelines
- used Debian patches
* Tue Jun 15 2004 Elliot Lee <sopwith(a)redhat.com>
- rebuilt
* Tue Feb 24 2004 Than Ngo <than(a)redhat.com> 1.42-14
- cleanup codes, #116665
* Fri Feb 13 2004 Elliot Lee <sopwith(a)redhat.com>
- rebuilt
* Wed Nov 26 2003 Than Ngo <than(a)redhat.com> 1.42-12
- BuildRequires on XFree86-devel
* Wed Jun 04 2003 Elliot Lee <sopwith(a)redhat.com>
- rebuilt
* Wed Jan 22 2003 Tim Powers <timp(a)redhat.com>
- rebuilt
* Thu Nov 7 2002 Than Ngo <than(a)redhat.com> 1.42-9
- fix unpackaged files issue
* Mon Aug 26 2002 Than Ngo <than(a)redhat.com> 1.42-8
- get rid of desktop file (bug #69556)
* Wed Jul 24 2002 Than Ngo <than(a)redhat.com> 1.42-7
- desktop file issue (bug #69556)
* Fri Jun 21 2002 Tim Powers <timp(a)redhat.com>
- automated rebuild
* Thu May 23 2002 Tim Powers <timp(a)redhat.com>
- automated rebuild
* Wed Apr 24 2002 Than Ngo <than(a)redhat.com> 1.42-4
- add missing icon
* Mon Feb 25 2002 Than Ngo <than(a)redhat.com> 1.42-3
- rebuild in new enviroment
* Wed Jan 09 2002 Tim Powers <timp(a)redhat.com>
- automated rebuild
* Fri Dec 21 2001 Than Ngo <than(a)redhat.com> 1.42-1
- update to 1.42
- add Url
- fix bug #53192, #53194, #52132
* Mon May 21 2001 Tim Powers <timp(a)redhat.com>
- built for the distro
* Tue Nov 7 2000 Than Ngo <than(a)redhat.com>
- clean up specfile
* Mon Jul 24 2000 Prospector <prospector(a)redhat.com>
- rebuilt
* Thu Jul 13 2000 Than Ngo <than(a)redhat.de>
- rebuilt
* Thu Jun 01 2000 Than Ngo <than(a)redhat.de>
- rebuild for 7.0
- gzip man page
- remove wmconfig/xsnow, add xsnow.desktop
* Tue Jul 27 1999 Tim Powers <timp(a)redhat.com>
- rebuilt for 6.1
* Mon Dec 20 1998 Michael Maher <mike(a)redhat.com>
- built package for 6.0
* Fri May 08 1998 Prospector System <bugs(a)redhat.com>
- translations modified for de, fr, tr
* Wed Oct 22 1997 Donnie Barnes <djb(a)redhat.com>
- added wmconfig entry
* Mon Oct 20 1997 Donnie Barnes <djb(a)redhat.com>
- spec file cleanups
* Thu Jul 31 1997 Erik Troan <ewt(a)redhat.com>
- built against glibc
Index: .cvsignore
===================================================================
RCS file: /cvs/nonfree/rpms/xsnow/F-11/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore 22 Dec 2009 21:31:09 -0000 1.1
+++ .cvsignore 23 Dec 2009 19:54:50 -0000 1.2
@@ -0,0 +1 @@
+xsnow-1.42.tar.gz
Index: sources
===================================================================
RCS file: /cvs/nonfree/rpms/xsnow/F-11/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources 22 Dec 2009 21:31:09 -0000 1.1
+++ sources 23 Dec 2009 19:54:50 -0000 1.2
@@ -0,0 +1 @@
+451d8fc0a2b5393b428faa496a556036 xsnow-1.42.tar.gz
14 years, 11 months
rpms/xsnow/F-12 xsnow-1.42-Imakefile.patch, NONE, 1.1 xsnow-1.42-fixoptions.patch, NONE, 1.1 xsnow-1.42-manpage.patch, NONE, 1.1 xsnow-1.42-misc.patch, NONE, 1.1 xsnow-1.42-vroot.patch, NONE, 1.1 xsnow.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
by Andrea Musuruane
Author: musuruan
Update of /cvs/nonfree/rpms/xsnow/F-12
In directory se02.es.rpmfusion.net:/tmp/cvs-serv2865/F-12
Modified Files:
.cvsignore sources
Added Files:
xsnow-1.42-Imakefile.patch xsnow-1.42-fixoptions.patch
xsnow-1.42-manpage.patch xsnow-1.42-misc.patch
xsnow-1.42-vroot.patch xsnow.spec
Log Message:
First import
xsnow-1.42-Imakefile.patch:
Imakefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- NEW FILE xsnow-1.42-Imakefile.patch ---
#! /bin/sh /usr/share/dpatch/dpatch-run
## 03_Imakefile.dpatch by <mlazar(a)kerio.com>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: New patch generated from xsnow 1.42-7 diff.gz
@DPATCH@
--- xsnow-1.42.orig/Imakefile
+++ xsnow-1.42/Imakefile
@@ -1,4 +1,4 @@
-SYS_LIBRARIES = -lm -lXpm
+SYS_LIBRARIES = -lXpm
LOCAL_LIBRARIES = $(XLIB)
DEPLIBS = $(DEPXLIB)
SRCS = xsnow.c toon_root.c xsnow.h vroot.h
xsnow-1.42-fixoptions.patch:
xsnow.c | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
--- NEW FILE xsnow-1.42-fixoptions.patch ---
#! /bin/sh /usr/share/dpatch/dpatch-run
## 01_fixoptions.dpatch by <caiqian(a)localhost.localdomain>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: -nokeepsnow will not update screen if there are expose events. ie. after
## DP: start xsnow, move away a window, the snow will not show on the area of
## DP: previous window.
## DP:
## DP: -nokeepsnowonwindows will cause snow erased on the bottom of screen as
## DP: well.
@DPATCH@
--- xsnow-1.42.orig/xsnow.c 2001-12-15 23:44:47.000000000 +0000
+++ xsnow-1.42/xsnow.c 2005-12-27 16:18:47.923074008 +0000
@@ -653,7 +653,7 @@
if (stilltddr) {
stilltddr = !DDLT();
}
- if (!NoKeepSnow) {
+
switch (ev.type) {
case Expose:
#if debug
@@ -746,7 +746,7 @@
}
}
- }
+
#if debug
#endif
uSsleep(snowDelay);
@@ -1362,8 +1362,6 @@
XOffsetRegion(rscrr, 0,MaxYStep+MaxSnowFlakeHeight);
XSubtractRegion(Wr,rscrr, rscrr);
if (NoKeepSWin) {
- XDestroyRegion(snscr);
- snscr = XCreateRegion();
return;
}
XUnionRegion(rscrr,snscr, snscr);
@@ -1378,7 +1376,7 @@
XOffsetRegion(sar, 0,-MaxWinSnowDepth);
XSubtractRegion(sar,Wr, sar);
}
- if (!NoKeepSWin) {
+ if (!NoKeepSBot) {
AllowRect.x = 0;
AllowRect.y = display_height - MaxScrSnowDepth;
AllowRect.width = display_width - 1;
xsnow-1.42-manpage.patch:
xsnow.man | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- NEW FILE xsnow-1.42-manpage.patch ---
#! /bin/sh /usr/share/dpatch/dpatch-run
## 02_manpage.dpatch by <mlazar(a)kerio.com>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: New patch generated from xsnow 1.42-7 diff.gz
@DPATCH@
--- xsnow-1.42.orig/xsnow.man
+++ xsnow-1.42/xsnow.man
@@ -1,4 +1,4 @@
-.TH XSNOW 1 "Release 6" "X Version 11"
+.TH XSNOW 6 "Release 6" "X Version 11"
.SH NAME
xsnow \- let it snow on your desktop and windows
.SH SYNOPSIS
xsnow-1.42-misc.patch:
xsnow.c | 72 +++++++++++++++++++++++++++++++++++++++++++++++-----------------
1 file changed, 53 insertions(+), 19 deletions(-)
--- NEW FILE xsnow-1.42-misc.patch ---
--- xsnow-1.42/xsnow.c.orig 2001-12-16 00:44:47.000000000 +0100
+++ xsnow-1.42/xsnow.c 2004-02-24 21:12:31.670634766 +0100
@@ -227,7 +227,7 @@
#include <X11/xpm.h>
/**** V R O O T ****/
/* For vroot.h see the credits at the beginning of Xsnow */
-/***#include <X11/vroot.h> /* if vroot.h installed in /usr/include/X11 ***/
+/***#include <X11/vroot.h> */ /* if vroot.h installed in /usr/include/X11 ***/
/* replaced by ToonGetRootWindow
#include "vroot.h"
#include "toon.h"
@@ -321,6 +321,7 @@
unsigned int RunCounter = 0;
int SantaUpdateFactor = 3;
/* Forward decls */
+void finish();
void Usage();
void SigHandler();
void SigHupHandler();
@@ -374,6 +375,7 @@
int ac;
char *av[];
{
+ XExposeEvent event;
XGCValues xgcv;
int ax;
char *arg;
@@ -383,7 +385,6 @@
int Exposed;
int ConfigureNotified;
int i;
- int x,y;
Window root; /* used in getgeometry call */
int winX, winY;
unsigned int winHeight, winWidth;
@@ -773,9 +774,50 @@
XDestroyRegion(WDR);
XDestroyRegion(rscrr);
XClearWindow(display, rootWin);
+ /* Send an expose event so that any apps that draw to the window can
+ redraw them */
+ event.type = Expose;
+ event.send_event = True;
+ event.display = display;
+ event.window = rootWin;
+ event.x = 0;
+ event.y = 0;
+ event.width = display_width;
+ event.height = display_height;
+ XSendEvent(display, rootWin, False, Expose, (XEvent *) &event);
XCloseDisplay(display);
exit(0);
} /* End of the snow */
+
+
+void finish(void)
+{
+ XExposeEvent event;
+ XDestroyRegion(Wr);
+ XDestroyRegion(snscr);
+ XDestroyRegion(sar);
+ XDestroyRegion(PrevWr);
+ XDestroyRegion(WDR);
+ XDestroyRegion(rscrr);
+ XClearWindow(display, rootWin);
+
+ /* Send an expose event so that any apps that draw to the window can
+ redraw them */
+ event.type = Expose;
+ event.send_event = True;
+ event.display = display;
+ event.window = rootWin;
+ event.x = 0;
+ event.y = 0;
+ event.width = display_width;
+ event.height = display_height;
+ XSendEvent(display, rootWin, False, Expose, (XEvent *) &event);
+
+ XCloseDisplay(display);
+ exit(0);
+}
+
+
/* ------------------------------------------------------------------ */
#define USEPRT(msg) fprintf(stderr, msg)
void
@@ -906,16 +948,15 @@
}
void
-UpdateSnowflake(rx)
-int rx;
+UpdateSnowflake(int rx)
{
Snow *snow;
-int NewX;
-int NewY;
-int tmp_x;
-int TouchDown;
-int InVisible;
-int NoErase;
+int NewX = 0;
+int NewY = 0;
+int tmp_x = 0;
+int TouchDown = 0;
+int InVisible = 0;
+int NoErase = 0;
snow = &snowflakes[rx];
NoErase = 0;
if (!snow->active) {
@@ -1058,7 +1099,6 @@
void InitSantaPixymaps()
{
int rc;
- char t[255];
#if debug
printf("InitSantaPixymaps: SantaSize=%d Rudolf=%d\n", SantaSize,Rudolf);
#endif
@@ -1135,7 +1175,6 @@
UpdateSanta()
{
int Visible;
-int tmp_x;
static int SantaXWindXcel = 0;
if (SantaVisible) EraseSanta();
if (wind) {
@@ -1282,12 +1321,9 @@
unsigned int nChildren;
Window dummy;
XWindowAttributes wa;
- int wx;
- XRectangle CatchRect;
- XRectangle AllowRect;
XRectangle WinRect;
+ int wx;
int winX, winY;
- int NouMoe;
unsigned int winHeight, winWidth;
unsigned int depth;
@@ -1327,7 +1363,7 @@
if (wa.map_state == IsViewable) {
XGetGeometry(display, children[wx], &dummy, &winX, &winY,
&winWidth, &winHeight, &borderWidth, &depth);
- /*if (winWidth == 1280) continue; /* debug */
+ /*if (winWidth == 1280) continue; */ /* debug */
#if debug
printf("\nw x:%d y:%d w:%d h:%d - bw:%d d:%d \n", winX,winY,winWidth,winHeight,borderWidth,depth);
#endif
@@ -1438,8 +1474,6 @@
}
void HEAr(int X,int Y,int W, int H) {
int AddX,AddY;
-int ClearX, ClearY;
-/*return; /* DEBUG */
AddX = X - MaxSnowFlakeHeight;
AddY = Y - MaxWinSnowDepth;
AddRect.height = H + MaxWinSnowDepth;
xsnow-1.42-vroot.patch:
vroot.h | 45 +++++++++++++++++++++++++++++++++++++++------
1 file changed, 39 insertions(+), 6 deletions(-)
--- NEW FILE xsnow-1.42-vroot.patch ---
#! /bin/sh /usr/share/dpatch/dpatch-run
## vroot.dpatch by <mlazar(a)email.cz>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Used vroot.h from xscreensaver 4.23.
@DPATCH@
diff -urNad xsnow-1.42~/vroot.h xsnow-1.42/vroot.h
--- xsnow-1.42~/vroot.h 1995-11-19 12:53:29.000000000 +0100
+++ xsnow-1.42/vroot.h 2008-10-28 20:55:54.000000000 +0100
@@ -1,3 +1,4 @@
+/* -*- Mode: C; tab-width: 2 -*- */
/*****************************************************************************/
/** Copyright 1991 by Andreas Stolcke **/
/** Copyright 1990 by Solbourne Computer Inc. **/
@@ -52,13 +53,29 @@
* - replaced all NULL's with properly cast 0's, 5/6/91
* - free children list (suggested by Mark Martin <mmm(a)cetia.fr>), 5/16/91
* - include X11/Xlib.h and support RootWindowOfScreen, too 9/17/91
+ *
+ * Jamie Zawinski <jwz(a)jwz.org>, 28-Apr-1997
+ * - use ANSI C
+ *
+ * Jamie Zawinski <jwz(a)jwz.org>, 3-Sep-2003
+ * - if the environment variable "XSCREENSAVER_WINDOW" is set, use that
+ * as the root window instead of searching for __SWM_VROOT.
+ *
+ * Jamie Zawinski <jwz(a)jwz.org>, 14-Aug-2004
+ * - changes to get gcc to stop whining about "type punning".
+ *
+ * Jamie Zawinski <jwz(a)jwz.org>, 16-Dec-2004
+ * - fixed that last fix.
*/
#ifndef _VROOT_H_
#define _VROOT_H_
+#define _XSCREENSAVER_VROOT_H_
#if !defined(lint) && !defined(SABER)
-static char vroot_rcsid[] = "$Id: vroot.h,v 1.4 1991/09/30 19:23:16 stolcke Exp stolcke $";
+static const char vroot_rcsid[] =
+ "#Id: vroot.h,v 1.8 2004/12/16 05:33:54 jwz Exp #" "\n"
+ "#Id: vroot.h,v 1.4 1991/09/30 19:23:16 stolcke Exp stolcke #";
#endif
#include <X11/X.h>
@@ -66,8 +83,11 @@
#include <X11/Xlib.h>
static Window
-VirtualRootWindowOfScreen(screen)
- Screen *screen;
+#ifdef __STDC__ /* ANSIfication added by jwz, to avoid superfluous warnings. */
+VirtualRootWindowOfScreen(Screen *screen)
+#else /* !__STDC__ */
+VirtualRootWindowOfScreen(screen) Screen *screen;
+#endif /* !__STDC__ */
{
static Screen *save_screen = (Screen *)0;
static Window root = (Window)0;
@@ -79,6 +99,19 @@
Window rootReturn, parentReturn, *children;
unsigned int numChildren;
+ /* first check for a hex or decimal window ID in the environment */
+ const char *xss_id = getenv("XSCREENSAVER_WINDOW");
+ if (xss_id && *xss_id) {
+ unsigned long id = 0;
+ char c;
+ if (1 == sscanf (xss_id, " 0x%lx %c", &id, &c) ||
+ 1 == sscanf (xss_id, " %lu %c", &id, &c)) {
+ root = (Window) id;
+ save_screen = screen;
+ return root;
+ }
+ }
+
root = RootWindowOfScreen(screen);
/* go look for a virtual root */
@@ -89,15 +122,15 @@
Atom actual_type;
int actual_format;
unsigned long nitems, bytesafter;
- Window *newRoot = (Window *)0;
+ unsigned char *newRoot = 0;
if (XGetWindowProperty(dpy, children[i],
__SWM_VROOT, 0, 1, False, XA_WINDOW,
&actual_type, &actual_format,
&nitems, &bytesafter,
- (unsigned char **) &newRoot) == Success
+ &newRoot) == Success
&& newRoot) {
- root = *newRoot;
+ root = *((Window *) newRoot);
break;
}
}
--- NEW FILE xsnow.spec ---
Name: xsnow
Version: 1.42
Release: 16%{?dist}
Summary: An X Window System based dose of Christmas cheer
Group: Amusements/Graphics
License: Distributable
URL: http://dropmix.xs4all.nl/rick/Xsnow/
Source0: http://dropmix.xs4all.nl/rick/Xsnow/%{name}-%{version}.tar.gz
# Fedora Core 3
Patch0: %{name}-1.42-misc.patch
# Debian
Patch1: %{name}-1.42-fixoptions.patch
Patch2: %{name}-1.42-Imakefile.patch
Patch3: %{name}-1.42-manpage.patch
Patch4: %{name}-1.42-vroot.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: libX11-devel
BuildRequires: libXt-devel
BuildRequires: libXpm-devel
BuildRequires: libXext-devel
BuildRequires: xorg-x11-proto-devel
BuildRequires: imake
%description
The Xsnow toy provides a continual gentle snowfall, trees, and Santa
Claus flying his sleigh around the screen. Xsnow is only for the X
Window System, though; consoles just get coal.
%prep
%setup -q
# Redraw windows when exiting
%patch0 -p1
# Patch broken -nokeepsnowonwindows and -nokeepsnow options
%patch1 -p1
# Do not link lm
%patch2 -p1
# xsnow.man belongs to section 6
%patch3 -p1
# Use vroot.h from xscreensaver 4.23
%patch4 -p1
%build
xmkmf -a
make CDEBUGFLAGS="$RPM_OPT_FLAGS" %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
# Install man page
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man6
install -m 644 xsnow.man $RPM_BUILD_ROOT%{_mandir}/man6/xsnow.6
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%{_bindir}/%{name}
%{_mandir}/man6/%{name}.6*
%doc README
%changelog
* Sat Dec 12 2009 Andrea Musuruane <musuruan(a)gmail.com> 1.42-16
- first release for RPM Fusion
- updated package to Fedora guidelines
- used Debian patches
* Tue Jun 15 2004 Elliot Lee <sopwith(a)redhat.com>
- rebuilt
* Tue Feb 24 2004 Than Ngo <than(a)redhat.com> 1.42-14
- cleanup codes, #116665
* Fri Feb 13 2004 Elliot Lee <sopwith(a)redhat.com>
- rebuilt
* Wed Nov 26 2003 Than Ngo <than(a)redhat.com> 1.42-12
- BuildRequires on XFree86-devel
* Wed Jun 04 2003 Elliot Lee <sopwith(a)redhat.com>
- rebuilt
* Wed Jan 22 2003 Tim Powers <timp(a)redhat.com>
- rebuilt
* Thu Nov 7 2002 Than Ngo <than(a)redhat.com> 1.42-9
- fix unpackaged files issue
* Mon Aug 26 2002 Than Ngo <than(a)redhat.com> 1.42-8
- get rid of desktop file (bug #69556)
* Wed Jul 24 2002 Than Ngo <than(a)redhat.com> 1.42-7
- desktop file issue (bug #69556)
* Fri Jun 21 2002 Tim Powers <timp(a)redhat.com>
- automated rebuild
* Thu May 23 2002 Tim Powers <timp(a)redhat.com>
- automated rebuild
* Wed Apr 24 2002 Than Ngo <than(a)redhat.com> 1.42-4
- add missing icon
* Mon Feb 25 2002 Than Ngo <than(a)redhat.com> 1.42-3
- rebuild in new enviroment
* Wed Jan 09 2002 Tim Powers <timp(a)redhat.com>
- automated rebuild
* Fri Dec 21 2001 Than Ngo <than(a)redhat.com> 1.42-1
- update to 1.42
- add Url
- fix bug #53192, #53194, #52132
* Mon May 21 2001 Tim Powers <timp(a)redhat.com>
- built for the distro
* Tue Nov 7 2000 Than Ngo <than(a)redhat.com>
- clean up specfile
* Mon Jul 24 2000 Prospector <prospector(a)redhat.com>
- rebuilt
* Thu Jul 13 2000 Than Ngo <than(a)redhat.de>
- rebuilt
* Thu Jun 01 2000 Than Ngo <than(a)redhat.de>
- rebuild for 7.0
- gzip man page
- remove wmconfig/xsnow, add xsnow.desktop
* Tue Jul 27 1999 Tim Powers <timp(a)redhat.com>
- rebuilt for 6.1
* Mon Dec 20 1998 Michael Maher <mike(a)redhat.com>
- built package for 6.0
* Fri May 08 1998 Prospector System <bugs(a)redhat.com>
- translations modified for de, fr, tr
* Wed Oct 22 1997 Donnie Barnes <djb(a)redhat.com>
- added wmconfig entry
* Mon Oct 20 1997 Donnie Barnes <djb(a)redhat.com>
- spec file cleanups
* Thu Jul 31 1997 Erik Troan <ewt(a)redhat.com>
- built against glibc
Index: .cvsignore
===================================================================
RCS file: /cvs/nonfree/rpms/xsnow/F-12/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore 22 Dec 2009 21:31:09 -0000 1.1
+++ .cvsignore 23 Dec 2009 19:52:27 -0000 1.2
@@ -0,0 +1 @@
+xsnow-1.42.tar.gz
Index: sources
===================================================================
RCS file: /cvs/nonfree/rpms/xsnow/F-12/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources 22 Dec 2009 21:31:09 -0000 1.1
+++ sources 23 Dec 2009 19:52:27 -0000 1.2
@@ -0,0 +1 @@
+451d8fc0a2b5393b428faa496a556036 xsnow-1.42.tar.gz
14 years, 11 months
rpms/xsnow/devel xsnow-1.42-Imakefile.patch, NONE, 1.1 xsnow-1.42-fixoptions.patch, NONE, 1.1 xsnow-1.42-manpage.patch, NONE, 1.1 xsnow-1.42-misc.patch, NONE, 1.1 xsnow-1.42-vroot.patch, NONE, 1.1 xsnow.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
by Andrea Musuruane
Author: musuruan
Update of /cvs/nonfree/rpms/xsnow/devel
In directory se02.es.rpmfusion.net:/tmp/cvs-serv2279/devel
Modified Files:
.cvsignore sources
Added Files:
xsnow-1.42-Imakefile.patch xsnow-1.42-fixoptions.patch
xsnow-1.42-manpage.patch xsnow-1.42-misc.patch
xsnow-1.42-vroot.patch xsnow.spec
Log Message:
Firt import
xsnow-1.42-Imakefile.patch:
Imakefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- NEW FILE xsnow-1.42-Imakefile.patch ---
#! /bin/sh /usr/share/dpatch/dpatch-run
## 03_Imakefile.dpatch by <mlazar(a)kerio.com>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: New patch generated from xsnow 1.42-7 diff.gz
@DPATCH@
--- xsnow-1.42.orig/Imakefile
+++ xsnow-1.42/Imakefile
@@ -1,4 +1,4 @@
-SYS_LIBRARIES = -lm -lXpm
+SYS_LIBRARIES = -lXpm
LOCAL_LIBRARIES = $(XLIB)
DEPLIBS = $(DEPXLIB)
SRCS = xsnow.c toon_root.c xsnow.h vroot.h
xsnow-1.42-fixoptions.patch:
xsnow.c | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
--- NEW FILE xsnow-1.42-fixoptions.patch ---
#! /bin/sh /usr/share/dpatch/dpatch-run
## 01_fixoptions.dpatch by <caiqian(a)localhost.localdomain>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: -nokeepsnow will not update screen if there are expose events. ie. after
## DP: start xsnow, move away a window, the snow will not show on the area of
## DP: previous window.
## DP:
## DP: -nokeepsnowonwindows will cause snow erased on the bottom of screen as
## DP: well.
@DPATCH@
--- xsnow-1.42.orig/xsnow.c 2001-12-15 23:44:47.000000000 +0000
+++ xsnow-1.42/xsnow.c 2005-12-27 16:18:47.923074008 +0000
@@ -653,7 +653,7 @@
if (stilltddr) {
stilltddr = !DDLT();
}
- if (!NoKeepSnow) {
+
switch (ev.type) {
case Expose:
#if debug
@@ -746,7 +746,7 @@
}
}
- }
+
#if debug
#endif
uSsleep(snowDelay);
@@ -1362,8 +1362,6 @@
XOffsetRegion(rscrr, 0,MaxYStep+MaxSnowFlakeHeight);
XSubtractRegion(Wr,rscrr, rscrr);
if (NoKeepSWin) {
- XDestroyRegion(snscr);
- snscr = XCreateRegion();
return;
}
XUnionRegion(rscrr,snscr, snscr);
@@ -1378,7 +1376,7 @@
XOffsetRegion(sar, 0,-MaxWinSnowDepth);
XSubtractRegion(sar,Wr, sar);
}
- if (!NoKeepSWin) {
+ if (!NoKeepSBot) {
AllowRect.x = 0;
AllowRect.y = display_height - MaxScrSnowDepth;
AllowRect.width = display_width - 1;
xsnow-1.42-manpage.patch:
xsnow.man | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- NEW FILE xsnow-1.42-manpage.patch ---
#! /bin/sh /usr/share/dpatch/dpatch-run
## 02_manpage.dpatch by <mlazar(a)kerio.com>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: New patch generated from xsnow 1.42-7 diff.gz
@DPATCH@
--- xsnow-1.42.orig/xsnow.man
+++ xsnow-1.42/xsnow.man
@@ -1,4 +1,4 @@
-.TH XSNOW 1 "Release 6" "X Version 11"
+.TH XSNOW 6 "Release 6" "X Version 11"
.SH NAME
xsnow \- let it snow on your desktop and windows
.SH SYNOPSIS
xsnow-1.42-misc.patch:
xsnow.c | 72 +++++++++++++++++++++++++++++++++++++++++++++++-----------------
1 file changed, 53 insertions(+), 19 deletions(-)
--- NEW FILE xsnow-1.42-misc.patch ---
--- xsnow-1.42/xsnow.c.orig 2001-12-16 00:44:47.000000000 +0100
+++ xsnow-1.42/xsnow.c 2004-02-24 21:12:31.670634766 +0100
@@ -227,7 +227,7 @@
#include <X11/xpm.h>
/**** V R O O T ****/
/* For vroot.h see the credits at the beginning of Xsnow */
-/***#include <X11/vroot.h> /* if vroot.h installed in /usr/include/X11 ***/
+/***#include <X11/vroot.h> */ /* if vroot.h installed in /usr/include/X11 ***/
/* replaced by ToonGetRootWindow
#include "vroot.h"
#include "toon.h"
@@ -321,6 +321,7 @@
unsigned int RunCounter = 0;
int SantaUpdateFactor = 3;
/* Forward decls */
+void finish();
void Usage();
void SigHandler();
void SigHupHandler();
@@ -374,6 +375,7 @@
int ac;
char *av[];
{
+ XExposeEvent event;
XGCValues xgcv;
int ax;
char *arg;
@@ -383,7 +385,6 @@
int Exposed;
int ConfigureNotified;
int i;
- int x,y;
Window root; /* used in getgeometry call */
int winX, winY;
unsigned int winHeight, winWidth;
@@ -773,9 +774,50 @@
XDestroyRegion(WDR);
XDestroyRegion(rscrr);
XClearWindow(display, rootWin);
+ /* Send an expose event so that any apps that draw to the window can
+ redraw them */
+ event.type = Expose;
+ event.send_event = True;
+ event.display = display;
+ event.window = rootWin;
+ event.x = 0;
+ event.y = 0;
+ event.width = display_width;
+ event.height = display_height;
+ XSendEvent(display, rootWin, False, Expose, (XEvent *) &event);
XCloseDisplay(display);
exit(0);
} /* End of the snow */
+
+
+void finish(void)
+{
+ XExposeEvent event;
+ XDestroyRegion(Wr);
+ XDestroyRegion(snscr);
+ XDestroyRegion(sar);
+ XDestroyRegion(PrevWr);
+ XDestroyRegion(WDR);
+ XDestroyRegion(rscrr);
+ XClearWindow(display, rootWin);
+
+ /* Send an expose event so that any apps that draw to the window can
+ redraw them */
+ event.type = Expose;
+ event.send_event = True;
+ event.display = display;
+ event.window = rootWin;
+ event.x = 0;
+ event.y = 0;
+ event.width = display_width;
+ event.height = display_height;
+ XSendEvent(display, rootWin, False, Expose, (XEvent *) &event);
+
+ XCloseDisplay(display);
+ exit(0);
+}
+
+
/* ------------------------------------------------------------------ */
#define USEPRT(msg) fprintf(stderr, msg)
void
@@ -906,16 +948,15 @@
}
void
-UpdateSnowflake(rx)
-int rx;
+UpdateSnowflake(int rx)
{
Snow *snow;
-int NewX;
-int NewY;
-int tmp_x;
-int TouchDown;
-int InVisible;
-int NoErase;
+int NewX = 0;
+int NewY = 0;
+int tmp_x = 0;
+int TouchDown = 0;
+int InVisible = 0;
+int NoErase = 0;
snow = &snowflakes[rx];
NoErase = 0;
if (!snow->active) {
@@ -1058,7 +1099,6 @@
void InitSantaPixymaps()
{
int rc;
- char t[255];
#if debug
printf("InitSantaPixymaps: SantaSize=%d Rudolf=%d\n", SantaSize,Rudolf);
#endif
@@ -1135,7 +1175,6 @@
UpdateSanta()
{
int Visible;
-int tmp_x;
static int SantaXWindXcel = 0;
if (SantaVisible) EraseSanta();
if (wind) {
@@ -1282,12 +1321,9 @@
unsigned int nChildren;
Window dummy;
XWindowAttributes wa;
- int wx;
- XRectangle CatchRect;
- XRectangle AllowRect;
XRectangle WinRect;
+ int wx;
int winX, winY;
- int NouMoe;
unsigned int winHeight, winWidth;
unsigned int depth;
@@ -1327,7 +1363,7 @@
if (wa.map_state == IsViewable) {
XGetGeometry(display, children[wx], &dummy, &winX, &winY,
&winWidth, &winHeight, &borderWidth, &depth);
- /*if (winWidth == 1280) continue; /* debug */
+ /*if (winWidth == 1280) continue; */ /* debug */
#if debug
printf("\nw x:%d y:%d w:%d h:%d - bw:%d d:%d \n", winX,winY,winWidth,winHeight,borderWidth,depth);
#endif
@@ -1438,8 +1474,6 @@
}
void HEAr(int X,int Y,int W, int H) {
int AddX,AddY;
-int ClearX, ClearY;
-/*return; /* DEBUG */
AddX = X - MaxSnowFlakeHeight;
AddY = Y - MaxWinSnowDepth;
AddRect.height = H + MaxWinSnowDepth;
xsnow-1.42-vroot.patch:
vroot.h | 45 +++++++++++++++++++++++++++++++++++++++------
1 file changed, 39 insertions(+), 6 deletions(-)
--- NEW FILE xsnow-1.42-vroot.patch ---
#! /bin/sh /usr/share/dpatch/dpatch-run
## vroot.dpatch by <mlazar(a)email.cz>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Used vroot.h from xscreensaver 4.23.
@DPATCH@
diff -urNad xsnow-1.42~/vroot.h xsnow-1.42/vroot.h
--- xsnow-1.42~/vroot.h 1995-11-19 12:53:29.000000000 +0100
+++ xsnow-1.42/vroot.h 2008-10-28 20:55:54.000000000 +0100
@@ -1,3 +1,4 @@
+/* -*- Mode: C; tab-width: 2 -*- */
/*****************************************************************************/
/** Copyright 1991 by Andreas Stolcke **/
/** Copyright 1990 by Solbourne Computer Inc. **/
@@ -52,13 +53,29 @@
* - replaced all NULL's with properly cast 0's, 5/6/91
* - free children list (suggested by Mark Martin <mmm(a)cetia.fr>), 5/16/91
* - include X11/Xlib.h and support RootWindowOfScreen, too 9/17/91
+ *
+ * Jamie Zawinski <jwz(a)jwz.org>, 28-Apr-1997
+ * - use ANSI C
+ *
+ * Jamie Zawinski <jwz(a)jwz.org>, 3-Sep-2003
+ * - if the environment variable "XSCREENSAVER_WINDOW" is set, use that
+ * as the root window instead of searching for __SWM_VROOT.
+ *
+ * Jamie Zawinski <jwz(a)jwz.org>, 14-Aug-2004
+ * - changes to get gcc to stop whining about "type punning".
+ *
+ * Jamie Zawinski <jwz(a)jwz.org>, 16-Dec-2004
+ * - fixed that last fix.
*/
#ifndef _VROOT_H_
#define _VROOT_H_
+#define _XSCREENSAVER_VROOT_H_
#if !defined(lint) && !defined(SABER)
-static char vroot_rcsid[] = "$Id: vroot.h,v 1.4 1991/09/30 19:23:16 stolcke Exp stolcke $";
+static const char vroot_rcsid[] =
+ "#Id: vroot.h,v 1.8 2004/12/16 05:33:54 jwz Exp #" "\n"
+ "#Id: vroot.h,v 1.4 1991/09/30 19:23:16 stolcke Exp stolcke #";
#endif
#include <X11/X.h>
@@ -66,8 +83,11 @@
#include <X11/Xlib.h>
static Window
-VirtualRootWindowOfScreen(screen)
- Screen *screen;
+#ifdef __STDC__ /* ANSIfication added by jwz, to avoid superfluous warnings. */
+VirtualRootWindowOfScreen(Screen *screen)
+#else /* !__STDC__ */
+VirtualRootWindowOfScreen(screen) Screen *screen;
+#endif /* !__STDC__ */
{
static Screen *save_screen = (Screen *)0;
static Window root = (Window)0;
@@ -79,6 +99,19 @@
Window rootReturn, parentReturn, *children;
unsigned int numChildren;
+ /* first check for a hex or decimal window ID in the environment */
+ const char *xss_id = getenv("XSCREENSAVER_WINDOW");
+ if (xss_id && *xss_id) {
+ unsigned long id = 0;
+ char c;
+ if (1 == sscanf (xss_id, " 0x%lx %c", &id, &c) ||
+ 1 == sscanf (xss_id, " %lu %c", &id, &c)) {
+ root = (Window) id;
+ save_screen = screen;
+ return root;
+ }
+ }
+
root = RootWindowOfScreen(screen);
/* go look for a virtual root */
@@ -89,15 +122,15 @@
Atom actual_type;
int actual_format;
unsigned long nitems, bytesafter;
- Window *newRoot = (Window *)0;
+ unsigned char *newRoot = 0;
if (XGetWindowProperty(dpy, children[i],
__SWM_VROOT, 0, 1, False, XA_WINDOW,
&actual_type, &actual_format,
&nitems, &bytesafter,
- (unsigned char **) &newRoot) == Success
+ &newRoot) == Success
&& newRoot) {
- root = *newRoot;
+ root = *((Window *) newRoot);
break;
}
}
--- NEW FILE xsnow.spec ---
Name: xsnow
Version: 1.42
Release: 16%{?dist}
Summary: An X Window System based dose of Christmas cheer
Group: Amusements/Graphics
License: Distributable
URL: http://dropmix.xs4all.nl/rick/Xsnow/
Source0: http://dropmix.xs4all.nl/rick/Xsnow/%{name}-%{version}.tar.gz
# Fedora Core 3
Patch0: %{name}-1.42-misc.patch
# Debian
Patch1: %{name}-1.42-fixoptions.patch
Patch2: %{name}-1.42-Imakefile.patch
Patch3: %{name}-1.42-manpage.patch
Patch4: %{name}-1.42-vroot.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: libX11-devel
BuildRequires: libXt-devel
BuildRequires: libXpm-devel
BuildRequires: libXext-devel
BuildRequires: xorg-x11-proto-devel
BuildRequires: imake
%description
The Xsnow toy provides a continual gentle snowfall, trees, and Santa
Claus flying his sleigh around the screen. Xsnow is only for the X
Window System, though; consoles just get coal.
%prep
%setup -q
# Redraw windows when exiting
%patch0 -p1
# Patch broken -nokeepsnowonwindows and -nokeepsnow options
%patch1 -p1
# Do not link lm
%patch2 -p1
# xsnow.man belongs to section 6
%patch3 -p1
# Use vroot.h from xscreensaver 4.23
%patch4 -p1
%build
xmkmf -a
make CDEBUGFLAGS="$RPM_OPT_FLAGS" %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
# Install man page
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man6
install -m 644 xsnow.man $RPM_BUILD_ROOT%{_mandir}/man6/xsnow.6
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%{_bindir}/%{name}
%{_mandir}/man6/%{name}.6*
%doc README
%changelog
* Sat Dec 12 2009 Andrea Musuruane <musuruan(a)gmail.com> 1.42-16
- first release for RPM Fusion
- updated package to Fedora guidelines
- used Debian patches
* Tue Jun 15 2004 Elliot Lee <sopwith(a)redhat.com>
- rebuilt
* Tue Feb 24 2004 Than Ngo <than(a)redhat.com> 1.42-14
- cleanup codes, #116665
* Fri Feb 13 2004 Elliot Lee <sopwith(a)redhat.com>
- rebuilt
* Wed Nov 26 2003 Than Ngo <than(a)redhat.com> 1.42-12
- BuildRequires on XFree86-devel
* Wed Jun 04 2003 Elliot Lee <sopwith(a)redhat.com>
- rebuilt
* Wed Jan 22 2003 Tim Powers <timp(a)redhat.com>
- rebuilt
* Thu Nov 7 2002 Than Ngo <than(a)redhat.com> 1.42-9
- fix unpackaged files issue
* Mon Aug 26 2002 Than Ngo <than(a)redhat.com> 1.42-8
- get rid of desktop file (bug #69556)
* Wed Jul 24 2002 Than Ngo <than(a)redhat.com> 1.42-7
- desktop file issue (bug #69556)
* Fri Jun 21 2002 Tim Powers <timp(a)redhat.com>
- automated rebuild
* Thu May 23 2002 Tim Powers <timp(a)redhat.com>
- automated rebuild
* Wed Apr 24 2002 Than Ngo <than(a)redhat.com> 1.42-4
- add missing icon
* Mon Feb 25 2002 Than Ngo <than(a)redhat.com> 1.42-3
- rebuild in new enviroment
* Wed Jan 09 2002 Tim Powers <timp(a)redhat.com>
- automated rebuild
* Fri Dec 21 2001 Than Ngo <than(a)redhat.com> 1.42-1
- update to 1.42
- add Url
- fix bug #53192, #53194, #52132
* Mon May 21 2001 Tim Powers <timp(a)redhat.com>
- built for the distro
* Tue Nov 7 2000 Than Ngo <than(a)redhat.com>
- clean up specfile
* Mon Jul 24 2000 Prospector <prospector(a)redhat.com>
- rebuilt
* Thu Jul 13 2000 Than Ngo <than(a)redhat.de>
- rebuilt
* Thu Jun 01 2000 Than Ngo <than(a)redhat.de>
- rebuild for 7.0
- gzip man page
- remove wmconfig/xsnow, add xsnow.desktop
* Tue Jul 27 1999 Tim Powers <timp(a)redhat.com>
- rebuilt for 6.1
* Mon Dec 20 1998 Michael Maher <mike(a)redhat.com>
- built package for 6.0
* Fri May 08 1998 Prospector System <bugs(a)redhat.com>
- translations modified for de, fr, tr
* Wed Oct 22 1997 Donnie Barnes <djb(a)redhat.com>
- added wmconfig entry
* Mon Oct 20 1997 Donnie Barnes <djb(a)redhat.com>
- spec file cleanups
* Thu Jul 31 1997 Erik Troan <ewt(a)redhat.com>
- built against glibc
Index: .cvsignore
===================================================================
RCS file: /cvs/nonfree/rpms/xsnow/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore 22 Dec 2009 21:31:09 -0000 1.1
+++ .cvsignore 23 Dec 2009 19:51:08 -0000 1.2
@@ -0,0 +1 @@
+xsnow-1.42.tar.gz
Index: sources
===================================================================
RCS file: /cvs/nonfree/rpms/xsnow/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources 22 Dec 2009 21:31:09 -0000 1.1
+++ sources 23 Dec 2009 19:51:08 -0000 1.2
@@ -0,0 +1 @@
+451d8fc0a2b5393b428faa496a556036 xsnow-1.42.tar.gz
14 years, 11 months