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