1 | Name: kalgebra |
---|
2 | Summary: Algebraic graphing calculator for KDE |
---|
3 | Version: 4.7.0 |
---|
4 | Release: 1%{?_dist_release} |
---|
5 | |
---|
6 | License: GPLv2+ |
---|
7 | Group: Applications/Edutainment |
---|
8 | URL: http://edu.kde.org/kalgebra/ |
---|
9 | |
---|
10 | Source: ftp://ftp.kde.org/pub/kde/stable/%{version}/src/%{name}-%{version}.tar.bz2 |
---|
11 | |
---|
12 | ## upstream patches |
---|
13 | |
---|
14 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
15 | BuildRequires: desktop-file-utils |
---|
16 | BuildRequires: kdelibs4-devel >= %{version} |
---|
17 | BuildRequires: libkdeedu-devel |
---|
18 | BuildRequires: mesa-libGL-devel |
---|
19 | BuildRequires: readline-devel |
---|
20 | BuildRequires: soprano-devel |
---|
21 | |
---|
22 | Requires: kdebase-runtime%{?_kde4_version: >= %{_kde4_version}} |
---|
23 | |
---|
24 | Conflicts: kdeedu4 < 4.6.50 |
---|
25 | |
---|
26 | %description |
---|
27 | KAlgebra is a algebraic graphing calculator with support for 3D |
---|
28 | graphing and MathML markup language. |
---|
29 | |
---|
30 | This package is part of the KDE education module. |
---|
31 | |
---|
32 | %package libs |
---|
33 | Summary: Runtime libraries for %{name} |
---|
34 | Summary(ja): %{name} のランタイムライブラリ |
---|
35 | Group: System Environment/Libraries |
---|
36 | Conflicts: kdeedu4-libs < 4.6.50 |
---|
37 | |
---|
38 | %description libs |
---|
39 | %{summary}. |
---|
40 | |
---|
41 | %package devel |
---|
42 | Summary: Development files for %{name} |
---|
43 | Summary(ja): %{name} の開発用ファイル |
---|
44 | Group: Development/Libraries |
---|
45 | Requires: %{name}-libs = %{version}-%{release} |
---|
46 | Conflicts: kdeedu4-devel < 4.6.50 |
---|
47 | |
---|
48 | %description devel |
---|
49 | Header files for developing applications using %{name}. |
---|
50 | |
---|
51 | |
---|
52 | %prep |
---|
53 | %setup -q |
---|
54 | |
---|
55 | %build |
---|
56 | mkdir -p %{_target_platform} |
---|
57 | pushd %{_target_platform} |
---|
58 | unset QTDIR || : ; . /etc/profile.d/qt4.sh |
---|
59 | %cmake \ |
---|
60 | -DCMAKE_BUILD_TYPE=release \ |
---|
61 | -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \ |
---|
62 | -DDATA_INSTALL_DIR:PATH=%{_datadir}/kde4/apps \ |
---|
63 | -DINCLUDE_INSTALL_DIR:PATH=%{_includedir}/kde4 \ |
---|
64 | -DLIBEXEC_INSTALL_DIR:PATH=%{_libexecdir}/kde4 \ |
---|
65 | -DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \ |
---|
66 | .. |
---|
67 | popd |
---|
68 | |
---|
69 | make %{?_smp_mflags} -C %{_target_platform} |
---|
70 | |
---|
71 | %install |
---|
72 | rm -rf $RPM_BUILD_ROOT |
---|
73 | make install/fast DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform} |
---|
74 | |
---|
75 | %clean |
---|
76 | rm -rf $RPM_BUILD_ROOT |
---|
77 | |
---|
78 | %check |
---|
79 | for f in $RPM_BUILD_ROOT%{_datadir}/applications/kde4/*.desktop ; do |
---|
80 | desktop-file-validate $f |
---|
81 | done |
---|
82 | |
---|
83 | |
---|
84 | %post |
---|
85 | touch --no-create %{_datadir}/icons/hicolor &> /dev/null ||: |
---|
86 | |
---|
87 | %posttrans |
---|
88 | update-desktop-database -q &> /dev/null ||: |
---|
89 | gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null ||: |
---|
90 | |
---|
91 | %postun |
---|
92 | if [ $1 -eq 0 ] ; then |
---|
93 | update-desktop-database -q &> /dev/null ||: |
---|
94 | touch --no-create %{_datadir}/icons/hicolor &> /dev/null ||: |
---|
95 | gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null ||: |
---|
96 | fi |
---|
97 | |
---|
98 | %post libs -p /sbin/ldconfig |
---|
99 | |
---|
100 | %postun libs -p /sbin/ldconfig |
---|
101 | |
---|
102 | |
---|
103 | %files |
---|
104 | %defattr(-,root,root) |
---|
105 | %doc COPYING COPYING.DOC |
---|
106 | %{_bindir}/calgebra |
---|
107 | %{_bindir}/kalgebra |
---|
108 | %{_bindir}/kalgebramobile |
---|
109 | %{_libdir}/kde4/*.so |
---|
110 | %{_datadir}/applications/kde4/kalgebra*.desktop |
---|
111 | %{_datadir}/icons/hicolor/*/*/* |
---|
112 | %{_datadir}/kde4/apps/kalgebra |
---|
113 | %{_datadir}/kde4/apps/katepart/* |
---|
114 | %{_datadir}/kde4/services/kalgebraplasmoid.desktop |
---|
115 | %{_datadir}/kde4/servicetypes/kalgebrascript.desktop |
---|
116 | %doc %{_docdir}/HTML/en/kalgebra/ |
---|
117 | |
---|
118 | %files libs |
---|
119 | %defattr(-,root,root) |
---|
120 | %{_libdir}/libanalitza*.so.* |
---|
121 | |
---|
122 | %files devel |
---|
123 | %defattr(-,root,root) |
---|
124 | %{_libdir}/libanalitza*.so |
---|
125 | |
---|
126 | %changelog |
---|
127 | * Thu Sep 8 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.7.0-1 |
---|
128 | - split from kdeedu |
---|
129 | |
---|