summaryrefslogtreecommitdiff
path: root/kdialog.spec
blob: 091c5d4c42b6a9e93332c4566becee6541fabcc3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
Name:          kdialog
Summary:       Nice dialog boxes from shell scripts
Version:       22.08.0
Release:       1

License:       GPLv2+ and GFDL
URL:           https://www.kde.org/

%global revision %(echo %{version} | cut -d. -f3)

%if %{revision} >= 50
%global stable unstable
%else
%global stable stable
%endif

Source0:       http://download.kde.org/%{stable}/release-service/%{version}/src/%{name}-%{version}.tar.xz

BuildRequires: desktop-file-utils

BuildRequires: extra-cmake-modules
BuildRequires: kf5-rpm-macros
BuildRequires: cmake(KF5KDELibs4Support)
BuildRequires: cmake(KF5DBusAddons)

BuildRequires: cmake(Qt5Core)
BuildRequires: cmake(Qt5DBus)
BuildRequires: cmake(Qt5Widgets)

Conflicts:     kde-l10n < 17.03

%description
KDialog can be used to show nice dialog boxes from shell scripts.


%prep
%autosetup -p1


%build
mkdir %{_target_platform}
pushd %{_target_platform}
%{cmake_kf5} ..
popd
%make_build -C %{_target_platform}


%install
make install/fast DESTDIR=%{buildroot} -C %{_target_platform}

%find_lang %{name} --with-html --with-man


%files -f %{name}.lang
%license COPYING*
%doc README 
%{_kf5_bindir}/kdialog
%{_kf5_bindir}/kdialog_progress_helper
%{_kf5_datadir}/dbus-1/interfaces/org.kde.kdialog.ProgressDialog.xml
%{_kf5_metainfodir}/org.kde.kdialog.metainfo.xml


%changelog
* Mon Dec 19 2022 misaka00251 <liuxin@iscas.ac.cn> - 22.08.0-1
- Init package