- updated to 22.04.1
[packages/ka5-kalgebra.git] / ka5-kalgebra.spec
CommitLineData
59ebc017
WF
1#
2# Conditional build:
3%bcond_with tests # build with tests
912de467 4%define kdeappsver 22.04.1
e63c1eeb 5%define kframever 5.56.0
f851455e
WF
6%define qtver 5.9.0
7%define kaname kalgebra
8Summary: Kalgebra
9Name: ka5-%{kaname}
912de467 10Version: 22.04.1
162f6988 11Release: 1
f851455e
WF
12License: GPL v2+/LGPL v2.1+
13Group: X11/Libraries
e97c5943 14Source0: http://download.kde.org/stable/release-service/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz
912de467 15# Source0-md5: 811f4e91c1fcd2f212b02154f9c897d9
f851455e
WF
16URL: http://www.kde.org/
17BuildRequires: Qt5Core-devel
18BuildRequires: Qt5Core-devel >= %{qtver}
19BuildRequires: Qt5Gui-devel >= 5.11.1
20BuildRequires: Qt5Network-devel >= 5.11.1
21BuildRequires: Qt5PrintSupport-devel
22BuildRequires: Qt5Qml-devel
23BuildRequires: Qt5Quick-devel
24BuildRequires: Qt5Svg-devel
25BuildRequires: Qt5Test-devel
9a1d9948 26BuildRequires: Qt5WebEngine-devel >= 5.15.5
f851455e
WF
27BuildRequires: Qt5Widgets-devel >= 5.11.1
28BuildRequires: Qt5Xml-devel
29BuildRequires: cmake >= 2.8.12
30BuildRequires: gettext-devel
e63c1eeb
WF
31BuildRequires: ka5-analitza-devel >= %{kdeappsver}
32BuildRequires: kf5-extra-cmake-modules >= %{kframever}
89bd90ab 33BuildRequires: kf5-kconfigwidgets-devel >= %{kframever}
e63c1eeb 34BuildRequires: kf5-kcoreaddons-devel >= %{kframever}
89bd90ab 35BuildRequires: kf5-kdoctools-devel >= %{kframever}
e63c1eeb 36BuildRequires: kf5-ki18n-devel >= %{kframever}
89bd90ab
JR
37BuildRequires: kf5-kio-devel >= %{kframever}
38BuildRequires: kf5-kwidgetsaddons-devel >= %{kframever}
35b701f6 39BuildRequires: ninja
f851455e
WF
40BuildRequires: qt5-build >= %{qtver}
41BuildRequires: rpmbuild(macros) >= 1.164
42BuildRequires: shared-mime-info
43BuildRequires: tar >= 1:1.22
44BuildRequires: xz
b360cc16 45ExclusiveArch: i686 %{x8664}
f851455e
WF
46BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
47
48%description
49KAlgebra is a fully featured calculator that lets you plot different
50types of 2D and 3D functions and to calculate easy (and not so easy)
51calculations, such as addition, trigonometric functions or
52derivatives.
53
54The application has been thought to be progressively understood for
55students, so that starting to use it doesn't get in the way. The
56language is deeply integrated with the UI, providing a dictionary with
57representations for all the available operations, code highlighting
58and code completion.
59
8eae0f7f 60%description -l pl.UTF-8
7502aa7a
KM
61KAlgebra jest wszechstronnym kalkulatorem, pozwalającym rysować różne
62typy funkcji dwu- i trójwymiarowych i przeliczać łatwe (i nie tylko)
63operacje matematycze, jak dodawanie, funkcje trygonometryczne i
64pochodne.
8eae0f7f 65
7502aa7a
KM
66Aplikacja została pomyślana tak, aby była stopniowo rozumiana przez
67studentów. Język jest głęboko zintegrowany z interfejsem użykownika,
68dostarczając słownik z reprezentacją wszystkich dostępnych operacji, a
69także podświetlanie kodu i podpowiadanie dopełnień.
8eae0f7f 70
f851455e
WF
71%prep
72%setup -q -n %{kaname}-%{version}
73
74%build
75install -d build
76cd build
77%cmake \
35b701f6 78 -G Ninja \
59ebc017 79 %{!?with_tests:-DBUILD_TESTING=OFF} \
e63c1eeb 80 -DHTML_INSTALL_DIR=%{_kdedocdir} \
f851455e
WF
81 -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
82 ..
35b701f6 83%ninja_build
f851455e 84
59ebc017
WF
85%if %{with tests}
86ctest
87%endif
88
89
f851455e
WF
90%install
91rm -rf $RPM_BUILD_ROOT
35b701f6 92%ninja_install -C build
f851455e
WF
93
94%find_lang %{kaname} --all-name --with-kde
95
96%clean
97rm -rf $RPM_BUILD_ROOT
98
99%files -f %{kaname}.lang
100%defattr(644,root,root,755)
101%attr(755,root,root) %{_bindir}/calgebra
162f6988 102%attr(755,root,root) %{_bindir}/kalgebra
f851455e 103%attr(755,root,root) %{_bindir}/kalgebramobile
f851455e
WF
104%{_desktopdir}/org.kde.kalgebramobile.desktop
105%{_iconsdir}/hicolor/64x64/apps/kalgebra.png
106%{_iconsdir}/hicolor/scalable/apps/kalgebra.svgz
f851455e 107%{_datadir}/metainfo/org.kde.kalgebramobile.appdata.xml
162f6988
WF
108%{_desktopdir}/org.kde.kalgebra.desktop
109%{_datadir}/katepart5/syntax/kalgebra.xml
110%{_datadir}/kservices5/graphsplasmoid.desktop
111%{_datadir}/metainfo/org.kde.kalgebra.appdata.xml
112%{_datadir}/plasma/plasmoids/org.kde.graphsplasmoid
This page took 0.144142 seconds and 4 git commands to generate.