]>
Commit | Line | Data |
---|---|---|
41743f41 | 1 | %define kdeframever 5.90 |
32bac2f0 | 2 | %define qtver 5.15.2 |
6c4b7b93 WF |
3 | %define kfname syndication |
4 | ||
5 | Summary: syndication | |
6 | Name: kf5-%{kfname} | |
41743f41 | 7 | Version: 5.90.0 |
6c4b7b93 WF |
8 | Release: 1 |
9 | License: LGPL v2.1+ | |
10 | Group: X11/Libraries | |
b5ef9b38 | 11 | Source0: https://download.kde.org/stable/frameworks/%{kdeframever}/%{kfname}-%{version}.tar.xz |
41743f41 | 12 | # Source0-md5: fc2323f58469fd2e216cd2f255a0862f |
6c4b7b93 | 13 | URL: http://www.kde.org/ |
32bac2f0 JP |
14 | BuildRequires: Qt5Core-devel >= %{qtver} |
15 | BuildRequires: Qt5Network-devel >= %{qtver} | |
16 | BuildRequires: Qt5Test-devel >= %{qtver} | |
17 | BuildRequires: Qt5Xml-devel >= %{qtver} | |
18 | BuildRequires: cmake >= 3.16 | |
49f216ac ŁM |
19 | BuildRequires: kf5-extra-cmake-modules >= %{version} |
20 | BuildRequires: kf5-kcodecs-devel >= %{version} | |
ba978ac4 | 21 | BuildRequires: ninja |
32bac2f0 | 22 | BuildRequires: rpmbuild(macros) >= 1.736 |
6c4b7b93 WF |
23 | BuildRequires: tar >= 1:1.22 |
24 | BuildRequires: xz | |
32bac2f0 JP |
25 | Requires: Qt5Core >= %{qtver} |
26 | Requires: Qt5Xml >= %{qtver} | |
6c4b7b93 WF |
27 | Requires: kf5-dirs |
28 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
29 | ||
30 | %define qt5dir %{_libdir}/qt5 | |
31 | ||
32 | %description | |
33 | An RSS/Atom parser library. | |
34 | ||
35 | %package devel | |
36 | Summary: Header files for %{kfname} development | |
37 | Summary(pl.UTF-8): Pliki nagłówkowe dla programistów używających %{kfname} | |
38 | Group: X11/Development/Libraries | |
39 | Requires: %{name} = %{version}-%{release} | |
40 | ||
41 | %description devel | |
42 | Header files for %{kfname} development. | |
43 | ||
44 | %description devel -l pl.UTF-8 | |
45 | Pliki nagłówkowe dla programistów używających %{kfname}. | |
46 | ||
47 | %prep | |
48 | %setup -q -n %{kfname}-%{version} | |
49 | ||
50 | %build | |
51 | install -d build | |
52 | cd build | |
53 | %cmake \ | |
ba978ac4 | 54 | -G Ninja \ |
6c4b7b93 WF |
55 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ |
56 | ../ | |
ba978ac4 | 57 | %ninja_build |
6c4b7b93 WF |
58 | |
59 | %install | |
60 | rm -rf $RPM_BUILD_ROOT | |
ba978ac4 | 61 | %ninja_install -C build |
6c4b7b93 WF |
62 | |
63 | %clean | |
64 | rm -rf $RPM_BUILD_ROOT | |
65 | ||
66 | %post -p /sbin/ldconfig | |
67 | %postun -p /sbin/ldconfig | |
68 | ||
69 | %files | |
70 | %defattr(644,root,root,755) | |
71 | %doc README.md | |
0515a3b2 | 72 | %{_datadir}/qlogging-categories5/syndication.categories |
4a78d729 | 73 | %ghost %{_libdir}/libKF5Syndication.so.5 |
6c4b7b93 | 74 | %attr(755,root,root) %{_libdir}/libKF5Syndication.so.5.*.* |
4a78d729 | 75 | %{_datadir}/qlogging-categories5/syndication.renamecategories |
6c4b7b93 WF |
76 | |
77 | %files devel | |
78 | %defattr(644,root,root,755) | |
79 | %{_includedir}/KF5/Syndication | |
80 | %{_includedir}/KF5/syndication_version.h | |
81 | %{_libdir}/cmake/KF5Syndication | |
4a78d729 | 82 | %{_libdir}/libKF5Syndication.so |
6c4b7b93 | 83 | %{_libdir}/qt5/mkspecs/modules/qt_Syndication.pri |