]>
Commit | Line | Data |
---|---|---|
36f5e2f7 AM |
1 | %define _state stable |
2 | %define orgname kalzium | |
3 | ||
4 | Summary: K Desktop Environment - A Periodic System of Elements database | |
54afab08 | 5 | Summary(pl.UTF-8): K Desktop Environment - Baza danych Układu Okresowego Pierwiastków |
36316a47 | 6 | Name: kde4-kalzium |
8ae9b133 | 7 | Version: 4.12.0 |
ba64324d | 8 | Release: 1 |
36f5e2f7 AM |
9 | License: GPL |
10 | Group: X11/Applications/Science | |
52785b4f | 11 | Source0: ftp://ftp.kde.org/pub/kde/%{_state}/%{version}/src/%{orgname}-%{version}.tar.xz |
8ae9b133 | 12 | # Source0-md5: ac65c18b0d72f5dcea928b288bf0c111 |
36f5e2f7 | 13 | URL: http://www.kde.org/ |
235a1f32 | 14 | BuildRequires: avogadro-devel |
8ae9b133 | 15 | BuildRequires: boost-python-devel |
967b2753 | 16 | BuildRequires: eigen |
36f5e2f7 | 17 | BuildRequires: kde4-kdelibs-devel |
36316a47 | 18 | BuildRequires: ocaml |
36316a47 | 19 | BuildRequires: ocaml-facile |
967b2753 | 20 | BuildRequires: ocaml-runtime |
36f5e2f7 | 21 | BuildRequires: openbabel-devel |
36316a47 | 22 | Obsoletes: kalzium < 4.8.0 |
967b2753 | 23 | Obsoletes: kde4-kdeedu-kalzium < 4.6.99 |
36f5e2f7 AM |
24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
25 | ||
26 | %description | |
27 | A Periodic System of Elements database. Kalzium provides you with all | |
28 | kind of information about the PSE (Periodic System of Elements.) You | |
29 | can lookup lots of information about the elements and also use | |
30 | visualizations to show them. | |
31 | ||
32 | %description -l pl.UTF-8 | |
33 | Baza danych Układu Okresowego Pierwiastków. Kalzium dostarcza wszelkie | |
34 | informacje dotyczące UOP, informacje o pierwiastkach oraz ich | |
35 | wizualizacje. | |
36 | ||
37 | %package devel | |
38 | Summary: kalzium development files | |
39 | Summary(pl.UTF-8): Pliki dla programistów kalzium | |
40 | Group: X11/Development/Libraries | |
41 | Requires: %{name} = %{version}-%{release} | |
36316a47 | 42 | Obsoletes: kalzium-devel < 4.8.0 |
36f5e2f7 AM |
43 | |
44 | %description devel | |
45 | kalzium development files. | |
46 | ||
47 | %description devel -l pl.UTF-8 | |
48 | Pliki dla programistów kalzium. | |
49 | ||
50 | %prep | |
51 | %setup -q -n %{orgname}-%{version} | |
52 | ||
53 | %build | |
54 | install -d build | |
55 | cd build | |
56 | %cmake \ | |
57 | .. | |
58 | %{__make} | |
59 | ||
60 | %install | |
61 | rm -rf $RPM_BUILD_ROOT | |
62 | ||
63 | %{__make} -C build/ install \ | |
64 | DESTDIR=$RPM_BUILD_ROOT \ | |
65 | kde_htmldir=%{_kdedocdir} | |
66 | ||
36316a47 | 67 | %find_lang %{orgname} --with-kde |
36f5e2f7 AM |
68 | |
69 | %clean | |
70 | rm -rf $RPM_BUILD_ROOT | |
71 | ||
72 | %post -p /sbin/ldconfig | |
73 | %postun -p /sbin/ldconfig | |
74 | ||
36316a47 | 75 | %files -f %{orgname}.lang |
36f5e2f7 AM |
76 | %defattr(644,root,root,755) |
77 | %attr(755,root,root) %{_bindir}/kalzium | |
78 | %attr(755,root,root) %{_libdir}/kde4/plasma_engine_kalzium.so | |
79 | %attr(755,root,root) %{_libdir}/kde4/plasma_applet_didyouknow.so | |
80 | %attr(755,root,root) %{_libdir}/kde4/plasma_applet_molmassCalculator.so | |
81 | %attr(755,root,root) %{_libdir}/kde4/concentrationCalculator.so | |
82 | %attr(755,root,root) %{_libdir}/kde4/gasCalculator.so | |
83 | %attr(755,root,root) %{_libdir}/kde4/nuclearCalculator.so | |
84 | ||
85 | %attr(755,root,root) %ghost %{_libdir}/libcompoundviewer.so.? | |
86 | %attr(755,root,root) %{_libdir}/libcompoundviewer.so.*.*.* | |
87 | ||
88 | %attr(755,root,root) %ghost %{_libdir}/libscience.so.? | |
89 | %attr(755,root,root) %{_libdir}/libscience.so.*.*.* | |
90 | ||
91 | %{_datadir}/apps/desktoptheme/default/widgets/chalkboard.svg | |
92 | %{_datadir}/apps/kalzium | |
93 | %{_datadir}/config/kalzium.knsrc | |
94 | %{_datadir}/config.kcfg/kalzium.kcfg | |
95 | %{_datadir}/kde4/services/plasma-dataengine-kalzium.desktop | |
96 | %{_datadir}/kde4/services/plasma_didyouknow.desktop | |
97 | %{_datadir}/kde4/services/concentrationCalculator.desktop | |
98 | %{_datadir}/kde4/services/gasCalculator.desktop | |
99 | %{_datadir}/kde4/services/nuclearCalculator.desktop | |
100 | %{_datadir}/kde4/services/plasma-applet-Molmasscalculator.desktop | |
101 | %{_datadir}/apps/libkdeedu | |
102 | %{_desktopdir}/kde4/kalzium.desktop | |
967b2753 | 103 | %{_desktopdir}/kde4/kalzium_cml.desktop |
36f5e2f7 AM |
104 | %{_iconsdir}/hicolor/scalable/apps/kalzium.svgz |
105 | %{_iconsdir}/hicolor/*x*/apps/kalzium.png | |
106 | %{_mandir}/man1/kalzium.1* | |
107 | ||
108 | %files devel | |
109 | %defattr(644,root,root,755) | |
110 | %{_includedir}/libkdeedu | |
111 | %attr(755,root,root) %{_libdir}/libcompoundviewer.so | |
112 | %attr(755,root,root) %{_libdir}/libscience.so |