kalzium-vl.spec 4.6 KB

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