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

Revision 7728, 3.5 KB checked in by Takemikaduchi, 11 years ago (diff)

KDE-4.10.5

Line 
1Name: kalgebra
2Summary: Algebraic graphing calculator for KDE
3Version: 4.10.5
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.xz
11
12## upstream patches
13
14BuildRoot: %{_tmppath}/%{name}-%{version}-root
15BuildRequires: desktop-file-utils
16BuildRequires: kdelibs4-devel >= %{version}
17BuildRequires: libkdeedu-devel
18BuildRequires: analitza-devel
19BuildRequires: mesa-libGL-devel
20BuildRequires: readline-devel
21BuildRequires: soprano-devel
22
23Requires: kdebase-runtime%{?_kde4_version: >= %{_kde4_version}}
24
25Conflicts: kdeedu4 < 4.6.50
26
27Obsoletes: %{name}-libs < 4.9.0
28Provides: %{name}-libs = %{version}-%{release}
29
30Obsoletes: %{name}-devel < 4.9.0
31
32%description
33KAlgebra is a algebraic graphing calculator with support for 3D
34graphing and MathML markup language.
35
36This package is part of the KDE education module.
37
38
39%prep
40%setup -q
41
42%build
43mkdir -p %{_target_platform}
44pushd %{_target_platform}
45%cmake \
46    -DCMAKE_BUILD_TYPE=release \
47    -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
48    -DDATA_INSTALL_DIR:PATH=%{_datadir}/kde4/apps \
49    -DINCLUDE_INSTALL_DIR:PATH=%{_includedir}/kde4 \
50    -DLIBEXEC_INSTALL_DIR:PATH=%{_libexecdir}/kde4 \
51    -DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \
52    ..
53popd
54
55make %{?_smp_mflags} -C %{_target_platform}
56
57%install
58rm -rf $RPM_BUILD_ROOT
59make install/fast DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform}
60
61%clean
62rm -rf $RPM_BUILD_ROOT
63
64%check
65for f in $RPM_BUILD_ROOT%{_datadir}/applications/kde4/*.desktop ; do
66    desktop-file-validate $f
67done
68
69
70%post
71touch --no-create %{_datadir}/icons/hicolor &> /dev/null ||:
72
73%posttrans
74update-desktop-database -q &> /dev/null ||:
75gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null ||:
76
77%postun
78if [ $1 -eq 0 ] ; then
79    update-desktop-database -q &> /dev/null ||:
80    touch --no-create %{_datadir}/icons/hicolor &> /dev/null ||:
81    gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null ||:
82fi
83
84
85%files
86%defattr(-,root,root)
87%doc COPYING COPYING.DOC
88%{_bindir}/kalgebra
89%{_bindir}/kalgebramobile
90%{_libdir}/kde4/*.so
91%{_libdir}/kde4/imports/org/kde/analitza/Graph2D.qml
92%{_libdir}/kde4/imports/org/kde/analitza/libanalitzadeclarativeplugin.so
93%{_libdir}/kde4/imports/org/kde/analitza/qmldir
94%{_datadir}/applications/kde4/kalgebra*.desktop
95%{_datadir}/icons/hicolor/*/*/*
96%{_datadir}/kde4/apps/kalgebramobile
97%{_datadir}/kde4/apps/plasma/plasmoids/org.kde.graphsplasmoid/contents/ui/config.ui
98%{_datadir}/kde4/apps/plasma/plasmoids/org.kde.graphsplasmoid/contents/ui/main.qml
99%{_datadir}/kde4/apps/plasma/plasmoids/org.kde.graphsplasmoid/metadata.desktop
100%{_datadir}/kde4/apps/katepart
101%{_datadir}/kde4/services/graphsplasmoid.desktop
102%{_datadir}/kde4/services/kalgebraplasmoid.desktop
103%doc %{_docdir}/HTML/en/kalgebra/
104
105
106%changelog
107* Sat Jul 06 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.10.5-1
108- new upstream release
109
110* Fri Jan 04 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.5-1
111- new upstream release
112
113* Sat Nov 10 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.3-1
114- new upstream release
115
116* Sun Oct 07 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.2-1
117- new upstream release
118
119* Thu Sep 06 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.1-1
120- new upstream release
121
122* Mon Aug 13 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.0-1
123- new upstream release
124- add BuildRequires: analitza-devel
125- remove -devel and -libs subpackages
126
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.