]> git.pld-linux.org Git - packages/celestia.git/blame - celestia.spec
- up to 1.6.4
[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
01ea428d 15Version: 1.6.4
7277547a 16Release: 1
ff9c6890 17License: GPL
0e5662ec 18Group: X11/Applications/Science
e6b2369d 19Source0: https://github.com/CelestiaProject/Celestia/archive/refs/tags/%{version}.tar.gz
01ea428d 20# Source0-md5: d4770ffe08cb8761a78bebabcb9067ef
e6b2369d
KM
21Patch0: %{name}-desktop.patch
22Patch1: %{name}-null.patch
23URL: https://celestia.space
72a82a1c 24BuildRequires: OpenGL-GLU-devel
7277547a 25%{?with_glut:BuildRequires: OpenGL-glut-devel >= 4.0}
1a2dda0a
JB
26BuildRequires: autoconf
27BuildRequires: automake
e11c2ee1 28BuildRequires: gettext-tools
efaf8d4e 29%if %{with gtk} || %{with gnome}
30BuildRequires: cairo-devel
8c5fc0bf 31BuildRequires: gtk+2-devel >= 2:2.6
efaf8d4e 32BuildRequires: gtkglext-devel
33%endif
324ee6de 34BuildRequires: gettext-tools
efaf8d4e 35%{?with_kde:BuildRequires: kdelibs-devel}
36%{?with_gnome:BuildRequires: libgnomeui-devel}
a684a621 37BuildRequires: libjpeg-devel
38BuildRequires: libpng-devel
39BuildRequires: libstdc++-devel
275eebf7 40%{?with_theora:BuildRequires: libtheora-devel}
0490466f 41BuildRequires: libtool
e6b2369d 42BuildRequires: lua53-devel
4322beb0 43BuildRequires: pkgconfig
efaf8d4e 44BuildRequires: sed >= 4.0
efaf8d4e 45# celestia < 1.4 original packages
46Obsoletes: celestia-extrasolar
47Obsoletes: celestia-generator
48Obsoletes: celestia-stars
49Obsoletes: celestia-task-default
50# texture replacement addons, virtual provides
51Obsoletes: celestia-textures-earth
52Obsoletes: celestia-textures-earth-clouds
53Obsoletes: celestia-textures-earth-night
54Obsoletes: celestia-textures-galileanmoons
55Obsoletes: celestia-textures-mars
56Obsoletes: celestia-textures-mars-bumpmap
57Obsoletes: celestia-textures-mercury
58Obsoletes: celestia-textures-mercury-bumpmap
59Obsoletes: celestia-textures-moon
60Obsoletes: celestia-textures-moon-bumpmap
61# celestia addons
62Obsoletes: celestia-blackhole
63Obsoletes: celestia-galaxies_extended
64Obsoletes: celestia-galaxy_clusters
65Obsoletes: celestia-globular_clusters
66Obsoletes: celestia-im-starwars
67Obsoletes: celestia-pathfinder
68Obsoletes: celestia-voyager
ff9c6890 69BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
70
ff9c6890 71%description
72Celestia is a free real-time space simulation that lets you experience
73our universe in three dimensions. Unlike most planetarium software,
74Celestia doesn't confine you to the surface of the Earth. You can
75travel throughout the solar system, to any of over 100,000 stars, or
76even beyond the galaxy. All travel in Celestia is seamless; the
77exponential zoom feature lets you explore space across a huge range of
78scales, from galaxy clusters down to spacecraft only a few meters
79across. A 'point-and-goto' interface makes it simple to navigate
80through the universe to the object you want to visit.
81
4107a3bb 82%description -l pl.UTF-8
ff9c6890 83Celestia to wolny symulator przestrzeni komicznej w czasie
d7a2de45
ER
84rzeczywistym, który pozwala doświadczać naszego Wszechświata w trzech
85wymiarach. W odróżnieniu od innych programów planetarnych Celestia nie
86przywiązuje Cię do powierzchni ziemi. Możesz podróżować przez Układ
87Słoneczny do ponad 100,000 gwiazd lub nawet poza galaktykę. Wszystkie
88podróże w Celestii są niezauważalne; funkcja wykładniczego
89przybliżenia pozwala Ci odkrywać Kosmos w różnych skalach - od
90spojrzenia na galaktyki do widoku kilkumetrowych statków kosmicznych.
91Interfejs typu 'pokaż-i-leć' czyni nawigację przez Wszechświat prostą.
ff9c6890 92
93%prep
e6b2369d 94%setup -q -n Celestia-%{version}
e11c2ee1 95%patch0 -p1
d267ffc3 96%patch1 -p1
36f18dc6 97
efaf8d4e 98%build
e11c2ee1
JK
99%{__gettextize}
100cp -a po/Makefile* po2/
101%{__libtoolize}
102%{__aclocal}
103%{__autoconf}
104%{__autoheader}
105%{__automake}
36f18dc6 106
0490466f 107%configure \
e11c2ee1
JK
108 CFLAGS="%{rpmcflags} $(pkg-config --cflags libpng)" \
109 LIBS="-ldl" \
efaf8d4e 110 %{?with_kde:--with-kde} \
111 %{?with_gtk:--with-gtk} \
112 %{?with_gnome:--with-gnome} \
113 %{?with_glut:--with-glut} \
0490466f 114 --disable-rpath \
275eebf7 115 %{!?with_theora:--disable-theora} \
d267ffc3 116 --with-lua \
8cb97c25 117 --with-qt-dir=%{_libdir}
36f18dc6 118
efaf8d4e 119%{__make}
ff9c6890 120
121%install
122rm -rf $RPM_BUILD_ROOT
2560aac7 123
124%{__make} install \
36f18dc6 125 DESTDIR=$RPM_BUILD_ROOT \
efaf8d4e 126 kde_htmldir=%{_kdedocdir} \
52c7f06c 127 kde_libs_htmldir=%{_kdedocdir} \
efaf8d4e 128 appsdir=%{_desktopdir}/kde
2560aac7 129
130# desktop/icon
f0c406a2 131install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}}
efaf8d4e 132%{!?with_kde:install src/celestia/kde/data/celestia.desktop $RPM_BUILD_ROOT%{_desktopdir}/%{name}.desktop}
d7a2de45 133cp -p src/celestia/kde/data/hi48-app-celestia.png $RPM_BUILD_ROOT%{_pixmapsdir}/celestia.png
36f18dc6 134
52c7f06c 135%find_lang %{name} --all-name --with-kde
89ee6494 136
ff9c6890 137%clean
138rm -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)
e11c2ee1 150%doc NEWS README AUTHORS 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}
This page took 0.106441 seconds and 4 git commands to generate.