]>
Commit | Line | Data |
---|---|---|
afb67ee6 WF |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with tests # build with tests | |
89b55625 | 4 | %define kdeappsver 22.12.3 |
a2f750f0 WF |
5 | %define kframever 5.94.0 |
6 | %define qtver 5.15.2 | |
a1a1be11 WF |
7 | %define kaname analitza |
8 | Summary: Analitza | |
9 | Name: ka5-%{kaname} | |
89b55625 | 10 | Version: 22.12.3 |
50af347b | 11 | Release: 1 |
a1a1be11 WF |
12 | License: GPL v2+/LGPL v2.1+ |
13 | Group: X11/Libraries | |
c7a32ff6 | 14 | Source0: https://download.kde.org/stable/release-service/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz |
89b55625 | 15 | # Source0-md5: 06f5ecb817e3863bbbc954216a5fce4a |
a1a1be11 WF |
16 | URL: http://www.kde.org/ |
17 | BuildRequires: Qt5Core-devel >= %{qtver} | |
713e128b WF |
18 | BuildRequires: Qt5Gui-devel >= 5.11.1 |
19 | BuildRequires: Qt5Network-devel >= 5.11.1 | |
20 | BuildRequires: Qt5PrintSupport-devel | |
21 | BuildRequires: Qt5Qml-devel | |
22 | BuildRequires: Qt5Quick-devel | |
23 | BuildRequires: Qt5Svg-devel | |
24 | BuildRequires: Qt5Test-devel | |
25 | BuildRequires: Qt5Widgets-devel | |
26 | BuildRequires: Qt5Xml-devel | |
a1a1be11 | 27 | BuildRequires: cmake >= 2.8.12 |
4fc694e2 | 28 | BuildRequires: kf5-extra-cmake-modules >= %{kframever} |
52cca0aa | 29 | BuildRequires: ninja |
a1a1be11 WF |
30 | BuildRequires: qt5-build >= %{qtver} |
31 | BuildRequires: rpmbuild(macros) >= 1.164 | |
32 | BuildRequires: shared-mime-info | |
33 | BuildRequires: tar >= 1:1.22 | |
34 | BuildRequires: xz | |
35 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
36 | ||
37 | %description | |
713e128b WF |
38 | The analitza library will let you add mathematical features to your |
39 | program. | |
a1a1be11 | 40 | |
06f0c740 WF |
41 | %description -l pl.UTF-8 |
42 | Biblioteka analitza pozwoli Ci dodać matematyczne właściwości do | |
43 | Twoich programów. | |
44 | ||
a1a1be11 WF |
45 | %package devel |
46 | Summary: Header files for %{kaname} development | |
713e128b | 47 | Summary(pl.UTF-8): Pliki nagłówkowe dla programistów używających %{kaname} |
a1a1be11 WF |
48 | Group: X11/Development/Libraries |
49 | Requires: %{name} = %{version}-%{release} | |
50 | ||
51 | %description devel | |
52 | Header files for %{kaname} development. | |
53 | ||
54 | %description devel -l pl.UTF-8 | |
55 | Pliki nagłówkowe dla programistów używających %{kaname}. | |
56 | ||
57 | %prep | |
58 | %setup -q -n %{kaname}-%{version} | |
59 | ||
60 | %build | |
61 | install -d build | |
62 | cd build | |
63 | %cmake \ | |
52cca0aa | 64 | -G Ninja \ |
afb67ee6 | 65 | %{!?with_tests:-DBUILD_TESTING=OFF} \ |
4fc694e2 | 66 | -DHTML_INSTALL_DIR=%{_kdedocdir} \ |
a1a1be11 WF |
67 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ |
68 | .. | |
52cca0aa | 69 | %ninja_build |
a1a1be11 | 70 | |
afb67ee6 WF |
71 | %if %{with tests} |
72 | ctest | |
73 | %endif | |
74 | ||
75 | ||
a1a1be11 WF |
76 | %install |
77 | rm -rf $RPM_BUILD_ROOT | |
52cca0aa | 78 | %ninja_install -C build install |
a1a1be11 WF |
79 | |
80 | %find_lang %{kaname} --all-name --with-qm | |
81 | ||
82 | %clean | |
83 | rm -rf $RPM_BUILD_ROOT | |
84 | ||
85 | %post -p /sbin/ldconfig | |
86 | %postun -p /sbin/ldconfig | |
87 | ||
88 | %files -f %{kaname}.lang | |
89 | %defattr(644,root,root,755) | |
83a5909f | 90 | %ghost %{_libdir}/libAnalitza.so.8 |
a1a1be11 | 91 | %attr(755,root,root) %{_libdir}/libAnalitza.so.*.*.* |
83a5909f | 92 | %ghost %{_libdir}/libAnalitzaGui.so.8 |
a1a1be11 | 93 | %attr(755,root,root) %{_libdir}/libAnalitzaGui.so.*.*.* |
83a5909f | 94 | %ghost %{_libdir}/libAnalitzaPlot.so.8 |
a1a1be11 | 95 | %attr(755,root,root) %{_libdir}/libAnalitzaPlot.so.*.*.* |
83a5909f | 96 | %ghost %{_libdir}/libAnalitzaWidgets.so.8 |
a1a1be11 WF |
97 | %attr(755,root,root) %{_libdir}/libAnalitzaWidgets.so.*.*.* |
98 | %dir %{_libdir}/qt5/qml/org/kde/analitza | |
99 | %{_libdir}/qt5/qml/org/kde/analitza/Graph2D.qml | |
100 | %{_libdir}/qt5/qml/org/kde/analitza/Graph3D.qml | |
101 | %{_libdir}/qt5/qml/org/kde/analitza/libanalitzadeclarativeplugin.so | |
102 | %{_libdir}/qt5/qml/org/kde/analitza/qmldir | |
103 | %dir %{_datadir}/libanalitza | |
104 | %dir %{_datadir}/libanalitza/plots | |
105 | %{_datadir}/libanalitza/plots/3Ds.plots | |
106 | %{_datadir}/libanalitza/plots/basic_curves.plots | |
107 | %{_datadir}/libanalitza/plots/conics.plots | |
108 | %{_datadir}/libanalitza/plots/polar.plots | |
109 | ||
110 | %files devel | |
111 | %defattr(644,root,root,755) | |
112 | %{_includedir}/Analitza5 | |
113 | %{_libdir}/cmake/Analitza5 | |
83a5909f WF |
114 | %{_libdir}/libAnalitza.so |
115 | %{_libdir}/libAnalitzaGui.so | |
116 | %{_libdir}/libAnalitzaPlot.so | |
117 | %{_libdir}/libAnalitzaWidgets.so |