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