rocs-vl.spec 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. Name: rocs
  2. Summary: Graph theory IDE
  3. Summary(ja): グラフ理論向け IDE
  4. Version: 4.7.0
  5. Release: 1%{?_dist_release}
  6. License: GPLv2+
  7. Group: Applications/Edutainment
  8. URL: http://edu.kde.org/rocs/
  9. Source: ftp://ftp.kde.org/pub/kde/stable/%{version}/src/%{name}-%{version}.tar.bz2
  10. ## upstream patches
  11. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  12. BuildRequires: desktop-file-utils
  13. BuildRequires: kdelibs4-devel >= %{version}
  14. BuildRequires: libboost-devel
  15. BuildRequires: soprano-devel
  16. Requires: kdebase-runtime%{?_kde4_version: >= %{_kde4_version}}
  17. Requires: kwrite
  18. Conflicts: kdeedu4 < 4.6.50
  19. %description
  20. Rocs aims to be a Graph Theory IDE for helping professors to show
  21. the results of a graph algorithm and also helping students to do
  22. the algorithms.
  23. Rocs has a scripting module, done in Qt Script, that interacts with
  24. the drawn graph and every change in the graph with the script is
  25. reflected on the drawn one.
  26. This package is part of the KDE education module.
  27. %package libs
  28. Summary: Runtime libraries for %{name}
  29. Summary(ja): %{name} のランタイムライブラリ
  30. Group: System Environment/Libraries
  31. Conflicts: kdeedu4-math-libs < 4.6.50
  32. %description libs
  33. %{summary}.
  34. %package devel
  35. Summary: Development files for %{name}
  36. Summary(ja): %{name} の開発用ファイル
  37. Group: Development/Libraries
  38. Requires: %{name}-libs = %{version}-%{release}
  39. Conflicts: kdeedu4-devel < 4.6.50
  40. %description devel
  41. Header files for developing applications using %{name}.
  42. %prep
  43. %setup -q
  44. %build
  45. mkdir -p %{_target_platform}
  46. pushd %{_target_platform}
  47. unset QTDIR || : ; . /etc/profile.d/qt4.sh
  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. %posttrans
  68. update-desktop-database -q &> /dev/null ||:
  69. %postun
  70. if [ $1 -eq 0 ] ; then
  71. update-desktop-database -q &> /dev/null ||:
  72. fi
  73. %post libs -p /sbin/ldconfig
  74. %postun libs -p /sbin/ldconfig
  75. %files
  76. %defattr(-,root,root)
  77. %doc COPYING COPYING.DOC
  78. %{_bindir}/rocs
  79. %{_libdir}/kde4/rocs_*.so
  80. %{_datadir}/applications/kde4/rocs.desktop
  81. %{_datadir}/config/rocs.knsrc
  82. %{_datadir}/config.kcfg/rocs.kcfg
  83. %{_datadir}/kde4/apps/rocs
  84. %{_datadir}/kde4/services/rocs_*.desktop
  85. %{_datadir}/kde4/servicetypes/Rocs*.desktop
  86. %doc %{_docdir}/HTML/en/rocs/
  87. %files libs
  88. %defattr(-,root,root)
  89. %{_libdir}/librocslib.so.*
  90. %files devel
  91. %defattr(-,root,root)
  92. %{_includedir}/kde4/rocs
  93. %{_libdir}/librocslib.so
  94. %changelog
  95. * Sat Sep 3 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.7.0-1
  96. - split from kdeedu