# The Kalzium solver needs OCaml with native compilation support (ocamlopt) and # ocaml-facile. %ifarch alpha %{ix86} ia64 x86_64 ppc ppc64 sparc sparcv9 %define with_facile 1 %endif Name: kalzium Version: 4.6.80 Release: 1%{?dist} Summary: Periodic Table of Elements License: GPLv2 URL: http://www.kde.org/ Source0: ftp://ftp.kde.org/pub/kde/stable/%{version}/src/%{name}-%{version}.tar.bz2 BuildRequires: kdelibs4-devel >= %{version} BuildRequires: eigen2-devel >= 2.0.3 BuildRequires: avogadro-devel >= 1.0.1 BuildRequires: openbabel-devel >= 2.2.0-0.4.b5 %if 0%{?with_facile} BuildRequires: ocaml(compiler) BuildRequires: ocaml-facile-devel %endif %{?_kde4_macros_api:Requires: kde4-macros(api) = %{_kde4_macros_api} } %description Kalzium is digital replacement for the periodic table on paper. It is a program that visualizes the Periodic Table of Elements (PSE) and includes basic information about all common elements in the PSE. %prep %setup -q -n %{name}-%{version} %build mkdir -p %{_target_platform} pushd %{_target_platform} %{cmake_kde4} .. popd make %{?_smp_mflags} -C %{_target_platform} %install rm -rf %{buildroot} make install/fast DESTDIR=%{buildroot} -C %{_target_platform} # Remove executable permission from desktop file chmod -x %{buildroot}%{_kde4_datadir}/applications/kde4/kalzium.desktop %post /sbin/ldconfig touch --no-create %{_kde4_iconsdir}/hicolor &> /dev/null ||: %posttrans gtk-update-icon-cache %{_kde4_iconsdir}/hicolor &> /dev/null ||: update-desktop-database -q &> /dev/null ||: %postun /sbin/ldconfig if [ $1 -eq 0 ] ; then touch --no-create %{_kde4_iconsdir}/hicolor &> /dev/null ||: gtk-update-icon-cache %{_kde4_iconsdir}/hicolor &> /dev/null ||: update-desktop-database -q &> /dev/null ||: fi %files %defattr(-,root,root,-) %{_kde4_bindir}/kalzium %{_kde4_includedir}/libkdeedu/*.h %{_kde4_libdir}/kde4/ %{_kde4_libdir}/libscience.so* %{_kde4_libdir}/libcompoundviewer.so* %{_kde4_datadir}/applications/kde4/kalzium.desktop %{_kde4_datadir}/config.kcfg/kalzium.kcfg %{_kde4_configdir}/kalzium.knsrc %{_kde4_docdir}/HTML/en/kalzium/ %{_kde4_iconsdir}/hicolor/*/*/* %{_kde4_appsdir}/desktoptheme/default/widgets/chalkboard.svg %{_kde4_appsdir}/kalzium/ %{_kde4_appsdir}/libkdeedu/data/ %{_kde4_datadir}/kde4/services/ %{_mandir}/man1/kalzium.* %changelog * Tue Jun 07 2011 Radek Novacek - 4.6.80-1 - Initial release