]> git.pld-linux.org Git - packages/celestia.git/blame - celestia.spec
- updated gettext BR
[packages/celestia.git] / celestia.spec
CommitLineData
8c5fc0bf
JB
1#
2# Conditional build:
efaf8d4e 3%bcond_without kde # KDE UI as the default one
8c5fc0bf 4%bcond_with gtk # use GTK+2 UI instead
efaf8d4e 5%bcond_with gnome # use libgnome2 UI instead
6%bcond_with glut # use glut UI instead
275eebf7 7%bcond_without theora # without theora support
8c5fc0bf 8#
efaf8d4e 9%if %{with gtk} || %{with gnome} || %{with glut}
10%undefine with_kde
11%endif
ff9c6890 12Summary: A real-time visual space simulation
57396fd6 13Summary(pl.UTF-8): Symulacja przestrzeni kosmicznej w czasie rzeczywistym
ff9c6890 14Name: celestia
84e273a4 15Version: 1.5.1
7277547a 16Release: 1
ff9c6890 17License: GPL
0e5662ec 18Group: X11/Applications/Science
f0c406a2 19Source0: http://dl.sourceforge.net/celestia/%{name}-%{version}.tar.gz
84e273a4
KK
20# Source0-md5: df6854a2cf62d2e96612398c13b68fd2
21Patch0: %{name}-as-needed.patch
22Patch1: %{name}-gcc43.patch
23Patch2: %{name}-extras.patch
24Patch3: %{name}-desktop.patch
009c7ae9 25Patch4: %{name}-lua51.patch
ff9c6890 26URL: http://www.shatters.net/celestia/
72a82a1c 27BuildRequires: OpenGL-GLU-devel
7277547a 28%{?with_glut:BuildRequires: OpenGL-glut-devel >= 4.0}
1a2dda0a
JB
29BuildRequires: autoconf
30BuildRequires: automake
efaf8d4e 31%if %{with gtk} || %{with gnome}
32BuildRequires: cairo-devel
8c5fc0bf 33BuildRequires: gtk+2-devel >= 2:2.6
efaf8d4e 34BuildRequires: gtkglext-devel
35%endif
324ee6de 36BuildRequires: gettext-tools
efaf8d4e 37%{?with_kde:BuildRequires: kdelibs-devel}
38%{?with_gnome:BuildRequires: libgnomeui-devel}
a684a621 39BuildRequires: libjpeg-devel
40BuildRequires: libpng-devel
41BuildRequires: libstdc++-devel
275eebf7 42%{?with_theora:BuildRequires: libtheora-devel}
0490466f 43BuildRequires: libtool
009c7ae9 44BuildRequires: lua51-devel
4322beb0 45BuildRequires: pkgconfig
efaf8d4e 46BuildRequires: sed >= 4.0
efaf8d4e 47# celestia < 1.4 original packages
48Obsoletes: celestia-extrasolar
49Obsoletes: celestia-generator
50Obsoletes: celestia-stars
51Obsoletes: celestia-task-default
52# texture replacement addons, virtual provides
53Obsoletes: celestia-textures-earth
54Obsoletes: celestia-textures-earth-clouds
55Obsoletes: celestia-textures-earth-night
56Obsoletes: celestia-textures-galileanmoons
57Obsoletes: celestia-textures-mars
58Obsoletes: celestia-textures-mars-bumpmap
59Obsoletes: celestia-textures-mercury
60Obsoletes: celestia-textures-mercury-bumpmap
61Obsoletes: celestia-textures-moon
62Obsoletes: celestia-textures-moon-bumpmap
63# celestia addons
64Obsoletes: celestia-blackhole
65Obsoletes: celestia-galaxies_extended
66Obsoletes: celestia-galaxy_clusters
67Obsoletes: celestia-globular_clusters
68Obsoletes: celestia-im-starwars
69Obsoletes: celestia-pathfinder
70Obsoletes: celestia-voyager
ff9c6890 71BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
72
ff9c6890 73%description
74Celestia is a free real-time space simulation that lets you experience
75our universe in three dimensions. Unlike most planetarium software,
76Celestia doesn't confine you to the surface of the Earth. You can
77travel throughout the solar system, to any of over 100,000 stars, or
78even beyond the galaxy. All travel in Celestia is seamless; the
79exponential zoom feature lets you explore space across a huge range of
80scales, from galaxy clusters down to spacecraft only a few meters
81across. A 'point-and-goto' interface makes it simple to navigate
82through the universe to the object you want to visit.
83
4107a3bb 84%description -l pl.UTF-8
ff9c6890 85Celestia to wolny symulator przestrzeni komicznej w czasie
7277547a
KK
86rzeczywistym, który pozwala doświadczać naszego Wszechświata w
87trzech wymiarach. W odróżnieniu od innych programów planetarnych
88Celestia nie przywiązuje Cię do powierzchni ziemi. Możesz
89podróżować przez Układ Słoneczny do ponad 100,000 gwiazd lub
90nawet poza galaktykę. Wszystkie podróże w Celestii są
91niezauważalne; funkcja wykładniczego przybliżenia pozwala Ci
92odkrywać Kosmos w różnych skalach - od spojrzenia na galaktyki do
93widoku kilkumetrowych statków kosmicznych. Interfejs typu
94'pokaż-i-leć' czyni nawigację przez Wszechświat prostą.
ff9c6890 95
96%prep
f0c406a2 97%setup -q
84e273a4 98%patch0
d267ffc3 99%patch1 -p1
f0c406a2 100%patch2 -p1
101%patch3 -p1
009c7ae9 102%patch4
724d8895 103
efaf8d4e 104# ugly hack not to require GConf2-devel if we're not building gnome version
105%{!?with_gnome:sed -i "s#AM_GCONF_SOURCE_2##g" configure.in}
36f18dc6 106
efaf8d4e 107%build
108cp -f /usr/share/automake/config.sub admin
109%{__make} -f admin/Makefile.common
36f18dc6 110
0490466f 111%configure \
efaf8d4e 112 %{?with_kde:--with-kde} \
113 %{?with_gtk:--with-gtk} \
114 %{?with_gnome:--with-gnome} \
115 %{?with_glut:--with-glut} \
0490466f 116 --disable-rpath \
275eebf7 117 %{!?with_theora:--disable-theora} \
d267ffc3 118 --with-lua \
8cb97c25 119 --with-qt-dir=%{_libdir}
36f18dc6 120
efaf8d4e 121%{__make}
ff9c6890 122
123%install
124rm -rf $RPM_BUILD_ROOT
2560aac7 125
126%{__make} install \
36f18dc6 127 DESTDIR=$RPM_BUILD_ROOT \
efaf8d4e 128 kde_htmldir=%{_kdedocdir} \
52c7f06c 129 kde_libs_htmldir=%{_kdedocdir} \
efaf8d4e 130 appsdir=%{_desktopdir}/kde
2560aac7 131
132# desktop/icon
f0c406a2 133install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}}
efaf8d4e 134%{!?with_kde:install src/celestia/kde/data/celestia.desktop $RPM_BUILD_ROOT%{_desktopdir}/%{name}.desktop}
135install src/celestia/kde/data/hi48-app-celestia.png $RPM_BUILD_ROOT%{_pixmapsdir}/celestia.png
36f18dc6 136
52c7f06c 137%find_lang %{name} --all-name --with-kde
89ee6494 138
ff9c6890 139%clean
140rm -rf $RPM_BUILD_ROOT
141
efaf8d4e 142%if %{with gnome}
143%post
144%gconf_schema_install celestia.schemas
145
146%preun
147%gconf_schema_uninstall celestia.schemas
148%endif
149
f0c406a2 150%files -f %{name}.lang
ff9c6890 151%defattr(644,root,root,755)
efaf8d4e 152%doc README AUTHORS TODO controls.txt ChangeLog
ff9c6890 153%attr(755,root,root) %{_bindir}/*
f0c406a2 154%{_datadir}/celestia
2560aac7 155%{_pixmapsdir}/*
efaf8d4e 156%if %{with kde}
f0c406a2 157%{_datadir}/apps/celestia
89ee6494 158%{_datadir}/config/*
2560aac7 159%{_datadir}/mimelnk/application/*
160%{_datadir}/services/*
efaf8d4e 161%{_iconsdir}/*/*/apps/%{name}.png
e812d11b 162%{_desktopdir}/kde/*.desktop
efaf8d4e 163%else
e812d11b 164%{_desktopdir}/*.desktop
efaf8d4e 165%endif
166%{?with_gnome:%{_sysconfdir}/gconf/schemas/celestia.schemas}
This page took 0.066459 seconds and 4 git commands to generate.