5a75f35
Name:           stellarium
cb7c84f
Version:        0.9.1
964baca
Release:        5%{?dist}
0c63485
Summary:        Photo-realistic nightsky renderer
cvsextras e2e5e55
cvsextras e2e5e55
Group:          Amusements/Graphics
ca03da2
License:        GPLv2
cvsextras e2e5e55
URL:            http://stellarium.free.fr/
1378e73
Source0:        http://switch.dl.sf.net/stellarium/stellarium-%{version}.tar.gz
cvsextras e2e5e55
Source1:        stellarium.desktop
a114d80
Source2:        http://switch.dl.sf.net/stellarum/stellarium_user_guide-0.9.0-1.pdf
cb7c84f
Patch1:		stellarium-0.9.1-cmake.patch
8415fad
Patch3:		stellarium-0.9.1-gcc43.patch
480053d
cvsextras e2e5e55
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
cvsextras e2e5e55
aaca9c6
BuildRequires:  SDL_mixer-devel
cvsextras e2e5e55
BuildRequires:  desktop-file-utils
ea6dc4d
BuildRequires:  mesa-libGLU-devel
cvsextras e2e5e55
BuildRequires:  ImageMagick
70a62ce
BuildRequires:  freetype-devel
a114d80
BuildRequires:	cmake
a114d80
BuildRequires:	qt4-devel
aa1da03
BuildRequires:	gettext-devel
aa1da03
BuildRequires:	boost-devel
cb7c84f
BuildRequires:	glib2-devel
cvsextras e2e5e55
987e19d
Requires:	opengl-games-utils
987e19d
0c63485
%description
cvsextras e2e5e55
Stellarium is a real-time 3D photo-realistic nightsky renderer. It can
cvsextras e2e5e55
generate images of the sky as seen through the Earth's atmosphere with
cvsextras e2e5e55
more than one hundred thousand stars from the Hipparcos Catalogue,
cvsextras e2e5e55
constellations, planets, major satellites and nebulas.
cvsextras e2e5e55
ea6dc4d
%package doc
ea6dc4d
Summary:   	The user guide about Stellarium
ea6dc4d
Group:		Documentation
9fdcc53
License:	GPLv2
ea6dc4d
%description doc
ea6dc4d
The user guide for stellarium writeen by Matthew Gates. It shouuld 
ea6dc4d
contains everythings you want to know about Stellarium.
ea6dc4d
ea6dc4d
You will need a PDF viewer to read the user guide.
cvsextras e2e5e55
cvsextras e2e5e55
%prep
cvsextras e2e5e55
%setup -q
cb7c84f
%patch1 -p1 -b .cm
cb7c84f
%patch3 -p1 -b .gcc43
cvsextras e2e5e55
cvsextras e2e5e55
%build
a114d80
export CFLAGS="$RPM_OPT_FLAGS"
a114d80
export CXXFLAGS="$RPM_OPT_FLAGS"
a114d80
%cmake -DCMAKE_BUILD_TYPE=Release
a114d80
make VERBOSE=1 %{?_smp_mflags}
30411ce
convert -size 32x32 data/icon.bmp stellarium.png
cvsextras e2e5e55
cvsextras e2e5e55
%install
cvsextras e2e5e55
rm -rf $RPM_BUILD_ROOT
6cafde1
make install DESTDIR=$RPM_BUILD_ROOT INSTALL="%{_bindir}/install -c -p"
cvsextras e2e5e55
cvsextras e2e5e55
desktop-file-install                            \
cvsextras e2e5e55
  --vendor fedora                               \
cvsextras e2e5e55
  --dir $RPM_BUILD_ROOT%{_datadir}/applications \
cvsextras e2e5e55
  %{SOURCE1}
