kalzium-vl.spec 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. Name: kalzium
  2. Summary: Periodic table and chemistry tools for KDE
  3. Version: 4.7.0
  4. Release: 3%{?_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. BuildRequires: python-devel
  19. Requires: kdebase-runtime%{?_kde4_version: >= %{_kde4_version}}
  20. Conflicts: kdeedu4 < 4.6.50
  21. %description
  22. Kalzium is a full-featured chemistry application for KDE, including
  23. a Periodic Table of Elements, chemical reference, chemical equation
  24. solver, and 3D molecule viewer.
  25. This package is part of the KDE education module.
  26. %package libs
  27. Summary: Runtime libraries for %{name}
  28. Summary(ja): %{name} のランタイムライブラリ
  29. Group: System Environment/Libraries
  30. Conflicts: kdeedu4-libs < 4.6.50
  31. %description libs
  32. %{summary}.
  33. %package devel
  34. Summary: Development files for %{name}
  35. Summary(ja): %{name} の開発用ファイル
  36. Group: Development/Libraries
  37. Requires: %{name}-libs = %{version}-%{release}
  38. Conflicts: kdeedu4-devel < 4.6.50
  39. %description devel
  40. Header files for developing applications using %{name}.
  41. %prep
  42. %setup -q
  43. %build
  44. mkdir -p %{_target_platform}
  45. pushd %{_target_platform}
  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. * Sun Feb 26 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.7.0-3
  104. - rebuild with python-2.7.2
  105. - add BuildRequires: python-devel
  106. * Tue Jan 10 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.7.0-2
  107. - rebuild with glew-1.7.0
  108. * Thu Sep 8 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.7.0-1
  109. - split from kdeedu