cvsextras e2e5e55
Name:           stellarium
1378e73
Version:        0.8.2
6cafde1
Release:        5%{?dist}
0c63485
Summary:        Photo-realistic nightsky renderer
cvsextras e2e5e55
cvsextras e2e5e55
Group:          Amusements/Graphics
cvsextras e2e5e55
License:        GPL
cvsextras e2e5e55
URL:            http://stellarium.free.fr/
1378e73
Source0:        http://switch.dl.sf.net/stellarium/stellarium-%{version}.tar.gz
cvsextras e2e5e55
Source1:        stellarium.desktop
1378e73
Source2:        http://switch.dl.sf.net/stellarum/stellarium_user_guide-0.8.1-1.pdf
480053d
Patch1:		stellarium-0.8.2-x64_1.patch
480053d
Patch2:		stellarium-0.8.2-x64_2.patch
480053d
cvsextras e2e5e55
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
cvsextras e2e5e55
cvsextras e2e5e55
BuildRequires:  SDL-devel
aaca9c6
BuildRequires:  SDL_mixer-devel
cvsextras e2e5e55
BuildRequires:  desktop-file-utils
aaca9c6
BuildRequires:  xorg-x11-proto-devel
aaca9c6
BuildRequires:  mesa-libGL-devel
ea6dc4d
BuildRequires:  mesa-libGLU-devel
cvsextras e2e5e55
BuildRequires:  ImageMagick
be3e1bf
BuildRequires:  libpng-devel
70a62ce
BuildRequires:  freetype-devel
cvsextras e2e5e55
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
ea6dc4d
License:	GPL
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
480053d
%patch1 -p0
480053d
%patch2 -p1
cvsextras e2e5e55
cvsextras e2e5e55
%build
cvsextras e2e5e55
%configure
cvsextras e2e5e55
make %{?_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
  --add-category X-Fedora                       \
cvsextras e2e5e55
  %{SOURCE1}
cvsextras e2e5e55
iconv -f iso-8859-1 -t utf-8 $RPM_BUILD_ROOT%{_mandir}/man1/stellarium.1 \
cvsextras e2e5e55
  -o $RPM_BUILD_ROOT%{_mandir}/man1/stellarium.1.utf8
cvsextras e2e5e55
mv $RPM_BUILD_ROOT%{_mandir}/man1/stellarium.1.utf8 $RPM_BUILD_ROOT%{_mandir}/man1/stellarium.1
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
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,-)
cvsextras e2e5e55
%doc AUTHORS ChangeLog COPYING NEWS README TODO
cvsextras e2e5e55
%{_bindir}/stellarium
cvsextras e2e5e55
%{_datadir}/%{name}
cvsextras e2e5e55
%{_datadir}/applications/*%{name}.desktop
cvsextras e2e5e55
%{_datadir}/pixmaps/%{name}.png
cvsextras e2e5e55
%{_mandir}/man1/*
cvsextras e2e5e55
ea6dc4d
ea6dc4d
%files doc
fb7da8b
%defattr(-,root,root,-) 
fb7da8b
%doc COPYING stellarium_user_guide-0.8.1-1.pdf
ea6dc4d
cvsextras e2e5e55
%changelog
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.