From 3a74aea4d0d81b7af38d767b9426ec6f6fe6797838ff930751394485d597b752 Mon Sep 17 00:00:00 2001
From: OBS User unknown <null@suse.de>
Date: Sat, 25 Jul 2009 16:58:53 +0000
Subject: [PATCH] OBS-URL:
 https://build.opensuse.org/package/show/openSUSE:Factory/rsibreak?expand=0&rev=11

---
 fix-duplicate-subdirs.diff | 63 -----------------------------
 rsibreak-0.10.tar.bz2      |  3 ++
 rsibreak-0.9.0.diff        | 44 ---------------------
 rsibreak-0.9.0.tar.bz2     |  3 --
 rsibreak.changes           | 23 +++++++++++
 rsibreak.spec              | 81 +++++---------------------------------
 6 files changed, 35 insertions(+), 182 deletions(-)
 delete mode 100644 fix-duplicate-subdirs.diff
 create mode 100644 rsibreak-0.10.tar.bz2
 delete mode 100644 rsibreak-0.9.0.diff
 delete mode 100644 rsibreak-0.9.0.tar.bz2

diff --git a/fix-duplicate-subdirs.diff b/fix-duplicate-subdirs.diff
deleted file mode 100644
index 1a479cd..0000000
--- a/fix-duplicate-subdirs.diff
+++ /dev/null
@@ -1,63 +0,0 @@
---- po/CMakeLists.txt
-+++ po/CMakeLists.txt
-@@ -1,60 +1,32 @@
- add_subdirectory( ar )
--add_subdirectory( ar )
--add_subdirectory( be )
- add_subdirectory( be )
- add_subdirectory( ca )
- add_subdirectory( cs )
--add_subdirectory( cs )
--add_subdirectory( da )
- add_subdirectory( da )
- add_subdirectory( de )
- add_subdirectory( el )
--add_subdirectory( el )
--add_subdirectory( es )
- add_subdirectory( es )
- add_subdirectory( et )
--add_subdirectory( et )
- add_subdirectory( fr )
--add_subdirectory( fr )
--add_subdirectory( ga )
- add_subdirectory( ga )
- add_subdirectory( gl )
--add_subdirectory( gl )
--add_subdirectory( hi )
- add_subdirectory( hi )
- add_subdirectory( ja )
--add_subdirectory( ja )
--add_subdirectory( km )
- add_subdirectory( km )
- add_subdirectory( ko )
--add_subdirectory( ko )
- add_subdirectory( nb )
--add_subdirectory( nb )
--add_subdirectory( nds )
- add_subdirectory( nds )
- add_subdirectory( nl )
--add_subdirectory( nl )
--add_subdirectory( nn )
- add_subdirectory( nn )
- add_subdirectory( oc )
--add_subdirectory( oc )
- add_subdirectory( pl )
- add_subdirectory( pt )
--add_subdirectory( pt )
--add_subdirectory( pt_BR )
- add_subdirectory( pt_BR )
- add_subdirectory( ro )
--add_subdirectory( ro )
--add_subdirectory( se )
- add_subdirectory( se )
- add_subdirectory( sk )
--add_subdirectory( sk )
--add_subdirectory( sv )
- add_subdirectory( sv )
- add_subdirectory( tr )
--add_subdirectory( tr )
--add_subdirectory( uk )
- add_subdirectory( uk )
- add_subdirectory( zh_CN )
--add_subdirectory( zh_CN )
- add_subdirectory( zh_TW )
diff --git a/rsibreak-0.10.tar.bz2 b/rsibreak-0.10.tar.bz2
new file mode 100644
index 0000000..c6f4076
--- /dev/null
+++ b/rsibreak-0.10.tar.bz2
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:604632d09b7fc61d24a79a5160c63bdd0fd39f67c33a5b7f7632b10d7fe57b0b
+size 397732
diff --git a/rsibreak-0.9.0.diff b/rsibreak-0.9.0.diff
deleted file mode 100644
index af568ae..0000000
--- a/rsibreak-0.9.0.diff
+++ /dev/null
@@ -1,44 +0,0 @@
---- rsibreak-0.9.0.orig//CMakeLists.txt	2008-11-19 20:04:03.000000000 +0000
-+++ rsibreak-0.9.0/CMakeLists.txt	2009-01-17 19:42:41.000000000 +0000
-@@ -3,19 +3,12 @@
- 
- find_package (KDE4 REQUIRED)
- include(KDE4Defaults)
--macro_optional_find_package(Plasma)
--
--macro_log_feature(PLASMA_FOUND "Plasma" "Plasma libraries and header files" "http://plasma.kde.org/" FALSE "" "Plasma is needed for Plasma applet of rsibreak. Install kdebase-workspace.")
--
--
- 
- add_definitions (${QT_DEFINITIONS} ${KDE4_DEFINITIONS})
- include_directories ( ${KDE4_INCLUDES} ${BLITZ_INCLUDES} )
- ADD_SUBDIRECTORY( icons ) 
- ADD_SUBDIRECTORY( src ) 
--if (PLASMA_FOUND)
--  ADD_SUBDIRECTORY( plasma ) 
--endif (PLASMA_FOUND)
-+ADD_SUBDIRECTORY( plasma ) 
- find_package(Msgfmt REQUIRED)
- find_package(Gettext REQUIRED)
- add_subdirectory( po )
---- rsibreak-0.9.0.orig//plasma/CMakeLists.txt	2008-11-19 19:56:00.000000000 +0000
-+++ rsibreak-0.9.0/plasma/CMakeLists.txt	2009-01-17 19:46:45.000000000 +0000
-@@ -8,7 +8,7 @@
-     rsibreak_interface)
- 
- kde4_add_plugin(plasma_engine_rsibreak ${rsibreak_engine_SRCS})
--target_link_libraries(plasma_engine_rsibreak ${PLASMA_LIBS} ${KDE4_KIO_LIBS})
-+target_link_libraries(plasma_engine_rsibreak ${KDE4_PLASMA_LIBS} ${KDE4_KIO_LIBS})
- 
- install(TARGETS plasma_engine_rsibreak DESTINATION ${PLUGIN_INSTALL_DIR})
- install(FILES plasma-engine-rsibreak.desktop DESTINATION ${SERVICES_INSTALL_DIR})
-@@ -17,7 +17,7 @@
-     rsibreak.cpp)
- 
- kde4_add_plugin(plasma_applet_rsibreak ${rsibreak_applet_SRCS})
--target_link_libraries(plasma_applet_rsibreak ${PLASMA_LIBS} ${KDE4_KIO_LIBS})
-+target_link_libraries(plasma_applet_rsibreak ${KDE4_PLASMA_LIBS} ${KDE4_KIO_LIBS})
- 
- install(TARGETS plasma_applet_rsibreak DESTINATION ${PLUGIN_INSTALL_DIR})
- install(FILES plasma-applet-rsibreak.desktop DESTINATION ${SERVICES_INSTALL_DIR})
-
diff --git a/rsibreak-0.9.0.tar.bz2 b/rsibreak-0.9.0.tar.bz2
deleted file mode 100644
index 4a12981..0000000
--- a/rsibreak-0.9.0.tar.bz2
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:90b89d0e220cffd6a35946fe925d1ddee7f97f212f4563e85601f7f5af7e9d56
-size 301153
diff --git a/rsibreak.changes b/rsibreak.changes
index 8f38c64..1538f90 100644
--- a/rsibreak.changes
+++ b/rsibreak.changes
@@ -1,3 +1,26 @@
+-------------------------------------------------------------------
+Fri Jul 24 20:14:00 CEST 2009 - toma@kde.org
+
+- New upstream version 0.10:
+  - Use kdelibs function for display duration of a time.
+  - Fixed all effects to work on xinerama
+  - Fixed Plasma effect to work for KDE < 4.3
+  - Fixed Slideshow effect
+  - Fixed Welcome screen for KDE < 4.4
+  - Fixed bug which resulted in multiple popups
+    telling that the timer has been reset
+  - Renamed No Full Screen effect to Popup effect
+  - Renamed Gray effect to Black effect if no compositing is available
+
+-------------------------------------------------------------------
+Sun Jul 12 12:00:45 CEST 2009 - toma@kde.org
+
+- New upstream version 0.10 beta 1:
+  - Fixed several porting bugs
+  - Rewrote most off the full screen break effects
+  - Some memory leaks fixed
+  - Genral stabilization and improved user experience
+
 -------------------------------------------------------------------
 Fri May  8 12:00:45 CEST 2009 - dmueller@suse.de
 
