]>
Commit | Line | Data |
---|---|---|
d4bafc21 | 1 | # TODO: |
d4bafc21 | 2 | # - runtime Requires if any |
b2748967 | 3 | %define kdeframever 5.24 |
ae9f2b52 AM |
4 | %define qtver 5.3.2 |
5 | %define kfname karchive | |
d4bafc21 WF |
6 | |
7 | Summary: Reading, creating, and manipulating file archives | |
ae9f2b52 | 8 | Name: kf5-%{kfname} |
b2748967 | 9 | Version: 5.24.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 |
b2748967 | 14 | # Source0-md5: 49ab9bbc2dde92f16bea572526d3eb1e |
d4bafc21 | 15 | URL: http://www.kde.org/ |
ae9f2b52 AM |
16 | BuildRequires: Qt5Core-devel >= %{qtver} |
17 | BuildRequires: Qt5Test-devel >= %{qtver} | |
d4bafc21 WF |
18 | BuildRequires: bzip2-devel |
19 | BuildRequires: cmake >= 2.8.12 | |
ae9f2b52 | 20 | BuildRequires: kf5-extra-cmake-modules >= 1.4.0 |
d4bafc21 | 21 | BuildRequires: rpmbuild(macros) >= 1.164 |
3e033ea0 ER |
22 | BuildRequires: tar >= 1:1.22 |
23 | BuildRequires: xz | |
d4bafc21 WF |
24 | BuildRequires: xz-devel |
25 | BuildRequires: zlib-devel | |
1c044196 | 26 | Requires: kf5-dirs |
d4bafc21 WF |
27 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
28 | ||
6140a1b7 WF |
29 | %define qt5dir %{_libdir}/qt5 |
30 | ||
d4bafc21 WF |
31 | %description |
32 | KArchive provides classes for easy reading, creation and manipulation | |
33 | of "archive" formats like ZIP and TAR. | |
34 | ||
35 | If also provides transparent compression and decompression of data, | |
36 | like the GZip format, via a subclass of QIODevice. | |
37 | ||
38 | %package devel | |
ae9f2b52 AM |
39 | Summary: Header files for %{kfname} development |
40 | Summary(pl.UTF-8): Pliki nagłówkowe dla programistów używających %{kfname} | |
d4bafc21 WF |
41 | Group: X11/Development/Libraries |
42 | Requires: %{name} = %{version}-%{release} | |
43 | ||
44 | %description devel | |
ae9f2b52 | 45 | Header files for %{kfname} development. |
d4bafc21 WF |
46 | |
47 | %description devel -l pl.UTF-8 | |
ae9f2b52 | 48 | Pliki nagłówkowe dla programistów używających %{kfname}. |
d4bafc21 WF |
49 | |
50 | %prep | |
ae9f2b52 | 51 | %setup -q -n %{kfname}-%{version} |
d4bafc21 WF |
52 | |
53 | %build | |
54 | install -d build | |
55 | cd build | |
56 | %cmake \ | |
ae9f2b52 | 57 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ |
6140a1b7 | 58 | .. |
d4bafc21 WF |
59 | %{__make} |
60 | ||
61 | %install | |
62 | rm -rf $RPM_BUILD_ROOT | |
63 | ||
64 | %{__make} -C build/ install \ | |
65 | DESTDIR=$RPM_BUILD_ROOT | |
66 | ||
67 | %clean | |
68 | rm -rf $RPM_BUILD_ROOT | |
69 | ||
70 | %post -p /sbin/ldconfig | |
71 | %postun -p /sbin/ldconfig | |
72 | ||
73 | %files | |
74 | %defattr(644,root,root,755) | |
75 | %doc AUTHORS README.md | |
76 | %attr(755,root,root) %ghost %{_libdir}/libKF5Archive.so.5 | |
6c551849 | 77 | %attr(755,root,root) %{_libdir}/libKF5Archive.so.*.* |
d4bafc21 WF |
78 | |
79 | %files devel | |
80 | %defattr(644,root,root,755) | |
81 | %{_includedir}/KF5/KArchive | |
82 | %{_includedir}/KF5/karchive_version.h | |
83 | %attr(755,root,root) %{_libdir}/libKF5Archive.so | |
84 | %{_libdir}/cmake/KF5Archive | |
6140a1b7 | 85 | %{qt5dir}/mkspecs/modules/qt_KArchive.pri |