rocs-vl.spec 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. Name: rocs
  2. Summary: Graph theory IDE
  3. Summary(ja): グラフ理論向け IDE
  4. Version: 4.9.5
  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. Requires: kdebase-runtime%{?_kde4_version: >= %{_kde4_version}}
  18. Requires: kwrite
  19. Conflicts: kdeedu4 < 4.6.50
  20. %description
  21. Rocs aims to be a Graph Theory IDE for helping professors to show
  22. the results of a graph algorithm and also helping students to do
  23. the algorithms.
  24. Rocs has a scripting module, done in Qt Script, that interacts with
  25. the drawn graph and every change in the graph with the script is
  26. reflected on the drawn one.
  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-math-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. %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/apps/rocs_rootedtree
  85. %{_datadir}/kde4/services/rocs_*.desktop
  86. %{_datadir}/kde4/servicetypes/Rocs*.desktop
  87. %doc %{_docdir}/HTML/en/rocs/
  88. %files libs
  89. %defattr(-,root,root)
  90. %{_libdir}/librocslib.so.*
  91. %files devel
  92. %defattr(-,root,root)
  93. %{_includedir}/kde4/rocs
  94. %{_libdir}/librocslib.so
  95. %changelog
  96. * Fri Jan 04 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.5-1
  97. - new upstream release
  98. * Sat Nov 10 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.3-1
  99. - new upstream release
  100. * Sun Oct 07 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.2-1
  101. - new upstream release
  102. * Thu Sep 06 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.1-1
  103. - new upstream release
  104. * Mon Aug 13 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.0-1
  105. - new upstream release
  106. - add BuildRequires: libboost-graph
  107. * Sat Sep 3 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.7.0-1
  108. - split from kdeedu