commit e3d7a559428a4b9ad2e0f2566144913be6dc9985ddcd1f7815ff02046c549d10 Author: Matej Cepl Date: Mon Mar 10 16:47:55 2025 +0000 - Use %make_build to drop the SUSE-only %jobs macro OBS-URL: https://build.opensuse.org/package/show/X11:Utilities/xteddy?expand=0&rev=24 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/teddy-2.2-as-needed.patch b/teddy-2.2-as-needed.patch new file mode 100644 index 0000000..07b51ba --- /dev/null +++ b/teddy-2.2-as-needed.patch @@ -0,0 +1,13 @@ +Index: Makefile.am +=================================================================== +--- Makefile.am.orig 2009-02-25 21:06:50.000000000 +0100 ++++ Makefile.am 2011-08-29 13:34:54.570528131 +0200 +@@ -7,7 +7,7 @@ man_MANS = xteddy.6 + bin_SCRIPTS = xtoys xteddy_test + + AM_CFLAGS = @IMLIB2_CFLAGS@ +-AM_LDFLAGS = @IMLIB2_LIBS@ -lX11 ++xteddy_LDADD = @IMLIB2_LIBS@ -lXext -lX11 + + DEFS = -DPIXMAP_PATH=\"@PIXMAP_PATH@\" -Wall + diff --git a/xteddy.changes b/xteddy.changes new file mode 100644 index 0000000..d11debc --- /dev/null +++ b/xteddy.changes @@ -0,0 +1,109 @@ +------------------------------------------------------------------- +Mon Mar 10 10:31:14 UTC 2025 - Bernhard Wiedemann + +- Use %make_build + +------------------------------------------------------------------- +Mon Feb 26 12:26:11 UTC 2024 - Dominique Leuenberger + +- Use %autosetup macro. Allows to eliminate the usage of deprecated + PatchN. + +------------------------------------------------------------------- +Tue Nov 7 10:18:29 UTC 2023 - Dominique Leuenberger + +- Fix build with RPM 4.19: unnumbered patches are no longer + supported. + +------------------------------------------------------------------- +Thu Jan 25 13:03:35 CET 2018 - ma@suse.com + +- imlib2-loaders are required to display images (bsc#1076908) + +------------------------------------------------------------------- +Tue Jun 23 16:05:13 CEST 2015 - ma@suse.com + +- fix path to xteddy in xtoys (bnc#935205) + +------------------------------------------------------------------- +Sat Nov 1 17:35:09 UTC 2014 - crrodriguez@opensuse.org + +- Teddy's cute but bloated in build dependencies, replace + xorg-x11-devel with just two individual X libraries. + +------------------------------------------------------------------- +Sun Jun 1 09:35:36 UTC 2014 - jengelh@inai.de + +- Drop unused build-time requirements on libgif, libtiff, libpng + +------------------------------------------------------------------- +Wed Nov 30 10:23:24 UTC 2011 - coolo@suse.com + +- add automake as buildrequire to avoid implicit dependency + +------------------------------------------------------------------- +Mon Aug 29 11:37:32 UTC 2011 - coolo@novell.com + +- link to Xext too, you need it + +------------------------------------------------------------------- +Wed Jun 16 13:29:57 UTC 2010 - lnussel@suse.de + +- fix path to xteddy in xtoys + +------------------------------------------------------------------- +Tue Dec 29 16:53:59 CET 2009 - crrodriguez@opensuse.org + +- update to version 2.2, switching to imlib2 + +------------------------------------------------------------------- +Tue Dec 5 12:19:22 CET 2006 - ma@suse.de + +- don't install below /usr/X11R6. + +------------------------------------------------------------------- +Fri Jun 16 14:17:33 CEST 2006 - schwab@suse.de + +- Set mandir. +- Use RPM_OPT_FLAGS. + +------------------------------------------------------------------- +Wed Jan 25 21:43:29 CET 2006 - mls@suse.de + +- converted neededforbuild to BuildRequires + +------------------------------------------------------------------- +Thu Oct 28 21:51:44 CEST 2004 - ma@suse.de + +- new version 2.0.1 + +------------------------------------------------------------------- +Mon May 10 17:39:37 CEST 2004 - hmacht@suse.de + +- added # norootforbuild in specfile + +------------------------------------------------------------------- +Mon May 26 16:38:23 CEST 2003 - coolo@suse.de + +- use BuildRoot + +------------------------------------------------------------------- +Wed Sep 18 01:28:09 CEST 2002 - ro@suse.de + +- removed bogus self-provides + +------------------------------------------------------------------- +Tue Oct 31 16:48:11 CET 2000 - ma@suse.de + +- removed group unsorted + +------------------------------------------------------------------- +Mon Sep 13 17:23:57 CEST 1999 - bs@suse.de + +- ran old prepare_spec on spec file to switch to new prepare_spec. + +------------------------------------------------------------------- +Mon Oct 20 18:20:18 MEST 1997 - ma@suse.de + +- new version 1.0.3 + diff --git a/xteddy.spec b/xteddy.spec new file mode 100644 index 0000000..c1adc72 --- /dev/null +++ b/xteddy.spec @@ -0,0 +1,76 @@ +# +# spec file for package xteddy +# +# Copyright (c) 2023 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +Name: xteddy +BuildRequires: automake +BuildRequires: pkgconfig +BuildRequires: pkgconfig(imlib2) +BuildRequires: pkgconfig(x11) +BuildRequires: pkgconfig(xext) +Provides: xteddy10 +Requires: imlib2-loaders +Summary: A cuddly teddy bear for your X Window desktop +License: GPL-2.0-or-later +Group: Amusements/Toys/Graphics +Version: 2.2 +Release: 0 +Source: xteddy_2.2.orig.tar.bz2 +Patch0: teddy-2.2-as-needed.patch +BuildRoot: %{_tmppath}/%{name}-%{version}-build +URL: http://webstaff.itn.liu.se/~stegu/xteddy/ + +%description +Normally, xteddy just sits around doing nothing. After all, that's what +teddy bears are for. Look at him, talk to him, place heavy windows on +top of him, zap him around until he becomes dizzy, do what you like; he +will always be your true (albeit virtual) friend. + +You can move xteddy with the mouse by pointing at him and dragging him +around. When clicked upon, he will pop up on top of all other windows. +If you type "q" on him, he will die (or, as I like to think of it, be +tucked away in the file system until you need him next time). + +That's it. But he's cute. + +%prep +%autosetup -p0 + +sed -i s,/usr/games,/usr/bin, xtoys + +%build +autoreconf --force --install +%configure +%make_build + +%install +make DESTDIR=$RPM_BUILD_ROOT install +#cd $RPM_BUILD_ROOT/usr/X11R6/bin/ && ln xteddy xpenguin + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root) +%doc html/*.html +%doc html/images + %{_bindir}/* + %{_mandir}/man6/* + %{_datadir}/%{name} +# + +%changelog diff --git a/xteddy_2.2.orig.tar.bz2 b/xteddy_2.2.orig.tar.bz2 new file mode 100644 index 0000000..6514d3e --- /dev/null +++ b/xteddy_2.2.orig.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:058e978c63ab1e6716655613dbe92e96de0342773ff271f3b084f1bc83e9073c +size 866796