diff --git a/stellarium-0.9.0-tm.patch b/stellarium-0.9.0-tm.patch new file mode 100644 index 0000000..3177a88 --- /dev/null +++ b/stellarium-0.9.0-tm.patch @@ -0,0 +1,10 @@ +--- stellarium-0.9.0/src/stelutils/StelUtils.cpp.tmx 2007-08-07 20:17:02.000000000 +0200 ++++ stellarium-0.9.0/src/stelutils/StelUtils.cpp 2007-08-07 20:18:18.000000000 +0200 +@@ -796,6 +796,7 @@ void get_tm_from_julian(double JD, struc + tm_time->tm_min = date.minutes; + tm_time->tm_hour = date.hours; + tm_time->tm_mday = date.days; ++ tm_time->tm_wday = fmod(JD + 1.0,7); + tm_time->tm_mon = date.months - 1; + tm_time->tm_year = date.years - 1900; + tm_time->tm_isdst = -1; diff --git a/stellarium.spec b/stellarium.spec index 0d5f46e..2ff7579 100644 --- a/stellarium.spec +++ b/stellarium.spec @@ -1,26 +1,23 @@ Name: stellarium Version: 0.9.0 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Photo-realistic nightsky renderer Group: Amusements/Graphics -License: GPL +License: GPLv2 URL: http://stellarium.free.fr/ Source0: http://switch.dl.sf.net/stellarium/stellarium-%{version}.tar.gz Source1: stellarium.desktop Source2: http://switch.dl.sf.net/stellarum/stellarium_user_guide-0.9.0-1.pdf Patch1: stellarium-0.9.0-cmake.patch +Patch2: stellarium-0.9.0-tm.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) -BuildRequires: SDL-devel BuildRequires: SDL_mixer-devel BuildRequires: desktop-file-utils -BuildRequires: xorg-x11-proto-devel -BuildRequires: mesa-libGL-devel BuildRequires: mesa-libGLU-devel BuildRequires: ImageMagick -BuildRequires: libpng-devel BuildRequires: freetype-devel BuildRequires: cmake BuildRequires: qt4-devel @@ -45,7 +42,8 @@ You will need a PDF viewer to read the user guide. %prep %setup -q -%patch1 -p1 -b .cm +%patch1 -p1 +%patch2 -p1 %build export CFLAGS="$RPM_OPT_FLAGS" @@ -85,6 +83,9 @@ rm -rf $RPM_BUILD_ROOT %doc COPYING stellarium_user_guide-0.9.0-1.pdf %changelog +* Tue Aug 7 2007 Jochen Schmitt 0.9.0-3 +- Solve wekkday displaying issue (#250621) + * Wed Jun 27 2007 Jochen Schmitt 0.9.0-2 - Change category of the desktop entry (#241440)