source: projects/specs/trunk/k/kstars/kstars-vl.spec @ 4743

Revision 4743, 2.7 KB checked in by inagaki, 13 years ago (diff)

NEW: KDE Educational packages
update: kdeplasma-addons

Line 
1Name: kstars
2Summary: Desktop Planetarium for KDE
3Summary(ja): KDE 向けデスクトッププラネタリウム
4Version: 4.7.0
5Release: 1%{?_dist_release}
6
7License: GPLv2+
8Group: Applications/Edutainment
9URL: http://edu.kde.org/kstars/
10
11Source: ftp://ftp.kde.org/pub/kde/stable/%{version}/src/%{name}-%{version}.tar.bz2
12
13## upstream patches
14
15BuildRoot: %{_tmppath}/%{name}-%{version}-root
16BuildRequires: cfitsio-devel >= 3.09
17BuildRequires: desktop-file-utils
18BuildRequires: eigen2-devel
19BuildRequires: kdelibs4-devel >= %{version}
20BuildRequires: libindi-devel >= 0.8
21BuildRequires: mesa-libGL-devel
22BuildRequires: xplanet >= 1.0
23BuildRequires: zlib-devel
24
25Requires: kdebase-runtime%{?_kde4_version: >= %{_kde4_version}}
26
27Conflicts: kdeedu4 < 4.6.50
28
29%description
30KStars is a desktop planetarium for KDE, depicting an accurate
31graphical simulation of the night sky, from any location on Earth,
32at any date and time. The display includes 130,000 stars, 13,000
33deep-sky objects, all 8 planets, the Sun and Moon, and thousands
34of comets and asteroids. It includes tools for astronomical calculations
35and can control telescopes and cameras.
36
37This package is part of the KDE education module.
38
39%prep
40%setup -q
41
42%build
43mkdir -p %{_target_platform}
44pushd %{_target_platform}
45unset QTDIR || : ; . /etc/profile.d/qt4.sh
46%cmake \
47    -DCMAKE_BUILD_TYPE=release \
48    -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
49    -DDATA_INSTALL_DIR:PATH=%{_datadir}/kde4/apps \
50    -DINCLUDE_INSTALL_DIR:PATH=%{_includedir}/kde4 \
51    -DLIBEXEC_INSTALL_DIR:PATH=%{_libexecdir}/kde4 \
52    -DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \
53    ..
54popd
55
56make %{?_smp_mflags} -C %{_target_platform}
57
58%install
59rm -rf $RPM_BUILD_ROOT
60make install/fast DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform}
61
62# unpackaged files
63# omit stuff for which there isn't a clear public API
64rm -f $RPM_BUILD_ROOT%{_libdir}/libhtmesh.a
65
66%clean
67rm -rf $RPM_BUILD_ROOT
68
69%check
70for f in $RPM_BUILD_ROOT%{_datadir}/applications/kde4/*.desktop ; do
71    desktop-file-validate $f
72done
73
74
75%post
76touch --no-create %{_datadir}/icons/hicolor &> /dev/null ||:
77
78%posttrans
79update-desktop-database -q &> /dev/null ||:
80gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null ||:
81
82%postun
83if [ $1 -eq 0 ] ; then
84    update-desktop-database -q &> /dev/null ||:
85    touch --no-create %{_datadir}/icons/hicolor &> /dev/null ||:
86    gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null ||:
87fi
88
89%files
90%defattr(-,root,root)
91%doc COPYING COPYING.DOC
92%{_bindir}/kstars
93%{_datadir}/applications/kde4/kstars.desktop
94%{_datadir}/config/kstars.knsrc
95%{_datadir}/config.kcfg/kstars.kcfg
96%{_datadir}/icons/hicolor/*/*/*
97%{_datadir}/kde4/apps/kstars
98%doc %{_docdir}/HTML/en/kstars/
99
100%changelog
101* Sat Sep  3 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.7.0-1
102- split from kdeedu
103
Note: See TracBrowser for help on using the repository browser.