1 | Name: kalzium |
---|
2 | Summary: Periodic table and chemistry tools for KDE |
---|
3 | Version: 4.12.5 |
---|
4 | Release: 1%{?_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.xz |
---|
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 | Vendor: Project Vine |
---|
29 | Distribution: Vine Linux |
---|
30 | |
---|
31 | %description |
---|
32 | Kalzium is a full-featured chemistry application for KDE, including |
---|
33 | a Periodic Table of Elements, chemical reference, chemical equation |
---|
34 | solver, and 3D molecule viewer. |
---|
35 | |
---|
36 | This package is part of the KDE education module. |
---|
37 | |
---|
38 | %package libs |
---|
39 | Summary: Runtime libraries for %{name} |
---|
40 | Summary(ja): %{name} のランタイムライブラリ |
---|
41 | Group: System Environment/Libraries |
---|
42 | Conflicts: kdeedu4-libs < 4.6.50 |
---|
43 | |
---|
44 | %description libs |
---|
45 | %{summary}. |
---|
46 | |
---|
47 | %package devel |
---|
48 | Summary: Development files for %{name} |
---|
49 | Summary(ja): %{name} の開発用ファイル |
---|
50 | Group: Development/Libraries |
---|
51 | Requires: %{name}-libs = %{version}-%{release} |
---|
52 | Conflicts: kdeedu4-devel < 4.6.50 |
---|
53 | |
---|
54 | %description devel |
---|
55 | Header files for developing applications using %{name}. |
---|
56 | |
---|
57 | |
---|
58 | %prep |
---|
59 | %setup -q |
---|
60 | |
---|
61 | %build |
---|
62 | mkdir -p %{_target_platform} |
---|
63 | pushd %{_target_platform} |
---|
64 | %cmake \ |
---|
65 | -DCMAKE_BUILD_TYPE=release \ |
---|
66 | -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \ |
---|
67 | -DDATA_INSTALL_DIR:PATH=%{_datadir}/kde4/apps \ |
---|
68 | -DINCLUDE_INSTALL_DIR:PATH=%{_includedir}/kde4 \ |
---|
69 | -DLIBEXEC_INSTALL_DIR:PATH=%{_libexecdir}/kde4 \ |
---|
70 | -DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \ |
---|
71 | .. |
---|
72 | popd |
---|
73 | |
---|
74 | make %{?_smp_mflags} -C %{_target_platform} |
---|
75 | |
---|
76 | %install |
---|
77 | rm -rf $RPM_BUILD_ROOT |
---|
78 | make install/fast DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform} |
---|
79 | |
---|
80 | %clean |
---|
81 | rm -rf $RPM_BUILD_ROOT |
---|
82 | |
---|
83 | %check |
---|
84 | for f in $RPM_BUILD_ROOT%{_datadir}/applications/kde4/*.desktop ; do |
---|
85 | desktop-file-validate $f |
---|
86 | done |
---|
87 | |
---|
88 | |
---|
89 | %post |
---|
90 | touch --no-create %{_datadir}/icons/hicolor &> /dev/null ||: |
---|
91 | |
---|
92 | %posttrans |
---|
93 | update-desktop-database -q &> /dev/null ||: |
---|
94 | gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null ||: |
---|
95 | |
---|
96 | %postun |
---|
97 | if [ $1 -eq 0 ] ; then |
---|
98 | update-desktop-database -q &> /dev/null ||: |
---|
99 | touch --no-create %{_datadir}/icons/hicolor &> /dev/null ||: |
---|
100 | gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null ||: |
---|
101 | fi |
---|
102 | |
---|
103 | %post libs -p /sbin/ldconfig |
---|
104 | |
---|
105 | %postun libs -p /sbin/ldconfig |
---|
106 | |
---|
107 | |
---|
108 | %files |
---|
109 | %defattr(-,root,root) |
---|
110 | %doc COPYING COPYING.DOC |
---|
111 | %{_bindir}/kalzium |
---|
112 | %{_libdir}/kde4/*.so |
---|
113 | %{_datadir}/applications/kde4/kalzium_cml.desktop |
---|
114 | %{_datadir}/applications/kde4/kalzium.desktop |
---|
115 | %{_datadir}/config/kalzium.knsrc |
---|
116 | %{_datadir}/config.kcfg/kalzium.kcfg |
---|
117 | %{_datadir}/icons/hicolor/*/*/* |
---|
118 | %{_datadir}/kde4/apps/desktoptheme/* |
---|
119 | %{_datadir}/kde4/apps/kalzium |
---|
120 | %{_datadir}/kde4/apps/libkdeedu/* |
---|
121 | %{_datadir}/kde4/services/*.desktop |
---|
122 | %{_mandir}/man1/kalzium* |
---|
123 | %doc %{_docdir}/HTML/en/kalzium/ |
---|
124 | |
---|
125 | %files libs |
---|
126 | %defattr(-,root,root) |
---|
127 | %{_libdir}/libcompoundviewer.so.* |
---|
128 | %{_libdir}/libscience.so.* |
---|
129 | |
---|
130 | %files devel |
---|
131 | %defattr(-,root,root) |
---|
132 | %{_includedir}/kde4/libkdeedu/*.h |
---|
133 | %{_libdir}/libcompoundviewer.so |
---|
134 | %{_libdir}/libscience.so |
---|
135 | |
---|
136 | |
---|
137 | %changelog |
---|
138 | * Wed May 07 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.12.5-1 |
---|
139 | - new upstream release |
---|
140 | |
---|
141 | * Sun Feb 09 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.12.2-1 |
---|
142 | - new upstream release |
---|
143 | |
---|
144 | * Wed Dec 18 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.11.4-1 |
---|
145 | - new upstream release |
---|
146 | |
---|
147 | * Sun Dec 08 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.11.1-2 |
---|
148 | - rebuild with libboost-1.54.0 |
---|
149 | |
---|
150 | * Sun Sep 08 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.11.1-1 |
---|
151 | - new upstream release |
---|
152 | |
---|
153 | * Sat Jul 06 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.10.5-1 |
---|
154 | - new upstream release |
---|
155 | |
---|
156 | * Fri Jan 04 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.5-1 |
---|
157 | - new upstream release |
---|
158 | |
---|
159 | * Sat Nov 10 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.3-1 |
---|
160 | - new upstream release |
---|
161 | |
---|
162 | * Sun Oct 07 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.2-1 |
---|
163 | - new upstream release |
---|
164 | |
---|
165 | * Thu Sep 06 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.1-1 |
---|
166 | - new upstream release |
---|
167 | |
---|
168 | * Mon Aug 13 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.0-1 |
---|
169 | - new upstream release |
---|
170 | |
---|
171 | * Sun Feb 26 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.7.0-3 |
---|
172 | - rebuild with python-2.7.2 |
---|
173 | - add BuildRequires: python-devel |
---|
174 | |
---|
175 | * Tue Jan 10 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.7.0-2 |
---|
176 | - rebuild with glew-1.7.0 |
---|
177 | |
---|
178 | * Thu Sep 8 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.7.0-1 |
---|
179 | - split from kdeedu |
---|
180 | |
---|