Compare commits

...
Sign in to create a new pull request.

5 commits

Author SHA1 Message Date
Fedora Release Engineering
92448c6a76 dist-git conversion 2010-07-29 16:14:31 +00:00
Bill Nottingham
b47235df9a Fix typo that causes a failure to update the common directory. (releng
#2781)
2009-11-26 01:39:29 +00:00
97fc43f57a - Add libSM-devel dependency in EL-5 2008-12-28 22:09:01 +00:00
472af87d8a Initial import 2008-12-28 20:31:38 +00:00
e8b1e436db Initialize branch EL-5 for xteddy 2008-12-28 19:18:22 +00:00
6 changed files with 95 additions and 21 deletions

View file

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
xteddy-2.0.1.tar.gz

View file

@ -1,21 +0,0 @@
# Makefile for source rpm: xteddy
# $Id$
NAME := xteddy
SPECFILE = $(firstword $(wildcard *.spec))
define find-makefile-common
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
endef
MAKEFILE_COMMON := $(shell $(find-makefile-common))
ifeq ($(MAKEFILE_COMMON),)
# attept a checkout
define checkout-makefile-common
test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
endef
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
endif
include $(MAKEFILE_COMMON)

View file

@ -0,0 +1 @@
d33bfe05f18259a3f7fd17ae256c5644 xteddy-2.0.1.tar.gz

32
xteddy-2.0.1-visual.patch Normal file
View file

@ -0,0 +1,32 @@
Imlib picks visual with highest possible depth, which are ARGB visuals in
case Composite extensions are in use, and which it can not handle. Use the
default, RGB, instead.
Lubomir Rintel <lkundrak@v3.sk>
diff -up xteddy-2.0.1/xteddy.c.visual xteddy-2.0.1/xteddy.c
--- xteddy-2.0.1/xteddy.c.visual 2008-12-04 12:30:18.000000000 +0100
+++ xteddy-2.0.1/xteddy.c 2008-12-04 12:30:21.000000000 +0100
@@ -122,6 +122,8 @@ int main(int argc, char **argv)
Cursor cursor;
char *teddy;
char *file;
+ ImlibInitParams params;
+ Visual *visual;
/* Window movement variables */
XWindowChanges winchanges;
@@ -172,7 +174,12 @@ int main(int argc, char **argv)
display_width = DisplayWidth(display, screen_num);
display_height = DisplayHeight(display, screen_num);
- if ( !(id=Imlib_init(display)) ) return -1;
+ /* Determine the correct visual */
+ visual = DefaultVisual(display, screen_num);
+ params.flags = PARAMS_VISUALID;
+ params.visualid = visual->visualid;
+
+ if ( !(id=Imlib_init_with_params(display, &params)) ) return -1;
if ( !(file = InitTeddy(teddy)) ) {
fprintf(stderr, "Can not find any image with name %s.\n", teddy);
return -1;

61
xteddy.spec Normal file
View file

@ -0,0 +1,61 @@
Name: xteddy
Version: 2.0.1
Release: 2%{?dist}.1
Summary: Tool to sit around silently, look cute, and make you smile
Group: Amusements/Games
License: GPL+
URL: http://webstaff.itn.liu.se/~stegu/xteddy/
Source0: http://webstaff.itn.liu.se/~stegu/xteddy/%{name}-%{version}.tar.gz
# Aleady submitted upstream by mail
Patch0: xteddy-2.0.1-visual.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: imlib-devel libpng-devel
BuildRequires: libSM-devel
%description
Xteddy is your virtual comfort when things get rough. It can do everything
a real teddy bear can do. That is, I can sit around silently, look cute,
and make you smile.
%prep
%setup -q
%patch0 -p1 -b .visual
%build
%configure
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%{_bindir}/xteddy
%{_bindir}/xteddy_test
%{_bindir}/xtoys
%{_mandir}/man1/xteddy.1*
%{_datadir}/xteddy
%doc COPYING README AUTHORS ChangeLog NEWS
%doc xteddy.README xtuxxy.credit
%changelog
* Sun Dec 28 2008 Lubomir Rintel <lkundrak@v3.sk> 2.0.1-2.1
- Add libSM-devel dependency in EL-5
* Sat Dec 06 2008 Lubomir Rintel <lkundrak@v3.sk> 2.0.1-2
- Own /usr/share/xteddy (thanks to Ralf Corsepius)
* Thu Dec 04 2008 Lubomir Rintel <lkundrak@v3.sk> 2.0.1-1
- Initial packaging