cvsextras e2e5e55
mkdir -p $RPM_BUILD_ROOT%{_datadir}/pixmaps/
6cafde1
install -m 0644 -p stellarium.png $RPM_BUILD_ROOT%{_datadir}/pixmaps/stellarium.png
d9cf0ad
rm $RPM_BUILD_ROOT%{_datadir}/stellarium/data/{icon.bmp,stellarium.ico}
ea6dc4d
cp %{SOURCE2} $RPM_BUILD_DIR/stellarium-%{version}
cvsextras e2e5e55
815106c
ln -s opengl-game-wrapper.sh $RPM_BUILD_ROOT%{_bindir}/stellarium-wrapper
987e19d
db34c44
%find_lang %{name}
cvsextras e2e5e55
cvsextras e2e5e55
%clean
cvsextras e2e5e55
rm -rf $RPM_BUILD_ROOT
cvsextras e2e5e55
db34c44
%files -f %{name}.lang
cvsextras e2e5e55
%defattr(-,root,root,-)
cb7c84f
%doc AUTHORS ChangeLog COPYING README 
cvsextras e2e5e55
%{_bindir}/stellarium
987e19d
%{_bindir}/stellarium-wrapper
cvsextras e2e5e55
%{_datadir}/%{name}
cvsextras e2e5e55
%{_datadir}/applications/*%{name}.desktop
cvsextras e2e5e55
%{_datadir}/pixmaps/%{name}.png
ea6dc4d
ea6dc4d
%files doc
fb7da8b
%defattr(-,root,root,-) 
a114d80
%doc COPYING stellarium_user_guide-0.9.0-1.pdf
ea6dc4d
cvsextras e2e5e55
%changelog
964baca
* Sun Feb 10 2008 Jochen Schmitt <Jochen herr-schmitt de> 0.9.1-5
964baca
- Rebuild for gcc-4.3
964baca
a9d65e4
* Tue Jan 22 2008 Jochen Schmitt <Jochen herr-schmitt de> 0.9.1-3
cb7c84f
- New upstream release
cb7c84f
9fdcc53
* Thu Jan 03 2008 Lubomir Kundrak <lkundrak@redhat.com> 0.9.0-7
9fdcc53
- Adding missing includes to fix build with gcc-4.3
9fdcc53
- Corrected License tag of -doc subpackage
9fdcc53
815106c
* Tue Oct 23 2007 Will Woods <wwoods@redhat.com> 0.9.0-6
815106c
- Fix opengl-game-wrapper.sh usage
815106c
987e19d
* Wed Sep 26 2007 Jochen Schmitt <Jochen herr-schmitt de> 0.9.0-5
987e19d
- Add usage of opengl-game-wrapper (BZ #304851)
987e19d
cc8eb04
* Thu Aug  9 2007 Jochen Schmitt <Jochen herr-schmitt de> 0.9.0-4
987e19d
- Rebuild
cc8eb04
ca03da2
* Tue Aug  7 2007 Jochen Schmitt <Jochen herr-schmitt de> 0.9.0-3
987e19d
- Solve weakday displaying issue (#250621)
ca03da2
63633fa
* Wed Jun 27 2007 Jochen Schmitt <Jochen herr-schmitt de> 0.9.0-2
63633fa
- Change category of the desktop entry (#241440)
63633fa
a114d80
* Tue Jun 12 2007 Jochen Schmitt <Jochen herr-schmitt de> 0.9.0-1
a114d80
- New upstream release
a114d80
6cafde1
* Sun Dec 17 2006 Jochen Schmitt <Jochen herr-schmitt de> 0.8.2-5
30411ce
- Resize icon to 32x32
30411ce
480053d
* Tue Nov 14 2006 Jochen Schmitt <Jochen herr-schmitt de> 0.8.2-3
480053d
- Try to fix AMD64 problem (#210525)
480053d
fa0ede0
* Thu Oct 19 2006 Jochen Schmitt <Jochen herr-schmitt de> 0.8.2-2
fa0ede0
- Fix segfault on x64 systems (#210525)
fa0ede0
1378e73
* Tue Oct 10 2006 Jochen Schmitt <Jochen herr-schmitt de> 0.8.2-1
1378e73
- New upstream release
2576244
fb7da8b
* Tue Jul  4 2006 Jochen Schmitt <Jochen herr-schmitt de> 0.8.1-1
fb7da8b
- New upstream release
fb7da8b
- Fix demaged PDF (#197301)
fb7da8b
b1fb1b3
* Wed May 31 2006 Jochen Schmitt <Jochen herr-schmitt de> 0.8.0-4
b1fb1b3
- Update user guide
b1fb1b3
- change dl.sf.net to prdownloads.sf.net
b1fb1b3
70a62ce
* Sun May  7 2006 Jochen Schmitt <Jochen herr-schmitt de> 0.8.0-3
d9cf0ad
- New upstream release
d9cf0ad
f1cb72d
* Tue Feb 14 2006 Jochen Schmitt <Jochen herr-schmitt de> 0.7.1-7
ea6dc4d
- Add stellarium user guide as doc subpackage
ea6dc4d
- Add gcc41 patch from Diego Petteno
ea6dc4d
ea6dc4d
* Mon Feb 13 2006 Jochen Schmitt <Jochen herr-schmitt de> 0.7.1-4
aaca9c6
- Add SDL_mixer-devel as BuildRequires:
aaca9c6
96ed942
* Sun Feb 12 2006 Jochen Schmitt <Jochen herr-schmitt de> 0.7.1-3
96ed942
- Rebuilt for FC5
96ed942
db34c44
* Mon Oct 10 2005 Jochen Schmitt <Jochen herr-schmitt de> 0.7.1-2
db34c44
- use of %%find_lang
db34c44
be3e1bf
* Sun Oct  9 2005 Jochen Schmitt <Jochen herr-schmitt de> 0.7.1-1
be3e1bf
- New upstream release
be3e1bf
0bfc11f
* Thu Aug 11 2005 Jochen Schmitt <Jochen herr-schmitt de> 0.6.2-6
0bfc11f
- Add %%{?dist} to release.
0bfc11f
2e92dd1
* Wed Aug 10 2005 Jochen Schmitt <Jochen herr-schmitt de> 0.6.2-5
2e92dd1
- Fix build for GCC4.
2e92dd1
d49a628
* Thu Apr 14 2005 Michael Schwendt <mschwendt[AT]users.sf.net> - 0.6.2-4
d49a628
- Fix build for GCC4.
d49a628
- Fix desktop icon installation.
d49a628
99467b2
* Fri Apr  7 2005 Michael Schwendt <mschwendt[AT]users.sf.net>
99467b2
- rebuilt
99467b2
5a6cdba
* Sun Jan 23 2005 Marius L. Jøhndal <mariuslj at ifi.uio.no> - 0:0.6.2-2
5a6cdba
- Fixed broken patch.
5a6cdba
5a6cdba
* Sun Jan 16 2005 Marius L. Jøhndal <mariuslj at ifi.uio.no> - 0:0.6.2-0.fdr.1
5a6cdba
- Updated to 0.6.2.
5a6cdba
5a6cdba
* Sun Oct 17 2004 Marius L. Jøhndal <mariuslj at ifi.uio.no> - 0:0.6.1-0.fdr.1
deaa22e
- Updated to 0.6.1.
deaa22e
cvsextras e2e5e55
* Sat Aug 21 2004 Marius L. Jøhndal <mariuslj at ifi.uio.no> - 0:0.6.0-0.fdr.2
cvsextras e2e5e55
- Patched to honour optflags.
cvsextras e2e5e55
- Added nvidia specific patch.
cvsextras e2e5e55
cvsextras e2e5e55
* Sat Jul 17 2004 Marius L. Jøhndal <mariuslj at ifi.uio.no> - 0:0.6.0-0.fdr.1
cvsextras e2e5e55
- Initial RPM release.