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