]>
Commit | Line | Data |
---|---|---|
cc71b848 WF |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with tests # build with tests | |
c08eb587 | 4 | %define kdeappsver 22.04.0 |
0646b061 | 5 | %define kframever 5.56.0 |
8a6e1d3f WF |
6 | %define qtver 5.9.0 |
7 | %define kaname kpkpass | |
8 | Summary: kpkpass | |
9 | Name: ka5-%{kaname} | |
c08eb587 | 10 | Version: 22.04.0 |
8a6e1d3f WF |
11 | Release: 1 |
12 | License: GPL v2+/LGPL v2.1+ | |
13 | Group: X11/Libraries | |
42d00646 | 14 | Source0: http://download.kde.org/stable/release-service/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz |
c08eb587 | 15 | # Source0-md5: e2a774a8e5384529309f97dd62e88d7c |
8a6e1d3f WF |
16 | URL: http://www.kde.org/ |
17 | BuildRequires: Qt5Core-devel >= %{qtver} | |
18 | BuildRequires: Qt5Gui-devel | |
19 | BuildRequires: Qt5Test-devel | |
20 | BuildRequires: cmake >= 2.8.12 | |
0646b061 WF |
21 | BuildRequires: kf5-extra-cmake-modules >= %{kframever} |
22 | BuildRequires: kf5-karchive-devel >= %{kframever} | |
a7d2710f | 23 | BuildRequires: ninja |
8a6e1d3f WF |
24 | BuildRequires: qt5-build >= %{qtver} |
25 | BuildRequires: rpmbuild(macros) >= 1.164 | |
26 | BuildRequires: shared-mime-info | |
27 | BuildRequires: tar >= 1:1.22 | |
28 | BuildRequires: xz | |
29 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
30 | ||
31 | %description | |
32 | Library to deal with Apple Wallet pass files. Apple Wallet files are | |
33 | essentially ZIP files containing a JSON description of the pass, | |
34 | translated message catalogs and graphical assets to render the pass. | |
35 | ||
c544b197 WF |
36 | %description -l pl.UTF-8 |
37 | Biblioteka do obsługi portfela Apple z plikami haseł. Pliki Apple | |
38 | Wallet są plikami ZIP z JSONowym opisem pass, a także katalogiem z | |
39 | tłumaczeniami i plikami graficznymi. | |
40 | ||
8a6e1d3f WF |
41 | %package devel |
42 | Summary: Header files for %{kaname} development | |
43 | Summary(pl.UTF-8): Pliki nagłówkowe dla programistów używających %{kaname} | |
44 | Group: X11/Development/Libraries | |
45 | Requires: %{name} = %{version}-%{release} | |
46 | ||
47 | %description devel | |
48 | Header files for %{kaname} development. | |
49 | ||
50 | %description devel -l pl.UTF-8 | |
51 | Pliki nagłówkowe dla programistów używających %{kaname}. | |
52 | ||
53 | %prep | |
54 | %setup -q -n %{kaname}-%{version} | |
55 | ||
56 | %build | |
57 | install -d build | |
58 | cd build | |
59 | %cmake \ | |
a7d2710f | 60 | -G Ninja \ |
cc71b848 | 61 | %{!?with_tests:-DBUILD_TESTING=OFF} \ |
0646b061 | 62 | -DHTML_INSTALL_DIR=%{_kdedocdir} \ |
8a6e1d3f WF |
63 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ |
64 | .. | |
a7d2710f | 65 | %ninja_build |
8a6e1d3f | 66 | |
cc71b848 WF |
67 | %if %{with tests} |
68 | ctest | |
69 | %endif | |
70 | ||
71 | ||
8a6e1d3f WF |
72 | %install |
73 | rm -rf $RPM_BUILD_ROOT | |
a7d2710f | 74 | %ninja_install -C build |
8a6e1d3f WF |
75 | |
76 | %clean | |
77 | rm -rf $RPM_BUILD_ROOT | |
78 | ||
79 | %post -p /sbin/ldconfig | |
80 | %postun -p /sbin/ldconfig | |
81 | ||
82 | %files | |
83 | %defattr(644,root,root,755) | |
6efb21d7 WF |
84 | %ghost %{_libdir}/libKPimPkPass.so.5 |
85 | %attr(755,root,root) %{_libdir}/libKPimPkPass.so.*.*.* | |
42d00646 | 86 | %{_datadir}/qlogging-categories5/org_kde_kpkpass.categories |
8a6e1d3f WF |
87 | |
88 | %files devel | |
89 | %defattr(644,root,root,755) | |
90 | %{_includedir}/KPim/KPkPass | |
91 | %{_libdir}/cmake/KPimPkPass | |
6efb21d7 | 92 | %{_libdir}/libKPimPkPass.so |