From 74059c57d204ee36b2e3852263847c7262b6e35e Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Fri, 18 May 2007 09:36:39 +0000 Subject: [PATCH 01/10] Initialize branch F-7 for rss-glx --- branch | 1 + 1 file changed, 1 insertion(+) create mode 100644 branch diff --git a/branch b/branch new file mode 100644 index 0000000..c48525c --- /dev/null +++ b/branch @@ -0,0 +1 @@ +F-7 From cc79c2f5aa1e2eef9626f966c5e72a621794249c Mon Sep 17 00:00:00 2001 From: Nils Philippsen Date: Sat, 15 Sep 2007 08:31:31 +0000 Subject: [PATCH 02/10] enable modular xscreensaver support for Fedora 7 and later (#200881) replace requirement on %{_bindir}/kxsconfig by kdeartwork-kxe (Fedora >= 7, RHEL >= 6), kdeartwork-extras (<= Fedora 6, RHEL 5) license is GPLv2 run %{_sbindir}/update-xscreensaver-hacks in %post, %postun, require xscreensaver-base >= 5.03-3 for that don't reference upstream URL for source tarball as we ship a modified one implement revamped modular xscreensaver configuration (#200881) require post/preun xscreensaver-base min/max EVR don't let %preun fail Buildrequire gawk. build xscreensaver hack description files (#200881) require %{_bindir}/kxsconfig (#219106) --- rss-glx.spec | 78 +++++++++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 71 insertions(+), 7 deletions(-) diff --git a/rss-glx.spec b/rss-glx.spec index 51ef7ab..023701b 100644 --- a/rss-glx.spec +++ b/rss-glx.spec @@ -1,4 +1,5 @@ %define xssconfigdir %{_datadir}/xscreensaver/config +%define xssexthacksconfdir %{_datadir}/xscreensaver/hacks.conf.d %define xssbindir %{_libexecdir}/xscreensaver %define gssbindir %{_libexecdir}/gnome-screensaver %define kdessconfigdir %{_datadir}/applnk/System/ScreenSavers @@ -16,9 +17,15 @@ %else %define _gssconfigdir %{!?gssconfigdir:%{_datadir}/applications/screensavers}%{?gssconfigdir} %endif +%if "%{fedora}" >= "7" +%define modular_xss 0%{?!_without_modular_xss:1} +%else +%define modular_xss 0%{?_with_modular_xss:1} +%endif %endif %else %define modular_x 0%{?!_without_modular_x:1} +%define modular_xss 0%{?!_without_modular_xss:1} %define gss 0%{?!_without_gss:1} %define _gssconfigdir %{!?gssconfigdir:%{_datadir}/applications/screensavers}%{?gssconfigdir} %endif @@ -29,11 +36,14 @@ Summary: Really Slick Screensavers Name: rss-glx Version: 0.8.1%{patchext} -Release: 6%{?dist} -License: GPL +Release: 11%{?dist} +License: GPLv2 Group: Amusements/Graphics URL: http://rss-glx.sourceforge.net/ -Source0: http://dl.sourceforge.net/sourceforge/rss-glx/rss-glx_%{version}.tar.bz2 +# We ship a tarball with one questionable hack patched out. +# The original URL is the following without %%patchext: +# Source0: http://dl.sourceforge.net/sourceforge/rss-glx/rss-glx_%{version}.tar.bz2 +Source0: rss-glx_%{version}.tar.bz2 Source1: README.fedora Source2: rss-glx-rm-matrixview.sh Source3: rss-glx-0.8.1-0.8.1.p.diff @@ -42,11 +52,11 @@ Patch1: rss-glx-0.8.1-flags.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildRequires: libGL-devel BuildRequires: libGLU-devel -%if %modular_x -BuildRequires: libICE-devel %if %with_matrixview BuildRequires: ImageMagick-devel >= 6.2.5.4 %endif +%if %modular_x +BuildRequires: libICE-devel BuildRequires: libSM-devel BuildRequires: libX11-devel BuildRequires: libXt-devel @@ -58,6 +68,7 @@ BuildRequires: openal-devel BuildRequires: freealut-devel BuildRequires: autoconf BuildRequires: libtool +BuildRequires: gawk %description A port of the Really Slick Screensavers to GLX. Provides several visually @@ -71,7 +82,12 @@ order to use them as screensavers. Summary: Really Slick Screensavers Group: Amusements/Graphics Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release} -Requires: xscreensaver-base +%if %modular_xss +Requires(post): xscreensaver-base >= 1:5.03-3 +Requires(postun): xscreensaver-base >= 1:5.03-3 +%else +Requires: xscreensaver-base < 1:5.03-3 +%endif %description xscreensaver A port of the Really Slick Screensavers to GLX. Provides several visually @@ -99,6 +115,11 @@ Group: Amusements/Graphics Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release} Requires: %{name}-xscreensaver = %{?epoch:%{epoch}:}%{version}-%{release} Requires: kdebase +%if 0%{?fedora}%{?rhel} > 0 && 0%{?fedora} <= 6 && 0%{?rhel} <= 5 +Requires: kdeartwork-extras +%else +Requires: kdeartwork-kxs +%endif %description kde A port of the Really Slick Screensavers to GLX. Provides several visually @@ -175,7 +196,11 @@ EOF awk '{if ($0 ~ "^Actions=") { print "Actions=InWindow;Root;Setup;"; print "X-KDE-Category=Really Slick Screensavers"; print "X-KDE-Type=OpenGL"; } else { print; }}' < "${trycmd}.desktop.orig" > "${trycmd}.desktop" rm -f "${trycmd}.desktop.orig" popd >& /dev/null - # symlinks for XScreenSaver + # external hacks description and symlinks for XScreenSaver + cat << EOF >> %{buildroot}%{xssexthacksconfdir}/rss-glx.conf +GL: "${name}" \\ + ${cmd} -r \\n\\ +EOF ln -snf "%{_bindir}/${trycmd}" "%{buildroot}%{xssbindir}/${trycmd}" done } @@ -188,6 +213,7 @@ rm -f %{buildroot}%{_libdir}/lib*.{,l}a %{buildroot}%{_bindir}/rss-glx_install.p mkdir -p %{buildroot}%{_gssconfigdir} mkdir -p %{buildroot}%{gssbindir} mkdir -p %{buildroot}%{xssbindir} +mkdir -p %{buildroot}%{xssexthacksconfdir} %endif cat << EOF | generate_fix_desktop_files_links BioF§biof§This is an attempt to recreate some of the work of William Latham. @@ -217,6 +243,16 @@ EOF %clean rm -rf %buildroot +%post xscreensaver +if [ -x %{_sbindir}/update-xscreensaver-hacks ]; then + %{_sbindir}/update-xscreensaver-hacks +fi + +%postun xscreensaver +if [ -x %{_sbindir}/update-xscreensaver-hacks ]; then + %{_sbindir}/update-xscreensaver-hacks || : +fi + %files %defattr(-, root, root) %doc ChangeLog COPYING INSTALL README README.xscreensaver @@ -226,6 +262,8 @@ rm -rf %buildroot %files xscreensaver %defattr(-, root, root) +# xscreensaver-base provides %{xssexthacksconfdir} +%config(noreplace) %{xssexthacksconfdir}/rss-glx.conf %{xssconfigdir}/*.xml %dir %{xssbindir} %{xssbindir}/* @@ -245,6 +283,32 @@ rm -rf %buildroot %{kdessconfigdir}/*.desktop %changelog +* Sat Sep 15 2007 Nils Philippsen 0.8.1.p-11 +- enable modular xscreensaver support for Fedora 7 and later (#200881) + +* Fri Sep 14 2007 Nils Philippsen 0.8.1.p-10 +- replace requirement on %{_bindir}/kxsconfig by kdeartwork-kxe (Fedora >= 7, + RHEL >= 6), kdeartwork-extras (<= Fedora 6, RHEL 5) +- license is GPLv2 +- run %{_sbindir}/update-xscreensaver-hacks in %%post, %%postun, require + xscreensaver-base >= 5.03-3 for that +- don't reference upstream URL for source tarball as we ship a modified one + +* Mon Sep 03 2007 Nils Philippsen +- implement revamped modular xscreensaver configuration (#200881) +- require post/preun xscreensaver-base min/max EVR +- don't let %%preun fail + +* Wed Aug 29 2007 Fedora Release Engineering - 0.8.1.p-9 +- Buildrequire gawk. + +* Wed Aug 29 2007 Fedora Release Engineering - 0.8.1.p-8 +- Rebuild for selinux ppc32 issue. + +* Thu Jun 14 2007 Nils Philippsen 0.8.1.p-7 +- build xscreensaver hack description files (#200881) +- require %{_bindir}/kxsconfig (#219106) + * Mon Aug 28 2006 Nils Philippsen 0.8.1.p-6 - FC6 mass rebuild From 08e41b738da571d180f4542249fafad1ceee4754 Mon Sep 17 00:00:00 2001 From: Nils Philippsen Date: Sat, 15 Sep 2007 08:35:35 +0000 Subject: [PATCH 03/10] include %post/%postun scripts only with modular xscreensaver support --- rss-glx.spec | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/rss-glx.spec b/rss-glx.spec index 023701b..8defd1b 100644 --- a/rss-glx.spec +++ b/rss-glx.spec @@ -147,6 +147,11 @@ Build settings: %else - without matrixview hack %endif +%if %modular_xss +- with modular xscreensaver support +%else +- without modular xscreensaver support +%endif EOF %setup -q -n rss-glx_%{version} @@ -243,6 +248,7 @@ EOF %clean rm -rf %buildroot +%if %modular_xss %post xscreensaver if [ -x %{_sbindir}/update-xscreensaver-hacks ]; then %{_sbindir}/update-xscreensaver-hacks @@ -252,6 +258,7 @@ fi if [ -x %{_sbindir}/update-xscreensaver-hacks ]; then %{_sbindir}/update-xscreensaver-hacks || : fi +%endif %files %defattr(-, root, root) @@ -285,6 +292,7 @@ fi %changelog * Sat Sep 15 2007 Nils Philippsen 0.8.1.p-11 - enable modular xscreensaver support for Fedora 7 and later (#200881) +- include %%post/%%postun scripts only with modular xscreensaver support * Fri Sep 14 2007 Nils Philippsen 0.8.1.p-10 - replace requirement on %{_bindir}/kxsconfig by kdeartwork-kxe (Fedora >= 7, From 54070bdc6a9c383a36a079f2b0cc3cb39dffe066 Mon Sep 17 00:00:00 2001 From: Nils Philippsen Date: Fri, 19 Oct 2007 13:32:39 +0000 Subject: [PATCH 04/10] let -xscreensaver require xscreensaver-gl-base (#336331) prefix xscreensaver symlinks with "rss-glx-" as well (#318611) prefix binaries with "rss-glx-" (#250180) don't ship README.xscreensaver (#200881) --- rss-glx.spec | 42 ++++++++++++++++++++++++++++++------------ 1 file changed, 30 insertions(+), 12 deletions(-) diff --git a/rss-glx.spec b/rss-glx.spec index 8defd1b..e766338 100644 --- a/rss-glx.spec +++ b/rss-glx.spec @@ -36,7 +36,7 @@ Summary: Really Slick Screensavers Name: rss-glx Version: 0.8.1%{patchext} -Release: 11%{?dist} +Release: 15%{?dist} License: GPLv2 Group: Amusements/Graphics URL: http://rss-glx.sourceforge.net/ @@ -88,6 +88,9 @@ Requires(postun): xscreensaver-base >= 1:5.03-3 %else Requires: xscreensaver-base < 1:5.03-3 %endif +%if %{?fedora}%{!fedora} >= 7 +Requires: xscreensaver-gl-base +%endif %description xscreensaver A port of the Really Slick Screensavers to GLX. Provides several visually @@ -168,8 +171,9 @@ done %build autoconf %configure \ - --with-configdir=%{xssconfigdir} \ - --with-kdessconfigdir=%{kdessconfigdir} + --with-configdir=%{xssconfigdir} \ + --with-kdessconfigdir=%{kdessconfigdir} \ + --program-prefix=rss-glx- make %{?_smp_mflags} %install @@ -178,28 +182,30 @@ generate_fix_desktop_files_links () { while read line; do %if %gss # generate GNOME screensaver desktop files - eval $(echo "$line" | awk -F§ '{print "name=\"" $1 "\"; cmd=\"" $2 "\"; desc=\"" $3 "\""}') + eval $(echo "$line" | awk -F§ '{print "name=\"" $1 "\"; cmd=\"rss-glx-" $2 "\"; desc=\"" $3 "\""}') trycmd="${cmd%%%% *}" - cat << EOF > %{buildroot}%{_gssconfigdir}/rss-glx-${cmd}.desktop + origtrycmd="${trycmd#rss-glx-}" + cat << EOF > %{buildroot}%{_gssconfigdir}/${cmd}.desktop [Desktop Entry] Encoding=UTF-8 Name=${name} Comment=${desc} -TryExec=rss-glx-${trycmd} -Exec=rss-glx-${cmd} -r +TryExec=${trycmd} +Exec=${cmd} -r StartupNotify=false Terminal=false Type=Application Categories=Screensaver EOF - ln -snf "%{_bindir}/${trycmd}" "%{buildroot}%{gssbindir}/rss-glx-${trycmd}" + ln -snf "%{_bindir}/${trycmd}" "%{buildroot}%{gssbindir}/${trycmd}" %endif # fix KDE screensaver desktop files pushd "%{buildroot}%{kdessconfigdir}" >& /dev/null - mv -f "${trycmd}.desktop" "${trycmd}.desktop.orig" - awk '{if ($0 ~ "^Actions=") { print "Actions=InWindow;Root;Setup;"; print "X-KDE-Category=Really Slick Screensavers"; print "X-KDE-Type=OpenGL"; } else { print; }}' < "${trycmd}.desktop.orig" > "${trycmd}.desktop" - rm -f "${trycmd}.desktop.orig" + if [ ! -f "${trycmd}.desktop" ]; then + awk '{if ($0 ~ "^Actions=") { print "Actions=InWindow;Root;Setup;"; print "X-KDE-Category=Really Slick Screensavers"; print "X-KDE-Type=OpenGL"; } else { print; }}' < "${origtrycmd}.desktop" > "${trycmd}.desktop" + rm -f "${origtrycmd}.desktop" + fi popd >& /dev/null # external hacks description and symlinks for XScreenSaver cat << EOF >> %{buildroot}%{xssexthacksconfdir}/rss-glx.conf @@ -262,7 +268,7 @@ fi %files %defattr(-, root, root) -%doc ChangeLog COPYING INSTALL README README.xscreensaver +%doc ChangeLog COPYING INSTALL README %doc README.fedora rss-glx-rm-matrixview.sh rss-glx-0.8.1-0.8.1.p.diff %{_bindir}/* %{_mandir}/*/* @@ -290,6 +296,18 @@ fi %{kdessconfigdir}/*.desktop %changelog +* Fri Oct 19 2007 Nils Philippsen 0.8.1.p-15 +- let -xscreensaver require xscreensaver-gl-base (#336331) + +* Tue Oct 02 2007 Nils Philippsen 0.8.1.p-14 +- prefix xscreensaver symlinks with "rss-glx-" as well (#318611) + +* Tue Oct 02 2007 Nils Philippsen 0.8.1.p-13 +- prefix binaries with "rss-glx-" (#250180) + +* Mon Oct 01 2007 Nils Philippsen 0.8.1.p-12 +- don't ship README.xscreensaver (#200881) + * Sat Sep 15 2007 Nils Philippsen 0.8.1.p-11 - enable modular xscreensaver support for Fedora 7 and later (#200881) - include %%post/%%postun scripts only with modular xscreensaver support From b922e11e1aa1e5d49522d1a9c26ace421b0bfd64 Mon Sep 17 00:00:00 2001 From: Nils Philippsen Date: Tue, 30 Oct 2007 15:41:59 +0000 Subject: [PATCH 05/10] don't show screensaver hacks in main menu (#357451) --- rss-glx.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/rss-glx.spec b/rss-glx.spec index e766338..0a5e7ce 100644 --- a/rss-glx.spec +++ b/rss-glx.spec @@ -36,7 +36,7 @@ Summary: Really Slick Screensavers Name: rss-glx Version: 0.8.1%{patchext} -Release: 15%{?dist} +Release: 16%{?dist} License: GPLv2 Group: Amusements/Graphics URL: http://rss-glx.sourceforge.net/ @@ -197,6 +197,7 @@ StartupNotify=false Terminal=false Type=Application Categories=Screensaver +NoDisplay=true EOF ln -snf "%{_bindir}/${trycmd}" "%{buildroot}%{gssbindir}/${trycmd}" %endif @@ -296,6 +297,9 @@ fi %{kdessconfigdir}/*.desktop %changelog +* Tue Oct 30 2007 Nils Philippsen 0.8.1.p-16 +- don't show screensaver hacks in main menu (#357451) + * Fri Oct 19 2007 Nils Philippsen 0.8.1.p-15 - let -xscreensaver require xscreensaver-gl-base (#336331) From e1b6d175730ef3c5d020f4feacab4aa9e7909b14 Mon Sep 17 00:00:00 2001 From: Nils Philippsen Date: Mon, 5 Nov 2007 11:22:37 +0000 Subject: [PATCH 06/10] make screensavers show up in screensaver preferences again (#365991) --- rss-glx.spec | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/rss-glx.spec b/rss-glx.spec index 0a5e7ce..bfc0ae7 100644 --- a/rss-glx.spec +++ b/rss-glx.spec @@ -36,7 +36,7 @@ Summary: Really Slick Screensavers Name: rss-glx Version: 0.8.1%{patchext} -Release: 16%{?dist} +Release: 17%{?dist} License: GPLv2 Group: Amusements/Graphics URL: http://rss-glx.sourceforge.net/ @@ -196,8 +196,7 @@ Exec=${cmd} -r StartupNotify=false Terminal=false Type=Application -Categories=Screensaver -NoDisplay=true +Categories=GNOME;Screensaver; EOF ln -snf "%{_bindir}/${trycmd}" "%{buildroot}%{gssbindir}/${trycmd}" %endif @@ -297,6 +296,9 @@ fi %{kdessconfigdir}/*.desktop %changelog +* Mon Nov 05 2007 Nils Philippsen 0.8.1.p-17 +- make screensavers show up in screensaver preferences again (#365991) + * Tue Oct 30 2007 Nils Philippsen 0.8.1.p-16 - don't show screensaver hacks in main menu (#357451) From be8c5fc6c00bcee4903228a83f1038e7c0220116 Mon Sep 17 00:00:00 2001 From: Nils Philippsen Date: Thu, 29 May 2008 10:08:27 +0000 Subject: [PATCH 07/10] use %bcond, %with macros for consistency don't use quotes around %fedora macro to make it work with Fedora 10 use correct binary names for KDE (#448844) -kde: drop Requires: kdebase (kdeartwork dep is enough) fix %kdessconfigdir for kde4 Fix build with gcc43 --- rss-glx.spec | 103 ++++++++++++++++++++++++++++++++------------------- 1 file changed, 65 insertions(+), 38 deletions(-) diff --git a/rss-glx.spec b/rss-glx.spec index bfc0ae7..c358517 100644 --- a/rss-glx.spec +++ b/rss-glx.spec @@ -1,42 +1,50 @@ -%define xssconfigdir %{_datadir}/xscreensaver/config -%define xssexthacksconfdir %{_datadir}/xscreensaver/hacks.conf.d -%define xssbindir %{_libexecdir}/xscreensaver -%define gssbindir %{_libexecdir}/gnome-screensaver -%define kdessconfigdir %{_datadir}/applnk/System/ScreenSavers - %if 0%{?fedora} -%if "%{fedora}" <= "4" -%define modular_x 0%{?_with_modular_x:1} -%define gss 0 -%define _gssconfigdir %{nil} +%if %{fedora} <= 4 +%bcond_with modular_x +%bcond_with gss +%define _gssconfigdir %{nil}%{?gssconfigdir} %else -%define modular_x 0%{!?_without_modular_x:1} -%define gss 1 -%if "%{fedora}" <= "5" +%bcond_without modular_x +%bcond_without gss +%if %{fedora} <= 5 %define _gssconfigdir %{!?gssconfigdir:%{_datadir}/gnome-screensaver/themes}%{?gssconfigdir} %else %define _gssconfigdir %{!?gssconfigdir:%{_datadir}/applications/screensavers}%{?gssconfigdir} %endif -%if "%{fedora}" >= "7" -%define modular_xss 0%{?!_without_modular_xss:1} +%if %{fedora} >= 7 +%bcond_without modular_xss %else -%define modular_xss 0%{?_with_modular_xss:1} +%bcond_with modular_xss +%endif +%if %{fedora} >= 8 +# KDE4 +%bcond_without kde4 +%else +# KDE3 +%bcond_with kde4 %endif %endif %else -%define modular_x 0%{?!_without_modular_x:1} -%define modular_xss 0%{?!_without_modular_xss:1} -%define gss 0%{?!_without_gss:1} +%bcond_without modular_x +%bcond_without modular_xss +%bcond_without gss %define _gssconfigdir %{!?gssconfigdir:%{_datadir}/applications/screensavers}%{?gssconfigdir} %endif -%define with_matrixview 0%{?_with_matrixview:1} -%define patchext %{nil}%{?with_matrixview:.p} +%define kdessconfigdir %{?with_kde4:%{_datadir}/kde4/services/ScreenSavers}%{!?with_kde4:%{_datadir}/applnk/System/ScreenSavers} + +%define xssconfigdir %{_datadir}/xscreensaver/config +%define xssexthacksconfdir %{_datadir}/xscreensaver/hacks.conf.d +%define xssbindir %{_libexecdir}/xscreensaver +%define gssbindir %{_libexecdir}/gnome-screensaver + +%bcond_with matrixview +%define patchext %{nil}%{!?with_matrixview:.p} Summary: Really Slick Screensavers Name: rss-glx Version: 0.8.1%{patchext} -Release: 17%{?dist} +Release: 20%{?dist} License: GPLv2 Group: Amusements/Graphics URL: http://rss-glx.sourceforge.net/ @@ -49,13 +57,14 @@ Source2: rss-glx-rm-matrixview.sh Source3: rss-glx-0.8.1-0.8.1.p.diff Patch0: rss-glx-0.8.1-freealut.patch Patch1: rss-glx-0.8.1-flags.patch +Patch2: rss-glx-0.8.1-gcc43-buildfix.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildRequires: libGL-devel BuildRequires: libGLU-devel -%if %with_matrixview +%if %{with matrixview} BuildRequires: ImageMagick-devel >= 6.2.5.4 %endif -%if %modular_x +%if %{with modular_x} BuildRequires: libICE-devel BuildRequires: libSM-devel BuildRequires: libX11-devel @@ -69,6 +78,7 @@ BuildRequires: freealut-devel BuildRequires: autoconf BuildRequires: libtool BuildRequires: gawk +BuildRequires: sed %description A port of the Really Slick Screensavers to GLX. Provides several visually @@ -82,13 +92,13 @@ order to use them as screensavers. Summary: Really Slick Screensavers Group: Amusements/Graphics Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release} -%if %modular_xss +%if %{with modular_xss} Requires(post): xscreensaver-base >= 1:5.03-3 Requires(postun): xscreensaver-base >= 1:5.03-3 %else Requires: xscreensaver-base < 1:5.03-3 %endif -%if %{?fedora}%{!fedora} >= 7 +%if 0%{?fedora} >= 7 Requires: xscreensaver-gl-base %endif @@ -98,7 +108,7 @@ impressive and graphically intensive screensavers. This package contains files needed to use the hacks with xscreensaver. -%if %gss +%if %{with gss} %package gnome-screensaver Summary: Really Slick Screensavers Group: Amusements/Graphics @@ -117,7 +127,6 @@ Summary: Really Slick Screensavers Group: Amusements/Graphics Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release} Requires: %{name}-xscreensaver = %{?epoch:%{epoch}:}%{version}-%{release} -Requires: kdebase %if 0%{?fedora}%{?rhel} > 0 && 0%{?fedora} <= 6 && 0%{?rhel} <= 5 Requires: kdeartwork-extras %else @@ -134,32 +143,38 @@ This package contains files needed to use the hacks with KDE. cat << EOF Build settings: -%if %modular_x +%if %{with modular_x} - with modular X %else - with monolithic X %endif -%if %gss +%if %{with gss} - with gnome-screensaver support, theme directory: %{_gssconfigdir} %else - without gnome-screensaver support %endif -%if %with_matrixview +%if %{with matrixview} - with matrixview hack %else - without matrixview hack %endif -%if %modular_xss +%if %{with modular_xss} - with modular xscreensaver support %else - without modular xscreensaver support %endif +%if %{with kde4} +- with KDE4 support in: %kdessconfigdir +%else +- with KDE3 support in: %kdessconfigdir +%endif EOF %setup -q -n rss-glx_%{version} %patch0 -p1 -b .freealut %patch1 -p1 -b .flags +%patch2 -p1 -b .gcc43 # work around BZ #189928 for f in `find . -type l` ; do @@ -180,7 +195,7 @@ make %{?_smp_mflags} generate_fix_desktop_files_links () { local line name trycmd cmd desc while read line; do -%if %gss +%if %{with gss} # generate GNOME screensaver desktop files eval $(echo "$line" | awk -F§ '{print "name=\"" $1 "\"; cmd=\"rss-glx-" $2 "\"; desc=\"" $3 "\""}') trycmd="${cmd%%%% *}" @@ -203,7 +218,7 @@ EOF # fix KDE screensaver desktop files pushd "%{buildroot}%{kdessconfigdir}" >& /dev/null if [ ! -f "${trycmd}.desktop" ]; then - awk '{if ($0 ~ "^Actions=") { print "Actions=InWindow;Root;Setup;"; print "X-KDE-Category=Really Slick Screensavers"; print "X-KDE-Type=OpenGL"; } else { print; }}' < "${origtrycmd}.desktop" > "${trycmd}.desktop" + awk '{if ($0 ~ "^Actions=") { print "Actions=InWindow;Root;Setup;"; print "X-KDE-Category=Really Slick Screensavers"; print "X-KDE-Type=OpenGL"; } else { print; }}' < "${origtrycmd}.desktop" | sed 's@^Exec=\(.*\)'"$origtrycmd"'\(.*\)$@Exec=\1'"$trycmd"'\2@g' > "${trycmd}.desktop" rm -f "${origtrycmd}.desktop" fi popd >& /dev/null @@ -220,7 +235,7 @@ rm -rf %buildroot install -m 0644 "%SOURCE1" "%SOURCE2" "%SOURCE3" . make DESTDIR=%{buildroot} install rm -f %{buildroot}%{_libdir}/lib*.{,l}a %{buildroot}%{_bindir}/rss-glx_install.pl -%if %gss +%if %{with gss} mkdir -p %{buildroot}%{_gssconfigdir} mkdir -p %{buildroot}%{gssbindir} mkdir -p %{buildroot}%{xssbindir} @@ -240,7 +255,7 @@ Hufo's Smoke§hufo_smoke§Smoke effect. Hufo's Tunnel§hufo_tunnel§Inside a tunnel. Hyperspace§hyperspace§Hyperspace. Lattice§lattice§Fly through an endless world of linked rings. -%if %with_matrixview +%if %{with matrixview} MatrixView§matrixview§The Matrix. %endif Plasma§plasma§Probably the second most psychedelic screensaver in existence. @@ -254,7 +269,7 @@ EOF %clean rm -rf %buildroot -%if %modular_xss +%if %{with modular_xss} %post xscreensaver if [ -x %{_sbindir}/update-xscreensaver-hacks ]; then %{_sbindir}/update-xscreensaver-hacks @@ -281,7 +296,7 @@ fi %dir %{xssbindir} %{xssbindir}/* -%if %gss +%if %{with gss} %files gnome-screensaver %defattr(-, root, root) %dir %{_gssconfigdir} @@ -296,6 +311,18 @@ fi %{kdessconfigdir}/*.desktop %changelog +* Thu May 29 2008 Nils Philippsen 0.8.1.p-20 +- use %%bcond, %%with macros for consistency +- don't use quotes around %%fedora macro to make it work with Fedora 10 +- use correct binary names for KDE (#448844) + +* Wed Apr 02 2008 Rex Dieter 0.8.1.p-19 +- -kde: drop Requires: kdebase (kdeartwork dep is enough) +- fix %%kdessconfigdir for kde4 + +* Fri Jan 31 2008 Adel Gadllah 0.8.1.p-18 +- Fix build with gcc43 + * Mon Nov 05 2007 Nils Philippsen 0.8.1.p-17 - make screensavers show up in screensaver preferences again (#365991) From aa1508e24a947dc7f953d99ff3c50f8cbfe09776 Mon Sep 17 00:00:00 2001 From: Nils Philippsen Date: Thu, 29 May 2008 10:14:06 +0000 Subject: [PATCH 08/10] add gcc43-buildfix patch --- rss-glx-0.8.1-gcc43-buildfix.patch | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 rss-glx-0.8.1-gcc43-buildfix.patch diff --git a/rss-glx-0.8.1-gcc43-buildfix.patch b/rss-glx-0.8.1-gcc43-buildfix.patch new file mode 100644 index 0000000..c42e048 --- /dev/null +++ b/rss-glx-0.8.1-gcc43-buildfix.patch @@ -0,0 +1,22 @@ +diff -upNr rss-glx_0.8.1.p.orign/reallyslick/cpp_src/skyrocket_sound.cpp rss-glx_0.8.1.p/reallyslick/cpp_src/skyrocket_sound.cpp +--- rss-glx_0.8.1.p.orign/reallyslick/cpp_src/skyrocket_sound.cpp 2005-04-10 01:00:43.000000000 +0200 ++++ rss-glx_0.8.1.p/reallyslick/cpp_src/skyrocket_sound.cpp 2008-01-04 14:36:38.000000000 +0100 +@@ -24,6 +24,7 @@ + #include + #include + ++#include + #include + + #include "loadTexture.h" +diff -upNr rss-glx_0.8.1.p.orign/reallyslick/Implicit/impSurface.cpp rss-glx_0.8.1.p/reallyslick/Implicit/impSurface.cpp +--- rss-glx_0.8.1.p.orign/reallyslick/Implicit/impSurface.cpp 2005-04-09 22:13:51.000000000 +0200 ++++ rss-glx_0.8.1.p/reallyslick/Implicit/impSurface.cpp 2008-01-04 14:37:07.000000000 +0100 +@@ -21,6 +21,7 @@ + #include + #include + #include ++#include + + + From 402a4def8a754caad4246baa58e40c7683c65095 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Thu, 26 Nov 2009 01:29:47 +0000 Subject: [PATCH 09/10] Fix typo that causes a failure to update the common directory. (releng #2781) --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 6f98632..725a6d6 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ NAME := rss-glx 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 +for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$d/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done endef MAKEFILE_COMMON := $(shell $(find-makefile-common)) From 72b7ec0f4fec93c247385fc4f95a4f6e1efeff01 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 29 Jul 2010 11:41:06 +0000 Subject: [PATCH 10/10] dist-git conversion --- .cvsignore => .gitignore | 0 Makefile | 21 --------------------- branch | 1 - 3 files changed, 22 deletions(-) rename .cvsignore => .gitignore (100%) delete mode 100644 Makefile delete mode 100644 branch diff --git a/.cvsignore b/.gitignore similarity index 100% rename from .cvsignore rename to .gitignore diff --git a/Makefile b/Makefile deleted file mode 100644 index 725a6d6..0000000 --- a/Makefile +++ /dev/null @@ -1,21 +0,0 @@ -# Makefile for source rpm: rss-glx -# $Id$ -NAME := rss-glx -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 $$d/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) diff --git a/branch b/branch deleted file mode 100644 index c48525c..0000000 --- a/branch +++ /dev/null @@ -1 +0,0 @@ -F-7