]> git.pld-linux.org Git - packages/ka5-kteatime.git/blame - ka5-kteatime.spec
- updated to 23.08.0; cmake -B build
[packages/ka5-kteatime.git] / ka5-kteatime.spec
CommitLineData
4cf60b05
WF
1#
2# Conditional build:
3%bcond_with tests # build with tests
6254872b 4%define kdeappsver 23.08.0
c0f0b1ea
WF
5%define kframever 5.94.0
6%define qtver 5.15.2
5ae3f9e9
WF
7%define kaname kteatime
8Summary: kteatime
9Summary(pl.UTF-8): kteatime
10Name: ka5-%{kaname}
6254872b 11Version: 23.08.0
e898dcfa 12Release: 1
5ae3f9e9
WF
13License: GPL v2+
14Group: X11/Libraries
c98f2dd1 15Source0: https://download.kde.org/stable/release-service/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz
6254872b 16# Source0-md5: 75b9213f3c0608e6aa22ad50c11f2fa4
5ae3f9e9
WF
17URL: http://www.kde.org/
18BuildRequires: Qt5Core-devel
19BuildRequires: Qt5Gui-devel >= 5.11.1
20BuildRequires: Qt5Widgets-devel
21BuildRequires: gettext-devel
7cfa6abb
WF
22BuildRequires: kf5-extra-cmake-modules >= %{kframever}
23BuildRequires: kf5-kconfig-devel >= %{kframever}
24BuildRequires: kf5-kcrash-devel >= %{kframever}
25BuildRequires: kf5-kdoctools-devel >= %{kframever}
26BuildRequires: kf5-ki18n-devel >= %{kframever}
27BuildRequires: kf5-kiconthemes-devel >= %{kframever}
28BuildRequires: kf5-knotifications-devel >= %{kframever}
29BuildRequires: kf5-knotifyconfig-devel >= %{kframever}
30BuildRequires: kf5-ktextwidgets-devel >= %{kframever}
31BuildRequires: kf5-kxmlgui-devel >= %{kframever}
429789b0 32BuildRequires: ninja
5ae3f9e9
WF
33BuildRequires: rpmbuild(macros) >= 1.164
34BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
35
36%description
37KTeaTime is a handy timer for steeping tea. No longer will you have to
38guess at how long it takes for your tea to be ready. Simply select the
39type of tea you have, and it will alert you when the tea is ready to
40drink.
41
ac4835d5
WF
42%description -l pl.UTF-8
43KTeaTime jest przydatnym stoperem do zaparzania herbaty. Nie musisz
44więcej zgadywać jak długo trzeba czekać aż herbata będzie gotowa.
45Po prostu zaznacz typ herbaty którą masz i KTeaTime powiadomi Cię,
46gdy napój będzie gotowy do picia.
47
5ae3f9e9
WF
48%prep
49%setup -q -n %{kaname}-%{version}
50
51%build
5ae3f9e9 52%cmake \
6254872b 53 -B build \
429789b0 54 -G Ninja \
4cf60b05 55 %{!?with_tests:-DBUILD_TESTING=OFF} \
7cfa6abb 56 -DHTML_INSTALL_DIR=%{_kdedocdir} \
6254872b
WF
57 -DKDE_INSTALL_USE_QT_SYS_PATHS=ON
58%ninja_build -C build
5ae3f9e9 59
4cf60b05 60%if %{with tests}
6254872b 61ctest --test-dir build
4cf60b05
WF
62%endif
63
64
5ae3f9e9
WF
65%install
66rm -rf $RPM_BUILD_ROOT
429789b0 67%ninja_install -C build
5ae3f9e9
WF
68
69%find_lang %{kaname} --all-name --with-kde
70
71%clean
72rm -rf $RPM_BUILD_ROOT
73
74%files -f %{kaname}.lang
75%defattr(644,root,root,755)
76%attr(755,root,root) %{_bindir}/kteatime
77%{_desktopdir}/org.kde.kteatime.desktop
78%{_iconsdir}/hicolor/16x16/apps/kteatime.png
79%{_iconsdir}/hicolor/22x22/apps/kteatime.png
80%{_iconsdir}/hicolor/32x32/apps/kteatime.png
81%{_iconsdir}/hicolor/48x48/apps/kteatime.png
82%{_iconsdir}/hicolor/64x64/apps/kteatime.png
83%{_iconsdir}/hicolor/scalable/apps/kteatime.svgz
84%{_datadir}/knotifications5/kteatime.notifyrc
85%{_datadir}/metainfo/org.kde.kteatime.appdata.xml
This page took 0.204041 seconds and 4 git commands to generate.