]>
Commit | Line | Data |
---|---|---|
6087987f WF |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with tests # build with tests | |
ffc0cdf6 | 4 | %define kdeappsver 23.08.1 |
acf39c3e WF |
5 | %define kframever 5.94.0 |
6 | %define qtver 5.15.2 | |
0ac09215 WF |
7 | %define kaname kolourpaint |
8 | Summary: kolourpaint | |
9 | Name: ka5-%{kaname} | |
ffc0cdf6 | 10 | Version: 23.08.1 |
a1958454 | 11 | Release: 1 |
0ac09215 WF |
12 | License: GPL v2+/LGPL v2.1+ |
13 | Group: X11/Applications | |
19d7f952 | 14 | Source0: https://download.kde.org/stable/release-service/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz |
ffc0cdf6 | 15 | # Source0-md5: d3c8e7876b29703b476eacd9378802d8 |
0ac09215 WF |
16 | URL: http://www.kde.org/ |
17 | BuildRequires: Qt5Core-devel >= %{qtver} | |
18 | BuildRequires: Qt5Gui-devel >= 5.11.1 | |
19 | BuildRequires: Qt5PrintSupport-devel | |
20 | BuildRequires: Qt5Widgets-devel | |
83ad9643 | 21 | BuildRequires: cmake >= 3.20 |
0ac09215 | 22 | BuildRequires: gettext-devel |
5c991160 | 23 | BuildRequires: ka5-libksane-devel >= %{kdeappsver} |
3916aa2c WF |
24 | BuildRequires: kf5-extra-cmake-modules >= %{kframever} |
25 | BuildRequires: kf5-kdelibs4support-devel >= %{kframever} | |
26 | BuildRequires: kf5-kdoctools-devel >= %{kframever} | |
27 | BuildRequires: kf5-kguiaddons-devel >= %{kframever} | |
28 | BuildRequires: kf5-ki18n-devel >= %{kframever} | |
29 | BuildRequires: kf5-kiconthemes-devel >= %{kframever} | |
30 | BuildRequires: kf5-kio-devel >= %{kframever} | |
31 | BuildRequires: kf5-ktextwidgets-devel >= %{kframever} | |
32 | BuildRequires: kf5-kwidgetsaddons-devel >= %{kframever} | |
33 | BuildRequires: kf5-kxmlgui-devel >= %{kframever} | |
c2d6a44e | 34 | BuildRequires: ninja |
0ac09215 WF |
35 | BuildRequires: qt5-build >= %{qtver} |
36 | BuildRequires: rpmbuild(macros) >= 1.164 | |
37 | BuildRequires: shared-mime-info | |
38 | BuildRequires: tar >= 1:1.22 | |
39 | BuildRequires: xz | |
40 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
41 | ||
42 | %description | |
43 | KolourPaint is a simple painting program to quickly create raster | |
44 | images. It is useful as a touch-up tool and simple image editing | |
45 | tasks. | |
46 | ||
47 | Features: Support for drawing various shapes - lines, rectangles, | |
48 | rounded rectangles, ovals and polygons. | |
49 | ||
dfbba05e WF |
50 | %description -l pl.UTF-8 |
51 | KolourPaint jest prostym programem do szybkiego tworzenia | |
52 | rastrowych obrazków. Jest przydatny do retuszowania i prostych | |
53 | zadań edycji obrazków. | |
54 | ||
55 | Właściwości: Wsparcie dla rysowania różnych kształtów - linii, | |
56 | prostokątów, zaokrąglonych prostokątów, owali i wieloboków. | |
57 | ||
0ac09215 WF |
58 | %prep |
59 | %setup -q -n %{kaname}-%{version} | |
60 | ||
61 | %build | |
0ac09215 | 62 | %cmake \ |
83ad9643 | 63 | -B build \ |
c2d6a44e | 64 | -G Ninja \ |
6087987f | 65 | %{!?with_tests:-DBUILD_TESTING=OFF} \ |
3916aa2c | 66 | -DHTML_INSTALL_DIR=%{_kdedocdir} \ |
83ad9643 WF |
67 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON |
68 | %ninja_build -C build | |
0ac09215 | 69 | |
6087987f | 70 | %if %{with tests} |
83ad9643 | 71 | ctest --test-dir build |
6087987f WF |
72 | %endif |
73 | ||
74 | ||
0ac09215 WF |
75 | %install |
76 | rm -rf $RPM_BUILD_ROOT | |
c2d6a44e | 77 | %ninja_install -C build |
0ac09215 | 78 | |
cbfc8c45 KM |
79 | # not supported by glibc yet |
80 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/tok | |
81 | ||
0ac09215 WF |
82 | %find_lang %{kaname} --all-name --with-kde |
83 | ||
84 | %clean | |
85 | rm -rf $RPM_BUILD_ROOT | |
86 | ||
87 | %files -f %{kaname}.lang | |
88 | %defattr(644,root,root,755) | |
89 | %attr(755,root,root) %{_bindir}/kolourpaint | |
a6946c76 | 90 | %{_libdir}/libkolourpaint_lgpl.so |
0ac09215 WF |
91 | %attr(755,root,root) %{_libdir}/libkolourpaint_lgpl.so.5 |
92 | %{_desktopdir}/org.kde.kolourpaint.desktop | |
93 | %{_iconsdir}/hicolor/16x16/apps/kolourpaint.png | |
94 | %{_iconsdir}/hicolor/22x22/apps/kolourpaint.png | |
95 | %{_iconsdir}/hicolor/32x32/apps/kolourpaint.png | |
96 | %{_iconsdir}/hicolor/48x48/apps/kolourpaint.png | |
97 | %{_iconsdir}/hicolor/scalable/apps/kolourpaint.svgz | |
98 | %{_datadir}/kolourpaint | |
99 | %{_datadir}/kxmlgui5/kolourpaint | |
100 | %{_datadir}/metainfo/org.kde.kolourpaint.appdata.xml | |
db792b8b | 101 | %{_iconsdir}/hicolor/128x128/apps/kolourpaint.png |