kalzium-vl.spec 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  1. Name: kalzium
  2. Summary: Periodic table and chemistry tools for KDE
  3. Version: 4.11.4
  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.xz
  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_cml.desktop
  84. %{_datadir}/applications/kde4/kalzium.desktop
  85. %{_datadir}/config/kalzium.knsrc
  86. %{_datadir}/config.kcfg/kalzium.kcfg
  87. %{_datadir}/icons/hicolor/*/*/*
  88. %{_datadir}/kde4/apps/desktoptheme/*
  89. %{_datadir}/kde4/apps/kalzium
  90. %{_datadir}/kde4/apps/libkdeedu/*
  91. %{_datadir}/kde4/services/*.desktop
  92. %{_mandir}/man1/kalzium*
  93. %doc %{_docdir}/HTML/en/kalzium/
  94. %files libs
  95. %defattr(-,root,root)
  96. %{_libdir}/libcompoundviewer.so.*
  97. %{_libdir}/libscience.so.*
  98. %files devel
  99. %defattr(-,root,root)
  100. %{_includedir}/kde4/libkdeedu/*.h
  101. %{_libdir}/libcompoundviewer.so
  102. %{_libdir}/libscience.so
  103. %changelog
  104. * Wed Dec 18 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.11.4-1
  105. - new upstream release
  106. * Sun Dec 08 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.11.1-2
  107. - rebuild with libboost-1.54.0
  108. * Sun Sep 08 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.11.1-1
  109. - new upstream release
  110. * Sat Jul 06 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.10.5-1
  111. - new upstream release
  112. * Fri Jan 04 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.5-1
  113. - new upstream release
  114. * Sat Nov 10 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.3-1
  115. - new upstream release
  116. * Sun Oct 07 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.2-1
  117. - new upstream release
  118. * Thu Sep 06 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.1-1
  119. - new upstream release
  120. * Mon Aug 13 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.0-1
  121. - new upstream release
  122. * Sun Feb 26 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.7.0-3
  123. - rebuild with python-2.7.2
  124. - add BuildRequires: python-devel
  125. * Tue Jan 10 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.7.0-2
  126. - rebuild with glew-1.7.0
  127. * Thu Sep 8 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.7.0-1
  128. - split from kdeedu