kalzium-vl.spec 3.3 KB

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