]>
Commit | Line | Data |
---|---|---|
34661641 | 1 | %define kdeappsver 21.08.0 |
78abc3fc | 2 | %define kframever 5.56.0 |
f1945206 WF |
3 | %define qtver 5.9.0 |
4 | %define kaname kcolorchooser | |
5 | Summary: KColorChooser | |
6 | Name: ka5-%{kaname} | |
34661641 | 7 | Version: 21.08.0 |
f1945206 WF |
8 | Release: 1 |
9 | License: GPL v2+/LGPL v2.1+ | |
10 | Group: X11/Applications | |
ab899efd | 11 | Source0: http://download.kde.org/stable/release-service/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz |
34661641 | 12 | # Source0-md5: 0536b61b519a7142758aa7ee1f236985 |
f1945206 WF |
13 | URL: http://www.kde.org/ |
14 | BuildRequires: Qt5Core-devel >= %{qtver} | |
15 | BuildRequires: cmake >= 2.8.12 | |
16 | BuildRequires: gettext-devel | |
78abc3fc WF |
17 | BuildRequires: kf5-extra-cmake-modules >= %{kframever} |
18 | BuildRequires: kf5-ki18n-devel >= %{kframever} | |
19 | BuildRequires: kf5-kxmlgui-devel >= %{kframever} | |
bb32aac8 | 20 | BuildRequires: ninja |
78abc3fc | 21 | BuildRequires: qt5-build >= %{qtver} |
f1945206 WF |
22 | BuildRequires: rpmbuild(macros) >= 1.164 |
23 | BuildRequires: shared-mime-info | |
24 | BuildRequires: tar >= 1:1.22 | |
25 | BuildRequires: xz | |
26 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
27 | ||
28 | %description | |
29 | KColorChooser is a simple application to select the color from the | |
30 | screen or from a pallete. | |
31 | ||
32 | Features: | |
33 | ||
78abc3fc WF |
34 | Select colors from any location on the screen. Select colors from a |
35 | range of standard palletes available. Color values shown in | |
f1945206 WF |
36 | Hue-Saturation-Value (HSV), Red-Green-Blue (RGB) and HTML formats. |
37 | ||
ac1499f8 WF |
38 | %description -l pl.UTF-8 |
39 | KColorChooser jest prostą aplikacją do wybrania koloru z ekranu | |
40 | lub z palety. | |
41 | ||
42 | Właściwości: | |
43 | ||
44 | Zaznaczenie kolorów z dowolnej lokalizacji na ekranie. Wybieranie | |
45 | kolorów z zestawu standardowych palet. Wartości są pokazywane | |
46 | W Hue-Saturation-Value (HSV), Red-Green-Blue (RGB) i w formacie | |
47 | HTML. | |
48 | ||
f1945206 WF |
49 | %prep |
50 | %setup -q -n %{kaname}-%{version} | |
51 | ||
52 | %build | |
53 | install -d build | |
54 | cd build | |
55 | %cmake \ | |
bb32aac8 | 56 | -G Ninja \ |
78abc3fc | 57 | -DHTML_INSTALL_DIR=%{_kdedocdir} \ |
f1945206 WF |
58 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ |
59 | .. | |
bb32aac8 | 60 | %ninja_build |
f1945206 WF |
61 | |
62 | %install | |
63 | rm -rf $RPM_BUILD_ROOT | |
bb32aac8 | 64 | %ninja_install -C build |
f1945206 WF |
65 | |
66 | %find_lang %{kaname} --all-name --with-kde | |
67 | ||
68 | %clean | |
69 | rm -rf $RPM_BUILD_ROOT | |
70 | ||
71 | %files -f %{kaname}.lang | |
72 | %defattr(644,root,root,755) | |
73 | %attr(755,root,root) %{_bindir}/kcolorchooser | |
74 | %{_desktopdir}/org.kde.kcolorchooser.desktop | |
75 | %{_iconsdir}/hicolor/16x16/apps/kcolorchooser.png | |
76 | %{_iconsdir}/hicolor/22x22/apps/kcolorchooser.png | |
78abc3fc | 77 | %{_datadir}/metainfo/org.kde.kcolorchooser.appdata.xml |