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