]>
Commit | Line | Data |
---|---|---|
eda5d611 WF |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with tests # build with tests | |
a55a748a | 4 | %define kdeappsver 22.08.3 |
794c6737 WF |
5 | %define kframever 5.94.0 |
6 | %define qtver 5.15.2 | |
003d58a2 WF |
7 | %define kaname kcharselect |
8 | Summary: Kcharselect | |
9 | Name: ka5-%{kaname} | |
a55a748a | 10 | Version: 22.08.3 |
1237cb8c | 11 | Release: 1 |
003d58a2 WF |
12 | License: GPL v2+/LGPL v2.1+ |
13 | Group: X11/Applications | |
10f26356 | 14 | Source0: https://download.kde.org/stable/release-service/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz |
a55a748a | 15 | # Source0-md5: e702ec2706d2f5ca95e33ce96f4b22f3 |
003d58a2 WF |
16 | URL: http://www.kde.org/ |
17 | BuildRequires: Qt5Core-devel >= %{qtver} | |
18 | BuildRequires: Qt5Gui-devel >= 5.11.1 | |
19 | BuildRequires: Qt5Widgets-devel | |
20 | BuildRequires: cmake >= 2.8.12 | |
21 | BuildRequires: gettext-devel | |
69865115 WF |
22 | BuildRequires: kf5-extra-cmake-modules >= %{kframever} |
23 | BuildRequires: kf5-kbookmarks-devel >= %{kframever} | |
24 | BuildRequires: kf5-kcrash-devel >= %{kframever} | |
25 | BuildRequires: kf5-kdoctools-devel >= %{kframever} | |
26 | BuildRequires: kf5-ki18n-devel >= %{kframever} | |
27 | BuildRequires: kf5-kwidgetsaddons-devel >= %{kframever} | |
28 | BuildRequires: kf5-kxmlgui-devel >= %{kframever} | |
1b857bc2 | 29 | BuildRequires: ninja |
003d58a2 WF |
30 | BuildRequires: qt5-build >= %{qtver} |
31 | BuildRequires: rpmbuild(macros) >= 1.164 | |
32 | BuildRequires: shared-mime-info | |
33 | BuildRequires: tar >= 1:1.22 | |
34 | BuildRequires: xz | |
35 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
36 | ||
37 | %description | |
38 | KCharSelect is a tool to select special characters from all installed | |
39 | fonts and copy them into the clipboard.. You can browse characters by | |
40 | their category or quickly find a certain character by searching for | |
41 | its name. KCharSelect displays various information about the selected | |
42 | character. | |
43 | ||
4805e02a WF |
44 | %description -l pl.UTF-8 |
45 | KCharSelect jest narzędziem do zaznaczania znaków specjalnych ze | |
46 | wszystkich zainstalowanych czcionek i kopiowanie ich do schowka. | |
47 | Możesz przeglądać znaki według kategorii i szybko znaleźć odpowiedni | |
48 | znak szukając według jego nazwy. KCharSelect wyświetla też różne | |
49 | informacje o zaznaczonym znaku. | |
50 | ||
003d58a2 WF |
51 | %prep |
52 | %setup -q -n %{kaname}-%{version} | |
53 | ||
54 | %build | |
55 | install -d build | |
56 | cd build | |
57 | %cmake \ | |
1b857bc2 | 58 | -G Ninja \ |
eda5d611 | 59 | %{!?with_tests:-DBUILD_TESTING=OFF} \ |
69865115 | 60 | -DHTML_INSTALL_DIR=%{_kdedocdir} \ |
003d58a2 WF |
61 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ |
62 | .. | |
1b857bc2 | 63 | %ninja_build |
003d58a2 | 64 | |
eda5d611 WF |
65 | %if %{with tests} |
66 | ctest | |
67 | %endif | |
68 | ||
69 | ||
003d58a2 WF |
70 | %install |
71 | rm -rf $RPM_BUILD_ROOT | |
1b857bc2 | 72 | %ninja_install -C build |
003d58a2 | 73 | |
4922f072 | 74 | rm -rf $RPM_BUILD_ROOT%{_kdedocdir}/{el,ko,sr} |
003d58a2 WF |
75 | %find_lang %{kaname} --all-name --with-kde |
76 | ||
77 | %clean | |
78 | rm -rf $RPM_BUILD_ROOT | |
79 | ||
80 | %files -f %{kaname}.lang | |
81 | %defattr(644,root,root,755) | |
82 | %attr(755,root,root) %{_bindir}/kcharselect | |
83 | %{_desktopdir}/org.kde.kcharselect.desktop | |
84 | %{_datadir}/metainfo/org.kde.kcharselect.appdata.xml |