diff --git a/rsibreak.spec b/rsibreak.spec
index 8aaa916..f315a53 100644
--- a/rsibreak.spec
+++ b/rsibreak.spec
@@ -1,5 +1,5 @@
 #
-# spec file for package rsibreak (Version 0.9.0)
+# spec file for package rsibreak (Version 0.10)
 #
 # Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
 #
@@ -25,12 +25,10 @@ Url:            http://www.kde-apps.org/content/show.php?content=29725
 Group:          Productivity/Other
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 Summary:        Assists in the Recovery and Prevention of Repetitive Strain Injury
-Version:        0.9.0
-Release:        4
-%define tar_version 0.9.0
+Version:        0.10
+Release:        1
+%define tar_version 0.10
 Source:         rsibreak-%tar_version.tar.bz2
-Patch0:         rsibreak-%tar_version.diff
-Patch1:         fix-duplicate-subdirs.diff
 Provides:       kde4-rsibreak = 0.9.0
 Obsoletes:      kde4-rsibreak <= 0.9.0
 %kde4_runtime_requires
@@ -49,8 +47,6 @@ Authors:
 
 %prep
 %setup -n rsibreak-%tar_version -q
-%patch -p1
-%patch1
 
 %build
   %cmake_kde4 -d build
@@ -64,7 +60,7 @@ Authors:
   %find_lang %name --all-name
   %if %suse_version < 1120  
     # work-around bnc#457908
