kalzium-vl.spec 4.8 KB

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