]>
Commit | Line | Data |
---|---|---|
83a5909f | 1 | %define kdeappsver 21.04.0 |
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} | |
83a5909f | 7 | Version: 21.04.0 |
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 |
83a5909f | 12 | # Source0-md5: 244ee090c7d1c5847c3ee3ec1431e4e2 |
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 WF |
37 | |
38 | %package devel | |
39 | Summary: Header files for %{kaname} development | |
713e128b | 40 | Summary(pl.UTF-8): Pliki nagłówkowe dla programistów używających %{kaname} |
a1a1be11 WF |
41 | Group: X11/Development/Libraries |
42 | Requires: %{name} = %{version}-%{release} | |
43 | ||
44 | %description devel | |
45 | Header files for %{kaname} development. | |
46 | ||
47 | %description devel -l pl.UTF-8 | |
48 | Pliki nagłówkowe dla programistów używających %{kaname}. | |
49 | ||
50 | %prep | |
51 | %setup -q -n %{kaname}-%{version} | |
52 | ||
53 | %build | |
54 | install -d build | |
55 | cd build | |
56 | %cmake \ | |
52cca0aa | 57 | -G Ninja \ |
4fc694e2 | 58 | -DHTML_INSTALL_DIR=%{_kdedocdir} \ |
a1a1be11 WF |
59 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ |
60 | .. | |
52cca0aa | 61 | %ninja_build |
a1a1be11 WF |
62 | |
63 | %install | |
64 | rm -rf $RPM_BUILD_ROOT | |
52cca0aa | 65 | %ninja_install -C build install |
a1a1be11 WF |
66 | |
67 | %find_lang %{kaname} --all-name --with-qm | |
68 | ||
69 | %clean | |
70 | rm -rf $RPM_BUILD_ROOT | |
71 | ||
72 | %post -p /sbin/ldconfig | |
73 | %postun -p /sbin/ldconfig | |
74 | ||
75 | %files -f %{kaname}.lang | |
76 | %defattr(644,root,root,755) | |
83a5909f | 77 | %ghost %{_libdir}/libAnalitza.so.8 |
a1a1be11 | 78 | %attr(755,root,root) %{_libdir}/libAnalitza.so.*.*.* |
83a5909f | 79 | %ghost %{_libdir}/libAnalitzaGui.so.8 |
a1a1be11 | 80 | %attr(755,root,root) %{_libdir}/libAnalitzaGui.so.*.*.* |
83a5909f | 81 | %ghost %{_libdir}/libAnalitzaPlot.so.8 |
a1a1be11 | 82 | %attr(755,root,root) %{_libdir}/libAnalitzaPlot.so.*.*.* |
83a5909f | 83 | %ghost %{_libdir}/libAnalitzaWidgets.so.8 |
a1a1be11 WF |
84 | %attr(755,root,root) %{_libdir}/libAnalitzaWidgets.so.*.*.* |
85 | %dir %{_libdir}/qt5/qml/org/kde/analitza | |
86 | %{_libdir}/qt5/qml/org/kde/analitza/Graph2D.qml | |
87 | %{_libdir}/qt5/qml/org/kde/analitza/Graph3D.qml | |
88 | %{_libdir}/qt5/qml/org/kde/analitza/libanalitzadeclarativeplugin.so | |
89 | %{_libdir}/qt5/qml/org/kde/analitza/qmldir | |
90 | %dir %{_datadir}/libanalitza | |
91 | %dir %{_datadir}/libanalitza/plots | |
92 | %{_datadir}/libanalitza/plots/3Ds.plots | |
93 | %{_datadir}/libanalitza/plots/basic_curves.plots | |
94 | %{_datadir}/libanalitza/plots/conics.plots | |
95 | %{_datadir}/libanalitza/plots/polar.plots | |
96 | ||
97 | %files devel | |
98 | %defattr(644,root,root,755) | |
99 | %{_includedir}/Analitza5 | |
100 | %{_libdir}/cmake/Analitza5 | |
83a5909f WF |
101 | %{_libdir}/libAnalitza.so |
102 | %{_libdir}/libAnalitzaGui.so | |
103 | %{_libdir}/libAnalitzaPlot.so | |
104 | %{_libdir}/libAnalitzaWidgets.so |