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