[4743] | 1 | Name: rocs |
---|
| 2 | Summary: Graph theory IDE |
---|
| 3 | Summary(ja): グラフ理論向け IDE |
---|
[9222] | 4 | Version: 4.14.3 |
---|
[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 |
---|
[9222] | 17 | BuildRequires: kdelibs-devel >= %{version} |
---|
[4743] | 18 | BuildRequires: libboost-devel |
---|
[6725] | 19 | BuildRequires: libboost-graph |
---|
[4743] | 20 | BuildRequires: soprano-devel |
---|
[7801] | 21 | BuildRequires: grantlee-devel |
---|
[4743] | 22 | |
---|
| 23 | Requires: kdebase-runtime%{?_kde4_version: >= %{_kde4_version}} |
---|
| 24 | Requires: kwrite |
---|
| 25 | |
---|
| 26 | Conflicts: kdeedu4 < 4.6.50 |
---|
| 27 | |
---|
[8252] | 28 | Vendor: Project Vine |
---|
| 29 | Distribution: Vine Linux |
---|
| 30 | |
---|
[4743] | 31 | %description |
---|
| 32 | Rocs aims to be a Graph Theory IDE for helping professors to show |
---|
| 33 | the results of a graph algorithm and also helping students to do |
---|
| 34 | the algorithms. |
---|
| 35 | |
---|
| 36 | Rocs has a scripting module, done in Qt Script, that interacts with |
---|
| 37 | the drawn graph and every change in the graph with the script is |
---|
| 38 | reflected on the drawn one. |
---|
| 39 | |
---|
| 40 | This package is part of the KDE education module. |
---|
| 41 | |
---|
| 42 | %package libs |
---|
| 43 | Summary: Runtime libraries for %{name} |
---|
| 44 | Summary(ja): %{name} のランタイムライブラリ |
---|
| 45 | Group: System Environment/Libraries |
---|
| 46 | Conflicts: kdeedu4-math-libs < 4.6.50 |
---|
| 47 | |
---|
| 48 | %description libs |
---|
| 49 | %{summary}. |
---|
| 50 | |
---|
| 51 | %package devel |
---|
| 52 | Summary: Development files for %{name} |
---|
| 53 | Summary(ja): %{name} の開発用ファイル |
---|
| 54 | Group: Development/Libraries |
---|
| 55 | Requires: %{name}-libs = %{version}-%{release} |
---|
| 56 | Conflicts: kdeedu4-devel < 4.6.50 |
---|
| 57 | |
---|
| 58 | %description devel |
---|
| 59 | Header files for developing applications using %{name}. |
---|
| 60 | |
---|
| 61 | %prep |
---|
| 62 | %setup -q |
---|
| 63 | |
---|
| 64 | %build |
---|
[7801] | 65 | # uniform_int_distribution error |
---|
| 66 | sed -i "s|add_subdirectory(GenerateGraph)|#add_subdirectory(GenerateGraph)|" VisualEditor/Tools/CMakeLists.txt |
---|
| 67 | |
---|
[4743] | 68 | mkdir -p %{_target_platform} |
---|
| 69 | pushd %{_target_platform} |
---|
| 70 | %cmake \ |
---|
| 71 | -DCMAKE_BUILD_TYPE=release \ |
---|
| 72 | -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \ |
---|
| 73 | -DDATA_INSTALL_DIR:PATH=%{_datadir}/kde4/apps \ |
---|
| 74 | -DINCLUDE_INSTALL_DIR:PATH=%{_includedir}/kde4 \ |
---|
| 75 | -DLIBEXEC_INSTALL_DIR:PATH=%{_libexecdir}/kde4 \ |
---|
| 76 | -DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \ |
---|
| 77 | .. |
---|
| 78 | popd |
---|
| 79 | |
---|
| 80 | make %{?_smp_mflags} -C %{_target_platform} |
---|
| 81 | |
---|
| 82 | %install |
---|
| 83 | rm -rf $RPM_BUILD_ROOT |
---|
| 84 | make install/fast DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform} |
---|
| 85 | |
---|
| 86 | %clean |
---|
| 87 | rm -rf $RPM_BUILD_ROOT |
---|
| 88 | |
---|
| 89 | %check |
---|
| 90 | for f in $RPM_BUILD_ROOT%{_datadir}/applications/kde4/*.desktop ; do |
---|
| 91 | desktop-file-validate $f |
---|
| 92 | done |
---|
| 93 | |
---|
| 94 | |
---|
| 95 | %posttrans |
---|
| 96 | update-desktop-database -q &> /dev/null ||: |
---|
| 97 | |
---|
| 98 | %postun |
---|
| 99 | if [ $1 -eq 0 ] ; then |
---|
| 100 | update-desktop-database -q &> /dev/null ||: |
---|
| 101 | fi |
---|
| 102 | |
---|
| 103 | %post libs -p /sbin/ldconfig |
---|
| 104 | |
---|
| 105 | %postun libs -p /sbin/ldconfig |
---|
| 106 | |
---|
| 107 | |
---|
| 108 | %files |
---|
| 109 | %defattr(-,root,root) |
---|
| 110 | %doc COPYING COPYING.DOC |
---|
| 111 | %{_bindir}/rocs |
---|
| 112 | %{_libdir}/kde4/rocs_*.so |
---|
[9222] | 113 | %{_datadir}/appdata/rocs.appdata.xml |
---|
[4743] | 114 | %{_datadir}/applications/kde4/rocs.desktop |
---|
| 115 | %{_datadir}/config/rocs.knsrc |
---|
| 116 | %{_datadir}/config.kcfg/rocs.kcfg |
---|
[7801] | 117 | %{_datadir}/icons/hicolor/*/*/* |
---|
[4743] | 118 | %{_datadir}/kde4/apps/rocs |
---|
[6725] | 119 | %{_datadir}/kde4/apps/rocs_rootedtree |
---|
[4743] | 120 | %{_datadir}/kde4/services/rocs_*.desktop |
---|
| 121 | %{_datadir}/kde4/servicetypes/Rocs*.desktop |
---|
| 122 | %doc %{_docdir}/HTML/en/rocs/ |
---|
| 123 | |
---|
| 124 | %files libs |
---|
| 125 | %defattr(-,root,root) |
---|
[7728] | 126 | %{_libdir}/librocscore.so.* |
---|
| 127 | %{_libdir}/librocsvisualeditor.so.* |
---|
[4743] | 128 | |
---|
| 129 | %files devel |
---|
| 130 | %defattr(-,root,root) |
---|
| 131 | %{_includedir}/kde4/rocs |
---|
[7728] | 132 | %{_libdir}/librocscore.so |
---|
| 133 | %{_libdir}/librocsvisualeditor.so |
---|
[4743] | 134 | |
---|
| 135 | |
---|
| 136 | %changelog |
---|
[9222] | 137 | * Thu Jan 01 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.14.3-1 |
---|
| 138 | - new upstream release |
---|
| 139 | |
---|
[8430] | 140 | * Wed May 07 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.12.5-1 |
---|
| 141 | - new upstream release |
---|
| 142 | |
---|
[8252] | 143 | * Sun Feb 09 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.12.2-1 |
---|
| 144 | - new upstream release |
---|
| 145 | |
---|
[8056] | 146 | * Wed Dec 18 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.11.4-1 |
---|
| 147 | - new upstream release |
---|
| 148 | |
---|
[7801] | 149 | * Mon Sep 16 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.11.1-1 |
---|
| 150 | - new upstream release |
---|
| 151 | - add BuildRequires: grantlee-devel |
---|
| 152 | |
---|
[7728] | 153 | * Sat Jul 06 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.10.5-1 |
---|
| 154 | - new upstream release |
---|
| 155 | |
---|
[7294] | 156 | * Fri Jan 04 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.5-1 |
---|
| 157 | - new upstream release |
---|
| 158 | |
---|
[7105] | 159 | * Sat Nov 10 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.3-1 |
---|
| 160 | - new upstream release |
---|
| 161 | |
---|
[6899] | 162 | * Sun Oct 07 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.2-1 |
---|
| 163 | - new upstream release |
---|
| 164 | |
---|
[6797] | 165 | * Thu Sep 06 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.1-1 |
---|
| 166 | - new upstream release |
---|
| 167 | |
---|
[6725] | 168 | * Mon Aug 13 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.0-1 |
---|
| 169 | - new upstream release |
---|
| 170 | - add BuildRequires: libboost-graph |
---|
| 171 | |
---|
[4743] | 172 | * Sat Sep 3 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.7.0-1 |
---|
| 173 | - split from kdeedu |
---|
| 174 | |
---|