1 | Name: rocs |
---|
2 | Summary: Graph theory IDE |
---|
3 | Summary(ja): グラフ理論向け IDE |
---|
4 | Version: 4.7.0 |
---|
5 | Release: 1%{?_dist_release} |
---|
6 | |
---|
7 | License: GPLv2+ |
---|
8 | Group: Applications/Edutainment |
---|
9 | URL: http://edu.kde.org/rocs/ |
---|
10 | |
---|
11 | Source: ftp://ftp.kde.org/pub/kde/stable/%{version}/src/%{name}-%{version}.tar.bz2 |
---|
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 |
---|
19 | BuildRequires: soprano-devel |
---|
20 | |
---|
21 | Requires: kdebase-runtime%{?_kde4_version: >= %{_kde4_version}} |
---|
22 | Requires: kwrite |
---|
23 | |
---|
24 | Conflicts: kdeedu4 < 4.6.50 |
---|
25 | |
---|
26 | %description |
---|
27 | Rocs aims to be a Graph Theory IDE for helping professors to show |
---|
28 | the results of a graph algorithm and also helping students to do |
---|
29 | the algorithms. |
---|
30 | |
---|
31 | Rocs has a scripting module, done in Qt Script, that interacts with |
---|
32 | the drawn graph and every change in the graph with the script is |
---|
33 | reflected on the drawn one. |
---|
34 | |
---|
35 | This package is part of the KDE education module. |
---|
36 | |
---|
37 | %package libs |
---|
38 | Summary: Runtime libraries for %{name} |
---|
39 | Summary(ja): %{name} のランタイムライブラリ |
---|
40 | Group: System Environment/Libraries |
---|
41 | Conflicts: kdeedu4-math-libs < 4.6.50 |
---|
42 | |
---|
43 | %description libs |
---|
44 | %{summary}. |
---|
45 | |
---|
46 | %package devel |
---|
47 | Summary: Development files for %{name} |
---|
48 | Summary(ja): %{name} の開発用ファイル |
---|
49 | Group: Development/Libraries |
---|
50 | Requires: %{name}-libs = %{version}-%{release} |
---|
51 | Conflicts: kdeedu4-devel < 4.6.50 |
---|
52 | |
---|
53 | %description devel |
---|
54 | Header files for developing applications using %{name}. |
---|
55 | |
---|
56 | %prep |
---|
57 | %setup -q |
---|
58 | |
---|
59 | %build |
---|
60 | mkdir -p %{_target_platform} |
---|
61 | pushd %{_target_platform} |
---|
62 | unset QTDIR || : ; . /etc/profile.d/qt4.sh |
---|
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 |
---|
110 | %{_datadir}/kde4/services/rocs_*.desktop |
---|
111 | %{_datadir}/kde4/servicetypes/Rocs*.desktop |
---|
112 | %doc %{_docdir}/HTML/en/rocs/ |
---|
113 | |
---|
114 | %files libs |
---|
115 | %defattr(-,root,root) |
---|
116 | %{_libdir}/librocslib.so.* |
---|
117 | |
---|
118 | %files devel |
---|
119 | %defattr(-,root,root) |
---|
120 | %{_includedir}/kde4/rocs |
---|
121 | %{_libdir}/librocslib.so |
---|
122 | |
---|
123 | |
---|
124 | %changelog |
---|
125 | * Sat Sep 3 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.7.0-1 |
---|
126 | - split from kdeedu |
---|
127 | |
---|