rocs-vl.spec 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  1. Name: rocs
  2. Summary: Graph theory IDE
  3. Summary(ja): グラフ理論向け IDE
  4. Version: 4.11.4
  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.xz
  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: libboost-graph
  16. BuildRequires: soprano-devel
  17. BuildRequires: grantlee-devel
  18. Requires: kdebase-runtime%{?_kde4_version: >= %{_kde4_version}}
  19. Requires: kwrite
  20. Conflicts: kdeedu4 < 4.6.50
  21. %description
  22. Rocs aims to be a Graph Theory IDE for helping professors to show
  23. the results of a graph algorithm and also helping students to do
  24. the algorithms.
  25. Rocs has a scripting module, done in Qt Script, that interacts with
  26. the drawn graph and every change in the graph with the script is
  27. reflected on the drawn one.
  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-math-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. %build
  47. # uniform_int_distribution error
  48. sed -i "s|add_subdirectory(GenerateGraph)|#add_subdirectory(GenerateGraph)|" VisualEditor/Tools/CMakeLists.txt
  49. mkdir -p %{_target_platform}
  50. pushd %{_target_platform}
  51. %cmake \
  52. -DCMAKE_BUILD_TYPE=release \
  53. -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
  54. -DDATA_INSTALL_DIR:PATH=%{_datadir}/kde4/apps \
  55. -DINCLUDE_INSTALL_DIR:PATH=%{_includedir}/kde4 \
  56. -DLIBEXEC_INSTALL_DIR:PATH=%{_libexecdir}/kde4 \
  57. -DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \
  58. ..
  59. popd
  60. make %{?_smp_mflags} -C %{_target_platform}
  61. %install
  62. rm -rf $RPM_BUILD_ROOT
  63. make install/fast DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform}
  64. %clean
  65. rm -rf $RPM_BUILD_ROOT
  66. %check
  67. for f in $RPM_BUILD_ROOT%{_datadir}/applications/kde4/*.desktop ; do
  68. desktop-file-validate $f
  69. done
  70. %posttrans
  71. update-desktop-database -q &> /dev/null ||:
  72. %postun
  73. if [ $1 -eq 0 ] ; then
  74. update-desktop-database -q &> /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}/rocs
  82. %{_libdir}/kde4/rocs_*.so
  83. %{_datadir}/applications/kde4/rocs.desktop
  84. %{_datadir}/config/rocs.knsrc
  85. %{_datadir}/config.kcfg/rocs.kcfg
  86. %{_datadir}/icons/hicolor/*/*/*
  87. %{_datadir}/kde4/apps/rocs
  88. %{_datadir}/kde4/apps/rocs_rootedtree
  89. %{_datadir}/kde4/services/rocs_*.desktop
  90. %{_datadir}/kde4/servicetypes/Rocs*.desktop
  91. %doc %{_docdir}/HTML/en/rocs/
  92. %files libs
  93. %defattr(-,root,root)
  94. %{_libdir}/librocscore.so.*
  95. %{_libdir}/librocsvisualeditor.so.*
  96. %files devel
  97. %defattr(-,root,root)
  98. %{_includedir}/kde4/rocs
  99. %{_libdir}/librocscore.so
  100. %{_libdir}/librocsvisualeditor.so
  101. %changelog
  102. * Wed Dec 18 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.11.4-1
  103. - new upstream release
  104. * Mon Sep 16 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.11.1-1
  105. - new upstream release
  106. - add BuildRequires: grantlee-devel
  107. * Sat Jul 06 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.10.5-1
  108. - new upstream release
  109. * Fri Jan 04 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.5-1
  110. - new upstream release
  111. * Sat Nov 10 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.3-1
  112. - new upstream release
  113. * Sun Oct 07 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.2-1
  114. - new upstream release
  115. * Thu Sep 06 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.1-1
  116. - new upstream release
  117. * Mon Aug 13 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.0-1
  118. - new upstream release
  119. - add BuildRequires: libboost-graph
  120. * Sat Sep 3 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.7.0-1
  121. - split from kdeedu