]>
Commit | Line | Data |
---|---|---|
d4bafc21 | 1 | # TODO: |
d4bafc21 | 2 | # - runtime Requires if any |
334bb71c | 3 | %define kdeframever 5.92 |
9764ca0d | 4 | %define qtver 5.15.2 |
ae9f2b52 | 5 | %define kfname karchive |
d4bafc21 WF |
6 | |
7 | Summary: Reading, creating, and manipulating file archives | |
ae9f2b52 | 8 | Name: kf5-%{kfname} |
334bb71c | 9 | Version: 5.92.0 |
2b449104 | 10 | Release: 1 |
d4bafc21 WF |
11 | License: GPL v2+/LGPL v2.1+ |
12 | Group: X11/Libraries | |
6ce9fd21 | 13 | Source0: https://download.kde.org/stable/frameworks/%{kdeframever}/%{kfname}-%{version}.tar.xz |
334bb71c | 14 | # Source0-md5: 7c56888650dee03d249a3d8920419b3e |
d4bafc21 | 15 | URL: http://www.kde.org/ |
ae9f2b52 | 16 | BuildRequires: Qt5Core-devel >= %{qtver} |
c1a54bac | 17 | BuildRequires: Qt5Network-devel >= %{qtver} |
ae9f2b52 | 18 | BuildRequires: Qt5Test-devel >= %{qtver} |
d4bafc21 | 19 | BuildRequires: bzip2-devel |
9764ca0d | 20 | BuildRequires: cmake >= 3.16 |
916a699a | 21 | BuildRequires: kf5-extra-cmake-modules >= %{version} |
853a145a | 22 | BuildRequires: ninja |
9764ca0d | 23 | BuildRequires: pkgconfig |
436139aa | 24 | BuildRequires: rpmbuild(macros) >= 1.736 |
3e033ea0 ER |
25 | BuildRequires: tar >= 1:1.22 |
26 | BuildRequires: xz | |
d4bafc21 WF |
27 | BuildRequires: xz-devel |
28 | BuildRequires: zlib-devel | |
9764ca0d | 29 | BuildRequires: zstd-devel |
c1a54bac | 30 | Requires: Qt5Core >= %{qtver} |
1c044196 | 31 | Requires: kf5-dirs |
d4bafc21 WF |
32 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
33 | ||
6140a1b7 WF |
34 | %define qt5dir %{_libdir}/qt5 |
35 | ||
d4bafc21 WF |
36 | %description |
37 | KArchive provides classes for easy reading, creation and manipulation | |
38 | of "archive" formats like ZIP and TAR. | |
39 | ||
40 | If also provides transparent compression and decompression of data, | |
41 | like the GZip format, via a subclass of QIODevice. | |
42 | ||
43 | %package devel | |
ae9f2b52 AM |
44 | Summary: Header files for %{kfname} development |
45 | Summary(pl.UTF-8): Pliki nagłówkowe dla programistów używających %{kfname} | |
d4bafc21 WF |
46 | Group: X11/Development/Libraries |
47 | Requires: %{name} = %{version}-%{release} | |
c1a54bac | 48 | Requires: Qt5Core-devel >= %{qtver} |
9764ca0d | 49 | Requires: cmake >= 3.16 |
d4bafc21 WF |
50 | |
51 | %description devel | |
ae9f2b52 | 52 | Header files for %{kfname} development. |
d4bafc21 WF |
53 | |
54 | %description devel -l pl.UTF-8 | |
ae9f2b52 | 55 | Pliki nagłówkowe dla programistów używających %{kfname}. |
d4bafc21 WF |
56 | |
57 | %prep | |
ae9f2b52 | 58 | %setup -q -n %{kfname}-%{version} |
d4bafc21 WF |
59 | |
60 | %build | |
61 | install -d build | |
62 | cd build | |
853a145a | 63 | %cmake -G Ninja \ |
ae9f2b52 | 64 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ |
6140a1b7 | 65 | .. |
853a145a | 66 | %ninja_build |
d4bafc21 WF |
67 | |
68 | %install | |
69 | rm -rf $RPM_BUILD_ROOT | |
853a145a | 70 | %ninja_install -C build |
d4bafc21 WF |
71 | |
72 | %clean | |
73 | rm -rf $RPM_BUILD_ROOT | |
74 | ||
75 | %post -p /sbin/ldconfig | |
76 | %postun -p /sbin/ldconfig | |
77 | ||
78 | %files | |
79 | %defattr(644,root,root,755) | |
80 | %doc AUTHORS README.md | |
37f9d21f | 81 | %ghost %{_libdir}/libKF5Archive.so.5 |
6c551849 | 82 | %attr(755,root,root) %{_libdir}/libKF5Archive.so.*.* |
aa8eb53d | 83 | %config(noreplace) %verify(not md5 mtime size) %{_datadir}/qlogging-categories5/karchive.categories |
d92ba9f7 | 84 | %{_datadir}/qlogging-categories5/karchive.renamecategories |
d4bafc21 WF |
85 | |
86 | %files devel | |
87 | %defattr(644,root,root,755) | |
88 | %{_includedir}/KF5/KArchive | |
37f9d21f | 89 | %{_libdir}/libKF5Archive.so |
d4bafc21 | 90 | %{_libdir}/cmake/KF5Archive |
6140a1b7 | 91 | %{qt5dir}/mkspecs/modules/qt_KArchive.pri |