Sophie

Sophie

distrib > Mageia > 3 > i586 > media > core-release-src > by-pkgid > 6500c7cd2dae4cf87ce0360a4e023f2f > files > 11

celestia-1.6.1-5.mga3.src.rpm

Summary:	A real-time visual space simulation
Name:		celestia
Version:	1.6.1
Release:	%mkrel 5
License:	GPLv2+
Group:		Sciences/Astronomy
Source0:	http://prdownloads.sourceforge.net/celestia/%{name}-%{version}.tar.gz
Source1:	%{name}-16.png
Source2:	%{name}-32.png
Source3:	%{name}-48.png
Patch0:		celestia-1.6.1-gcc46.patch
Patch1:		celestia-1.6.0-cfg.patch
Patch2:		celestia-1.6.1-zlib.patch
Patch3:		celestia-1.6.1-link.patch
Patch4:		celestia-1.6.1-gcc47.patch
Patch5:		celestia-1.6.1-am-1.13.patch
URL:		http://www.shatters.net/celestia/

BuildRequires:	mesaglu-devel
BuildRequires:	cairo-devel
BuildRequires:	gettext-devel
BuildRequires:	libtheora-devel
BuildRequires:	gtk2-devel gtkglext-devel
BuildRequires:	jpeg-devel
BuildRequires:	png-devel
BuildRequires:	lua5.1-devel
BuildRequires:	desktop-file-utils

%description
Celestia is a free real-time space simulation that lets you experience
our universe in three dimensions. Unlike most planetarium software,
Celestia doesn't confine you to the surface of the Earth. You can
travel throughout the solar system, to any of over 100,000 stars, or
even beyond the galaxy. All travel in Celestia is seamless; the
exponential zoom feature lets you explore space across a huge range of
scales, from galaxy clusters down to spacecraft only a few meters
across. A 'point-and-goto' interface makes it simple to navigate
through the universe to the object you want to visit.

%prep
%setup -q
%patch0 -p0 -b .gcc
%patch1 -p0 -b .cfg
%patch2 -p0 -b .zlib
%patch3 -p0 -b .link
%patch4 -p1 -b .gcc47
%patch5 -p1 -b .am

%build
# (cjw) A new gettext Makefile.in.in is needed for new autotools but gettextize 
#       cannot be run from a script, so copy it manually.
#       This hack should be removed when upstream updates gettext files.
cp -f %{_datadir}/gettext/po/Makefile.in.in po/Makefile.in.in
cp -f %{_datadir}/gettext/po/Makefile.in.in po2/Makefile.in.in

autoreconf -fi
%configure2_5x --with-gtk \
		--disable-schemas-install \
		--disable-rpath \
		--enable-cairo \
		--enable-theora \
		--with-lua
%make

%install
%makeinstall_std

desktop-file-install --vendor='' \
	--dir %buildroot%_datadir/applications \
	--remove-category='Application' \
	--add-category='GTK;Education' \
	--remove-key='Version' \
	%buildroot%_datadir/applications/*.desktop

install -D -m 644 %{SOURCE1} %{buildroot}%{_miconsdir}/%{name}.png
install -D -m 644 %{SOURCE2} %{buildroot}%{_iconsdir}/%{name}.png
install -D -m 644 %{SOURCE3} %{buildroot}%{_liconsdir}/%{name}.png

%find_lang %name %name celestia_constellations

%files -f %name.lang
%doc AUTHORS ChangeLog COPYING INSTALL README 
%attr(755,root,root) %{_bindir}/*
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png
%{_datadir}/%{name}
%{_iconsdir}/%{name}.png
%{_miconsdir}/%{name}.png
%{_liconsdir}/%{name}.png


%changelog

* Fri Jan 11 2013 umeabot <umeabot> 1.6.1-5.mga3
+ Revision: 347557
- Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild

* Fri Jan 11 2013 cjw <cjw> 1.6.1-4.mga3
+ Revision: 345911
- update po/Makefile.in.in and po2/Makefile.in.in to fix make install

  + fwang <fwang>
    - disable schema install
    - fix build with automake 1.13

* Mon Jul 30 2012 sander85 <sander85> 1.6.1-3.mga3
+ Revision: 276157
- Add patch from Fedora to fix build with gcc 4.7.
- Switch BR to lua5.1-devel as build with 5.2 fails.

* Thu Dec 29 2011 supp <supp> 1.6.1-2.mga2
+ Revision: 188809
- rebuild for mga2

* Tue Sep 13 2011 fwang <fwang> 1.6.1-1.mga2
+ Revision: 143023
- more link order fix
- fix link order
- fix include of zlib
- new version 1.6.1
- fix as needed build
- fix build with latest libpng
- br png
- rebuild for new libpng

* Wed Mar 09 2011 mikala <mikala> 1.6.0-3.mga1
+ Revision: 66885
- Remove BuildRoot
- Drop mdk macros
- imported package celestia