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