1 | Name: kalzium |
---|
2 | Summary: Periodic table and chemistry tools for KDE |
---|
3 | Version: 4.7.0 |
---|
4 | Release: 3%{?_dist_release} |
---|
5 | |
---|
6 | License: GPLv2+ |
---|
7 | Group: Applications/Edutainment |
---|
8 | URL: http://edu.kde.org/kalzium/ |
---|
9 | |
---|
10 | Source: ftp://ftp.kde.org/pub/kde/stable/%{version}/src/%{name}-%{version}.tar.bz2 |
---|
11 | |
---|
12 | ## upstream patches |
---|
13 | |
---|
14 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
15 | BuildRequires: avogadro-devel |
---|
16 | BuildRequires: desktop-file-utils |
---|
17 | BuildRequires: eigen2-devel |
---|
18 | BuildRequires: kdelibs4-devel >= %{version} |
---|
19 | BuildRequires: ocaml |
---|
20 | BuildRequires: openbabel-devel >= 2.2.0 |
---|
21 | BuildRequires: soprano-devel |
---|
22 | BuildRequires: python-devel |
---|
23 | |
---|
24 | Requires: kdebase-runtime%{?_kde4_version: >= %{_kde4_version}} |
---|
25 | |
---|
26 | Conflicts: kdeedu4 < 4.6.50 |
---|
27 | |
---|
28 | %description |
---|
29 | Kalzium is a full-featured chemistry application for KDE, including |
---|
30 | a Periodic Table of Elements, chemical reference, chemical equation |
---|
31 | solver, and 3D molecule viewer. |
---|
32 | |
---|
33 | This package is part of the KDE education module. |
---|
34 | |
---|
35 | %package libs |
---|
36 | Summary: Runtime libraries for %{name} |
---|
37 | Summary(ja): %{name} のランタイムライブラリ |
---|
38 | Group: System Environment/Libraries |
---|
39 | Conflicts: kdeedu4-libs < 4.6.50 |
---|
40 | |
---|
41 | %description libs |
---|
42 | %{summary}. |
---|
43 | |
---|
44 | %package devel |
---|
45 | Summary: Development files for %{name} |
---|
46 | Summary(ja): %{name} の開発用ファイル |
---|
47 | Group: Development/Libraries |
---|
48 | Requires: %{name}-libs = %{version}-%{release} |
---|
49 | Conflicts: kdeedu4-devel < 4.6.50 |
---|
50 | |
---|
51 | %description devel |
---|
52 | Header files for developing applications using %{name}. |
---|
53 | |
---|
54 | |
---|
55 | %prep |
---|
56 | %setup -q |
---|
57 | |
---|
58 | %build |
---|
59 | mkdir -p %{_target_platform} |
---|
60 | pushd %{_target_platform} |
---|
61 | %cmake \ |
---|
62 | -DCMAKE_BUILD_TYPE=release \ |
---|
63 | -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \ |
---|
64 | -DDATA_INSTALL_DIR:PATH=%{_datadir}/kde4/apps \ |
---|
65 | -DINCLUDE_INSTALL_DIR:PATH=%{_includedir}/kde4 \ |
---|
66 | -DLIBEXEC_INSTALL_DIR:PATH=%{_libexecdir}/kde4 \ |
---|
67 | -DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \ |
---|
68 | .. |
---|
69 | popd |
---|
70 | |
---|
71 | make %{?_smp_mflags} -C %{_target_platform} |
---|
72 | |
---|
73 | %install |
---|
74 | rm -rf $RPM_BUILD_ROOT |
---|
75 | make install/fast DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform} |
---|
76 | |
---|
77 | %clean |
---|
78 | rm -rf $RPM_BUILD_ROOT |
---|
79 | |
---|
80 | %check |
---|
81 | for f in $RPM_BUILD_ROOT%{_datadir}/applications/kde4/*.desktop ; do |
---|
82 | desktop-file-validate $f |
---|
83 | done |
---|
84 | |
---|
85 | |
---|
86 | %post |
---|
87 | touch --no-create %{_datadir}/icons/hicolor &> /dev/null ||: |
---|
88 | |
---|
89 | %posttrans |
---|
90 | update-desktop-database -q &> /dev/null ||: |
---|
91 | gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null ||: |
---|
92 | |
---|
93 | %postun |
---|
94 | if [ $1 -eq 0 ] ; then |
---|
95 | update-desktop-database -q &> /dev/null ||: |
---|
96 | touch --no-create %{_datadir}/icons/hicolor &> /dev/null ||: |
---|
97 | gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null ||: |
---|
98 | fi |
---|
99 | |
---|
100 | %post libs -p /sbin/ldconfig |
---|
101 | |
---|
102 | %postun libs -p /sbin/ldconfig |
---|
103 | |
---|
104 | |
---|
105 | %files |
---|
106 | %defattr(-,root,root) |
---|
107 | %doc COPYING COPYING.DOC |
---|
108 | %{_bindir}/kalzium |
---|
109 | %{_libdir}/kde4/*.so |
---|
110 | %{_datadir}/applications/kde4/kalzium.desktop |
---|
111 | %{_datadir}/config/kalzium.knsrc |
---|
112 | %{_datadir}/config.kcfg/kalzium.kcfg |
---|
113 | %{_datadir}/icons/hicolor/*/*/* |
---|
114 | %{_datadir}/kde4/apps/desktoptheme/* |
---|
115 | %{_datadir}/kde4/apps/kalzium |
---|
116 | %{_datadir}/kde4/apps/libkdeedu/* |
---|
117 | %{_datadir}/kde4/services/*.desktop |
---|
118 | %{_mandir}/man1/kalzium* |
---|
119 | %doc %{_docdir}/HTML/en/kalzium/ |
---|
120 | |
---|
121 | %files libs |
---|
122 | %defattr(-,root,root) |
---|
123 | %{_libdir}/libcompoundviewer.so.* |
---|
124 | %{_libdir}/libscience.so.* |
---|
125 | |
---|
126 | %files devel |
---|
127 | %defattr(-,root,root) |
---|
128 | %{_includedir}/kde4/libkdeedu/*.h |
---|
129 | %{_libdir}/libcompoundviewer.so |
---|
130 | %{_libdir}/libscience.so |
---|
131 | |
---|
132 | |
---|
133 | %changelog |
---|
134 | * Sun Feb 26 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.7.0-3 |
---|
135 | - rebuild with python-2.7.2 |
---|
136 | - add BuildRequires: python-devel |
---|
137 | |
---|
138 | * Tue Jan 10 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.7.0-2 |
---|
139 | - rebuild with glew-1.7.0 |
---|
140 | |
---|
141 | * Thu Sep 8 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.7.0-1 |
---|
142 | - split from kdeedu |
---|
143 | |
---|