[4743] | 1 | Name: rocs |
---|
| 2 | Summary: Graph theory IDE |
---|
| 3 | Summary(ja): グラフ理論向け IDE |
---|
[6899] | 4 | Version: 4.9.2 |
---|
[4743] | 5 | Release: 1%{?_dist_release} |
---|
| 6 | |
---|
| 7 | License: GPLv2+ |
---|
| 8 | Group: Applications/Edutainment |
---|
| 9 | URL: http://edu.kde.org/rocs/ |
---|
| 10 | |
---|
[6725] | 11 | Source: ftp://ftp.kde.org/pub/kde/stable/%{version}/src/%{name}-%{version}.tar.xz |
---|
[4743] | 12 | |
---|
| 13 | ## upstream patches |
---|
| 14 | |
---|
| 15 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 16 | BuildRequires: desktop-file-utils |
---|
| 17 | BuildRequires: kdelibs4-devel >= %{version} |
---|
| 18 | BuildRequires: libboost-devel |
---|
[6725] | 19 | BuildRequires: libboost-graph |
---|
[4743] | 20 | BuildRequires: soprano-devel |
---|
| 21 | |
---|
| 22 | Requires: kdebase-runtime%{?_kde4_version: >= %{_kde4_version}} |
---|
| 23 | Requires: kwrite |
---|
| 24 | |
---|
| 25 | Conflicts: kdeedu4 < 4.6.50 |
---|
| 26 | |
---|
| 27 | %description |
---|
| 28 | Rocs aims to be a Graph Theory IDE for helping professors to show |
---|
| 29 | the results of a graph algorithm and also helping students to do |
---|
| 30 | the algorithms. |
---|
| 31 | |
---|
| 32 | Rocs has a scripting module, done in Qt Script, that interacts with |
---|
| 33 | the drawn graph and every change in the graph with the script is |
---|
| 34 | reflected on the drawn one. |
---|
| 35 | |
---|
| 36 | This package is part of the KDE education module. |
---|
| 37 | |
---|
| 38 | %package libs |
---|
| 39 | Summary: Runtime libraries for %{name} |
---|
| 40 | Summary(ja): %{name} のランタイムライブラリ |
---|
| 41 | Group: System Environment/Libraries |
---|
| 42 | Conflicts: kdeedu4-math-libs < 4.6.50 |
---|
| 43 | |
---|
| 44 | %description libs |
---|
| 45 | %{summary}. |
---|
| 46 | |
---|
| 47 | %package devel |
---|
| 48 | Summary: Development files for %{name} |
---|
| 49 | Summary(ja): %{name} の開発用ファイル |
---|
| 50 | Group: Development/Libraries |
---|
| 51 | Requires: %{name}-libs = %{version}-%{release} |
---|
| 52 | Conflicts: kdeedu4-devel < 4.6.50 |
---|
| 53 | |
---|
| 54 | %description devel |
---|
| 55 | Header files for developing applications using %{name}. |
---|
| 56 | |
---|
| 57 | %prep |
---|
| 58 | %setup -q |
---|
| 59 | |
---|
| 60 | %build |
---|
| 61 | mkdir -p %{_target_platform} |
---|
| 62 | pushd %{_target_platform} |
---|
| 63 | %cmake \ |
---|
| 64 | -DCMAKE_BUILD_TYPE=release \ |
---|
| 65 | -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \ |
---|
| 66 | -DDATA_INSTALL_DIR:PATH=%{_datadir}/kde4/apps \ |
---|
| 67 | -DINCLUDE_INSTALL_DIR:PATH=%{_includedir}/kde4 \ |
---|
| 68 | -DLIBEXEC_INSTALL_DIR:PATH=%{_libexecdir}/kde4 \ |
---|
| 69 | -DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \ |
---|
| 70 | .. |
---|
| 71 | popd |
---|
| 72 | |
---|
| 73 | make %{?_smp_mflags} -C %{_target_platform} |
---|
| 74 | |
---|
| 75 | %install |
---|
| 76 | rm -rf $RPM_BUILD_ROOT |
---|
| 77 | make install/fast DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform} |
---|
| 78 | |
---|
| 79 | %clean |
---|
| 80 | rm -rf $RPM_BUILD_ROOT |
---|
| 81 | |
---|
| 82 | %check |
---|
| 83 | for f in $RPM_BUILD_ROOT%{_datadir}/applications/kde4/*.desktop ; do |
---|
| 84 | desktop-file-validate $f |
---|
| 85 | done |
---|
| 86 | |
---|
| 87 | |
---|
| 88 | %posttrans |
---|
| 89 | update-desktop-database -q &> /dev/null ||: |
---|
| 90 | |
---|
| 91 | %postun |
---|
| 92 | if [ $1 -eq 0 ] ; then |
---|
| 93 | update-desktop-database -q &> /dev/null ||: |
---|
| 94 | fi |
---|
| 95 | |
---|
| 96 | %post libs -p /sbin/ldconfig |
---|
| 97 | |
---|
| 98 | %postun libs -p /sbin/ldconfig |
---|
| 99 | |
---|
| 100 | |
---|
| 101 | %files |
---|
| 102 | %defattr(-,root,root) |
---|
| 103 | %doc COPYING COPYING.DOC |
---|
| 104 | %{_bindir}/rocs |
---|
| 105 | %{_libdir}/kde4/rocs_*.so |
---|
| 106 | %{_datadir}/applications/kde4/rocs.desktop |
---|
| 107 | %{_datadir}/config/rocs.knsrc |
---|
| 108 | %{_datadir}/config.kcfg/rocs.kcfg |
---|
| 109 | %{_datadir}/kde4/apps/rocs |
---|
[6725] | 110 | %{_datadir}/kde4/apps/rocs_rootedtree |
---|
[4743] | 111 | %{_datadir}/kde4/services/rocs_*.desktop |
---|
| 112 | %{_datadir}/kde4/servicetypes/Rocs*.desktop |
---|
| 113 | %doc %{_docdir}/HTML/en/rocs/ |
---|
| 114 | |
---|
| 115 | %files libs |
---|
| 116 | %defattr(-,root,root) |
---|
| 117 | %{_libdir}/librocslib.so.* |
---|
| 118 | |
---|
| 119 | %files devel |
---|
| 120 | %defattr(-,root,root) |
---|
| 121 | %{_includedir}/kde4/rocs |
---|
| 122 | %{_libdir}/librocslib.so |
---|
| 123 | |
---|
| 124 | |
---|
| 125 | %changelog |
---|
[6899] | 126 | * Sun Oct 07 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.2-1 |
---|
| 127 | - new upstream release |
---|
| 128 | |
---|
[6797] | 129 | * Thu Sep 06 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.1-1 |
---|
| 130 | - new upstream release |
---|
| 131 | |
---|
[6725] | 132 | * Mon Aug 13 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.0-1 |
---|
| 133 | - new upstream release |
---|
| 134 | - add BuildRequires: libboost-graph |
---|
| 135 | |
---|
[4743] | 136 | * Sat Sep 3 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.7.0-1 |
---|
| 137 | - split from kdeedu |
---|
| 138 | |
---|