source: projects/specs/trunk/k/kalgebra/kalgebra-vl.spec @ 4743

Revision 4743, 3.1 KB checked in by inagaki, 13 years ago (diff)

NEW: KDE Educational packages
update: kdeplasma-addons

Line 
1Name: kalgebra
2Summary: Algebraic graphing calculator for KDE
3Version: 4.7.0
4Release: 1%{?_dist_release}
5
6License: GPLv2+
7Group: Applications/Edutainment
8URL: http://edu.kde.org/kalgebra/
9
10Source: ftp://ftp.kde.org/pub/kde/stable/%{version}/src/%{name}-%{version}.tar.bz2
11
12## upstream patches
13
14BuildRoot: %{_tmppath}/%{name}-%{version}-root
15BuildRequires: desktop-file-utils
16BuildRequires: kdelibs4-devel >= %{version}
17BuildRequires: libkdeedu-devel
18BuildRequires: mesa-libGL-devel
19BuildRequires: readline-devel
20BuildRequires: soprano-devel
21
22Requires: kdebase-runtime%{?_kde4_version: >= %{_kde4_version}}
23
24Conflicts: kdeedu4 < 4.6.50
25
26%description
27KAlgebra is a algebraic graphing calculator with support for 3D
28graphing and MathML markup language.
29
30This package is part of the KDE education module.
31
32%package libs
33Summary: Runtime libraries for %{name}
34Summary(ja): %{name} のランタイムライブラリ
35Group:   System Environment/Libraries
36Conflicts: kdeedu4-libs < 4.6.50
37
38%description libs
39%{summary}.
40
41%package devel
42Summary: Development files for %{name}
43Summary(ja): %{name} の開発用ファイル
44Group: Development/Libraries
45Requires: %{name}-libs = %{version}-%{release}
46Conflicts: kdeedu4-devel < 4.6.50
47
48%description devel
49Header files for developing applications using %{name}.
50
51
52%prep
53%setup -q
54
55%build
56mkdir -p %{_target_platform}
57pushd %{_target_platform}
58unset 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    ..
67popd
68
69make %{?_smp_mflags} -C %{_target_platform}
70
71%install
72rm -rf $RPM_BUILD_ROOT
73make install/fast DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform}
74
75%clean
76rm -rf $RPM_BUILD_ROOT
77
78%check
79for f in $RPM_BUILD_ROOT%{_datadir}/applications/kde4/*.desktop ; do
80    desktop-file-validate $f
81done
82
83
84%post
85touch --no-create %{_datadir}/icons/hicolor &> /dev/null ||:
86
87%posttrans
88update-desktop-database -q &> /dev/null ||:
89gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null ||:
90
91%postun
92if [ $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 ||:
96fi
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
Note: See TracBrowser for help on using the repository browser.