kalzium-vl.spec 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  1. Name: kalzium
  2. Summary: Periodic table and chemistry tools for KDE
  3. Version: 4.12.5
  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. Vendor: Project Vine
  22. Distribution: Vine Linux
  23. %description
  24. Kalzium is a full-featured chemistry application for KDE, including
  25. a Periodic Table of Elements, chemical reference, chemical equation
  26. solver, and 3D molecule viewer.
  27. This package is part of the KDE education module.
  28. %package libs
  29. Summary: Runtime libraries for %{name}
  30. Summary(ja): %{name} のランタイムライブラリ
  31. Group: System Environment/Libraries
  32. Conflicts: kdeedu4-libs < 4.6.50
  33. %description libs
  34. %{summary}.
  35. %package devel
  36. Summary: Development files for %{name}
  37. Summary(ja): %{name} の開発用ファイル
  38. Group: Development/Libraries
  39. Requires: %{name}-libs = %{version}-%{release}
  40. Conflicts: kdeedu4-devel < 4.6.50
  41. %description devel
  42. Header files for developing applications using %{name}.
  43. %prep
  44. %setup -q
  45. %build
  46. mkdir -p %{_target_platform}
  47. pushd %{_target_platform}
  48. %cmake \
  49. -DCMAKE_BUILD_TYPE=release \
  50. -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
  51. -DDATA_INSTALL_DIR:PATH=%{_datadir}/kde4/apps \
  52. -DINCLUDE_INSTALL_DIR:PATH=%{_includedir}/kde4 \
  53. -DLIBEXEC_INSTALL_DIR:PATH=%{_libexecdir}/kde4 \
  54. -DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \
  55. ..
  56. popd
  57. make %{?_smp_mflags} -C %{_target_platform}
  58. %install
  59. rm -rf $RPM_BUILD_ROOT
  60. make install/fast DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform}
  61. %clean
  62. rm -rf $RPM_BUILD_ROOT
  63. %check
  64. for f in $RPM_BUILD_ROOT%{_datadir}/applications/kde4/*.desktop ; do
  65. desktop-file-validate $f
  66. done
  67. %post
  68. touch --no-create %{_datadir}/icons/hicolor &> /dev/null ||:
  69. %posttrans
  70. update-desktop-database -q &> /dev/null ||:
  71. gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null ||:
  72. %postun
  73. if [ $1 -eq 0 ] ; then
  74. update-desktop-database -q &> /dev/null ||:
  75. touch --no-create %{_datadir}/icons/hicolor &> /dev/null ||:
  76. gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null ||:
  77. fi
  78. %post libs -p /sbin/ldconfig
  79. %postun libs -p /sbin/ldconfig
  80. %files
  81. %defattr(-,root,root)
  82. %doc COPYING COPYING.DOC
  83. %{_bindir}/kalzium
  84. %{_libdir}/kde4/*.so
  85. %{_datadir}/applications/kde4/kalzium_cml.desktop
  86. %{_datadir}/applications/kde4/kalzium.desktop
  87. %{_datadir}/config/kalzium.knsrc
  88. %{_datadir}/config.kcfg/kalzium.kcfg
  89. %{_datadir}/icons/hicolor/*/*/*
  90. %{_datadir}/kde4/apps/desktoptheme/*
  91. %{_datadir}/kde4/apps/kalzium
  92. %{_datadir}/kde4/apps/libkdeedu/*
  93. %{_datadir}/kde4/services/*.desktop
  94. %{_mandir}/man1/kalzium*
  95. %doc %{_docdir}/HTML/en/kalzium/
  96. %files libs
  97. %defattr(-,root,root)
  98. %{_libdir}/libcompoundviewer.so.*
  99. %{_libdir}/libscience.so.*
  100. %files devel
  101. %defattr(-,root,root)
  102. %{_includedir}/kde4/libkdeedu/*.h
  103. %{_libdir}/libcompoundviewer.so
  104. %{_libdir}/libscience.so
  105. %changelog
  106. * Wed May 07 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.12.5-1
  107. - new upstream release
  108. * Sun Feb 09 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.12.2-1
  109. - new upstream release
  110. * Wed Dec 18 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.11.4-1
  111. - new upstream release
  112. * Sun Dec 08 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.11.1-2
  113. - rebuild with libboost-1.54.0
  114. * Sun Sep 08 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.11.1-1
  115. - new upstream release
  116. * Sat Jul 06 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.10.5-1
  117. - new upstream release
  118. * Fri Jan 04 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.5-1
  119. - new upstream release
  120. * Sat Nov 10 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.3-1
  121. - new upstream release
  122. * Sun Oct 07 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.2-1
  123. - new upstream release
  124. * Thu Sep 06 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.1-1
  125. - new upstream release
  126. * Mon Aug 13 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.0-1
  127. - new upstream release
  128. * Sun Feb 26 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.7.0-3
  129. - rebuild with python-2.7.2
  130. - add BuildRequires: python-devel
  131. * Tue Jan 10 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.7.0-2
  132. - rebuild with glew-1.7.0
  133. * Thu Sep 8 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.7.0-1
  134. - split from kdeedu