-    for i in et pt sv uk; do mkdir $RPM_BUILD_ROOT/usr/share/doc/kde/HTML/$i/common;done
+    for i in es et fr nl pt sv uk; do mkdir $RPM_BUILD_ROOT/usr/share/doc/kde/HTML/$i/common;done
   %endif
 
 %post -p /sbin/ldconfig
@@ -95,68 +91,9 @@ rm -rf $RPM_BUILD_ROOT
 # work-around bnc#457911
 %dir /usr/share/doc/kde/HTML/*
 %endif
+%if %suse_version < 1120
+%dir /usr/share/locale/hne
+%dir /usr/share/locale/hne/LC_MESSAGES
+%endif
 
 %changelog
-* Fri May 08 2009 dmueller@suse.de
-- fix build with cmake 2.6.4
-* Sun Apr 26 2009 beineri@opensuse.org
-- document and limit doc directory work-arounds
-* Sat Jan 17 2009 coolo@suse.de
-- fix build with plasma from 4.2
-* Tue Dec 09 2008 stbinner@suse.de
-- drop obsolete patches to install Plasma applet and documentation
-* Fri Nov 28 2008 stbinner@suse.de
-- update to 0.9.0 final: only version bump and translation updates
-* Sun Nov 09 2008 stbinner@suse.de
-- fix build on ppc
-* Wed Nov 05 2008 dmueller@suse.de
-- add missing runtime dependencies
-* Tue Oct 28 2008 wstephenson@suse.de
-- update to 0.9.0-beta5
-  * Install autostart file in correct location
-  * Fix plasma applet
-  * Respect 'presentation mode' by monitoring the freedesktop.org
-  screensaver setting
-  * Try to detect waking up from hibernation so timers can be reset
-  * Fix welcome screen
-  * Fix bug where timer did not count down in a slideshow
-  * Fix build on non-x86 platforms
-* Mon Oct 20 2008 stbinner@suse.de
-- fix build on archs without mmx
-* Thu Oct 09 2008 wstephenson@suse.de
-- update to 0.9.0-beta4
-  * Fix bugs in config dialog layouts
-* Thu Jun 26 2008 dmueller@suse.de
-- update to 0.9.0-beta3
-  * porting to KDE4
-* Sun Oct 15 2006 stbinner@suse.de
-- Update to version 0.8
-  * Replaced DCOP dialog with a more flexible and standardized
-  interface to attach events to breaks
-  * Show where RSIBreak is located in the tray when started a
-  second time.
-  * RSIBreak now has a manual.
-  * Option to only reset timers when idle for the duration of a
-  long break.
-  * Skip button in relax popup
-  * Xinerama fixes
-  Images smaller than 1/3 of the screen will not be used for
-  the slideshow
-  * Some tiny optimizations and bugfixes
-* Tue Jun 20 2006 stbinner@suse.de
-- Update to version 0.7.1
-  * New icons from Lee Olson.
-  * Usability review from Tina Trillitzsch.
-  * Two new DCOP calls: doTinyBreak and doBigBreak.
-  * New statistics: percentage of activity during the last minute,
-  last hour and last 6 hours.
-  * Inform the user when the next break will be a big break.
-  * Ability to make DCOP calls to the start and end of breaks.
-  * Possibility to use KDCOP to set that up.
-  * Possibility to break at fixed times.
-* Tue May 30 2006 adrian@suse.de
-- fix build for < 10.1
-* Tue Apr 11 2006 stbinner@suse.de
-- Update to version 0.6
-* Wed Apr 05 2006 stbinner@suse.de
-- Initial package (version 0.6 rc1)