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

Revision 10563, 3.9 KB checked in by Takemikaduchi, 8 years ago (diff)

rebuild with gcc-5.4.0

Line 
1Name: kstars
2Summary: Desktop Planetarium for KDE
3Summary(ja): KDE 向けデスクトッププラネタリウム
4Version: 4.12.5
5Release: 4%{?_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.xz
12
13## upstream patches
14
15BuildRoot: %{_tmppath}/%{name}-%{version}-root
16BuildRequires: cfitsio-devel >= 3.09
17BuildRequires: desktop-file-utils
18BuildRequires: eigen2-devel
19BuildRequires: kdelibs-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
29Vendor: Project Vine
30Distribution: Vine Linux
31
32%description
33KStars is a desktop planetarium for KDE, depicting an accurate
34graphical simulation of the night sky, from any location on Earth,
35at any date and time. The display includes 130,000 stars, 13,000
36deep-sky objects, all 8 planets, the Sun and Moon, and thousands
37of comets and asteroids. It includes tools for astronomical calculations
38and can control telescopes and cameras.
39
40This package is part of the KDE education module.
41
42%prep
43%setup -q
44
45%build
46mkdir -p %{_target_platform}
47pushd %{_target_platform}
48%cmake \
49    -DCMAKE_BUILD_TYPE=release \
50    -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
51    -DDATA_INSTALL_DIR:PATH=%{_datadir}/kde4/apps \
52    -DINCLUDE_INSTALL_DIR:PATH=%{_includedir}/kde4 \
53    -DLIBEXEC_INSTALL_DIR:PATH=%{_libexecdir}/kde4 \
54    -DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \
55    ..
56popd
57
58make %{?_smp_mflags} -C %{_target_platform}
59
60%install
61rm -rf $RPM_BUILD_ROOT
62make install/fast DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform}
63
64# unpackaged files
65# omit stuff for which there isn't a clear public API
66rm -f $RPM_BUILD_ROOT%{_libdir}/libhtmesh.a
67
68%clean
69rm -rf $RPM_BUILD_ROOT
70
71%check
72for f in $RPM_BUILD_ROOT%{_datadir}/applications/kde4/*.desktop ; do
73    desktop-file-validate $f
74done
75
76
77%post
78touch --no-create %{_datadir}/icons/hicolor &> /dev/null ||:
79
80%posttrans
81update-desktop-database -q &> /dev/null ||:
82gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null ||:
83
84%postun
85if [ $1 -eq 0 ] ; then
86    update-desktop-database -q &> /dev/null ||:
87    touch --no-create %{_datadir}/icons/hicolor &> /dev/null ||:
88    gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null ||:
89fi
90
91%files
92%defattr(-,root,root)
93%doc COPYING COPYING.DOC
94%{_bindir}/kstars
95%{_datadir}/applications/kde4/kstars.desktop
96%{_datadir}/config/kstars.knsrc
97%{_datadir}/config.kcfg/kstars.kcfg
98%{_datadir}/icons/hicolor/*/*/*
99%{_datadir}/kde4/apps/kstars
100%doc %{_docdir}/HTML/en/kstars/
101
102%changelog
103* Fri Jul 08 2016 Yoji TOODA <bsyamato@sea.plala.or.jp> 4.12.5-4
104- rebuild with gcc-5.4.0
105
106* Wed Feb 25 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 4.12.5-3
107- rebuilt with cfitsio 3.370
108
109* Thu Jan 01 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.12.5-2
110- rebuild with KDE-4.14.3
111
112* Wed May 07 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.12.5-1
113- new upstream release
114
115* Sun Feb 09 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.12.2-1
116- new upstream release
117
118* Wed Dec 18 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.11.4-1
119- new upstream release
120
121* Sun Sep 08 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.11.1-1
122- new upstream release
123
124* Sat Jul 06 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.10.5-1
125- new upstream release
126
127* Fri Jan 04 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.5-1
128- new upstream release
129
130* Sat Nov 10 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.3-1
131- new upstream release
132
133* Sun Oct 07 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.2-1
134- new upstream release
135
136* Thu Sep 06 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.1-1
137- new upstream release
138
139* Mon Aug 13 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.0-1
140- new upstream release
141
142* Sat Sep  3 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.7.0-1
143- split from kdeedu
144
Note: See TracBrowser for help on using the repository browser.