]>
Commit | Line | Data |
---|---|---|
3fd20bc4 WF |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with tests # build with tests | |
4 | Summary: Qt based Color Picker with popup menu | |
5 | Name: kColorPicker | |
6 | Version: 0.2.0 | |
7 | Release: 1 | |
8 | License: GPL v2+ | |
9 | Group: X11/Libraries | |
10 | Source0: https://github.com/ksnip/kColorPicker/archive/v%{version}/%{name}-%{version}.tar.gz | |
11 | # Source0-md5: 58a14db496f2e782be9abc4b604b5334 | |
12 | URL: https://github.com/ksnip/kColorPicker/ | |
13 | BuildRequires: Qt5Gui-devel >= 5.15.2 | |
14 | BuildRequires: cmake >= 2.8.12 | |
15 | BuildRequires: ninja | |
16 | BuildRequires: pkgconfig | |
17 | BuildRequires: rpmbuild(macros) >= 1.164 | |
18 | BuildRequires: tar >= 1:1.22 | |
19 | BuildRequires: zlib-devel | |
20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
21 | ||
22 | %description | |
23 | Qt based Color Picker with popup menu. | |
24 | ||
25 | %package devel | |
26 | Summary: Header files for %{name} development | |
27 | Summary(pl.UTF-8): Pliki nagłówkowe dla programistów używających %{name} | |
28 | Group: X11/Development/Libraries | |
29 | Requires: %{name} = %{version}-%{release} | |
30 | Requires: cmake >= 3.16 | |
31 | ||
32 | %description devel | |
33 | Header files for %{name} development. | |
34 | ||
35 | %description devel -l pl.UTF-8 | |
36 | Pliki nagłówkowe dla programistów używających %{name}. | |
37 | ||
38 | %prep | |
39 | %setup -q | |
40 | #%patch0 | |
41 | ||
42 | %build | |
43 | install -d build | |
44 | cd build | |
45 | %cmake \ | |
46 | -G Ninja \ | |
47 | %{!?with_tests:-DBUILD_TESTING=OFF} \ | |
48 | -DHTML_INSTALL_DIR=%{_kdedocdir} \ | |
49 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ | |
50 | .. | |
51 | %ninja_build | |
52 | ||
53 | %if %{with tests} | |
54 | ctest | |
55 | %endif | |
56 | ||
57 | ||
58 | %install | |
59 | rm -rf $RPM_BUILD_ROOT | |
60 | %ninja_install -C build | |
61 | ||
62 | %clean | |
63 | rm -rf $RPM_BUILD_ROOT | |
64 | ||
65 | %post -p /sbin/ldconfig | |
66 | %postun -p /sbin/ldconfig | |
67 | ||
68 | %files | |
69 | %defattr(644,root,root,755) | |
70 | %attr(755,root,root) %{_libdir}/libkColorPicker.so.*.*.* | |
71 | %ghost %{_libdir}/libkColorPicker.so.0 | |
72 | ||
73 | %files devel | |
74 | %defattr(644,root,root,755) | |
75 | %{_libdir}/libkColorPicker.so | |
76 | %{_includedir}/kColorPicker | |
77 | %{_libdir}/cmake/kColorPicker |