]>
Commit | Line | Data |
---|---|---|
b4de0220 ER |
1 | # |
2 | # Conditional build: | |
29ab6edd | 3 | %bcond_with tests # build without tests |
b4de0220 | 4 | |
5035f594 | 5 | # TODO: |
5035f594 | 6 | # - runtime Requires if any |
915d385e | 7 | |
a06ae1fe | 8 | %define kdeframever 5.84 |
32c9b872 | 9 | %define qtver 5.14.0 |
b4de0220 | 10 | %define kfname attica |
5035f594 | 11 | Summary: A Qt library that implements the Open Collaboration Services API |
b4de0220 | 12 | Name: kf5-%{kfname} |
a06ae1fe | 13 | Version: 5.84.0 |
503a77da | 14 | Release: 1 |
5035f594 WF |
15 | License: GPL v2+/LGPL v2.1+ |
16 | Group: X11/Libraries | |
b4de0220 | 17 | Source0: http://download.kde.org/stable/frameworks/%{kdeframever}/%{kfname}-%{version}.tar.xz |
a06ae1fe | 18 | # Source0-md5: 0b03fff531601433c4edddfa8e9c63f9 |
5035f594 | 19 | URL: http://www.kde.org/ |
b4de0220 | 20 | BuildRequires: Qt5Core-devel >= %{qtver} |
b4de0220 | 21 | BuildRequires: Qt5Network-devel >= %{qtver} |
915d385e | 22 | %if %{with tests} |
32c9b872 | 23 | BuildRequires: Qt5Test-devel >= %{qtver} |
915d385e | 24 | %endif |
32c9b872 | 25 | BuildRequires: cmake >= 3.5 |
e8e4e6fe | 26 | BuildRequires: kf5-extra-cmake-modules >= %{version} |
dea768fd | 27 | BuildRequires: ninja |
f0e29796 | 28 | BuildRequires: qt5-build >= %{qtver} |
56572efe | 29 | BuildRequires: rpmbuild(macros) >= 1.736 |
58755248 WF |
30 | BuildRequires: tar >= 1:1.22 |
31 | BuildRequires: xz | |
32c9b872 JP |
32 | Requires: Qt5Core >= %{qtver} |
33 | Requires: Qt5Network >= %{qtver} | |
17b59847 | 34 | Requires: kf5-dirs |
5035f594 WF |
35 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
36 | ||
5035f594 WF |
37 | %description |
38 | Attica is a Qt library that implements the Open Collaboration Services | |
39 | API version 1.6. The REST API is defined here: | |
b4de0220 | 40 | <http://freedesktop.org/wiki/Specifications/open-collaboration-services-draft/>. |
5035f594 WF |
41 | |
42 | It grants easy access to the services such as querying information | |
43 | about persons and contents. The library is used in KNewStuff3 as | |
44 | content provider. In order to integrate with KDE's Plasma Desktop, a | |
45 | platform plugin exists in kdebase. | |
46 | ||
47 | %package devel | |
b4de0220 ER |
48 | Summary: Header files for %{kfname} development |
49 | Summary(pl.UTF-8): Pliki nagłówkowe dla programistów używających %{kfname} | |
5035f594 WF |
50 | Group: X11/Development/Libraries |
51 | Requires: %{name} = %{version}-%{release} | |
32c9b872 JP |
52 | Requires: Qt5Core-devel >= %{qtver} |
53 | Requires: Qt5Network-devel >= %{qtver} | |
5035f594 WF |
54 | |
55 | %description devel | |
b4de0220 | 56 | Header files for %{kfname} development. |
5035f594 WF |
57 | |
58 | %description devel -l pl.UTF-8 | |
b4de0220 | 59 | Pliki nagłówkowe dla programistów używających %{kfname}. |
5035f594 WF |
60 | |
61 | %prep | |
b4de0220 | 62 | %setup -q -n %{kfname}-%{version} |
5035f594 WF |
63 | |
64 | %build | |
65 | install -d build | |
66 | cd build | |
dea768fd | 67 | %cmake -G Ninja \ |
915d385e | 68 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ |
5035f594 | 69 | .. |
dea768fd | 70 | %ninja_build |
5035f594 | 71 | |
dea768fd | 72 | %{?with_tests:%ninja_build test} |
915d385e | 73 | |
5035f594 WF |
74 | %install |
75 | rm -rf $RPM_BUILD_ROOT | |
dea768fd | 76 | %ninja_install -C build |
5035f594 WF |
77 | |
78 | %clean | |
79 | rm -rf $RPM_BUILD_ROOT | |
80 | ||
b4de0220 ER |
81 | %post -p /sbin/ldconfig |
82 | %postun -p /sbin/ldconfig | |
5035f594 WF |
83 | |
84 | %files | |
85 | %defattr(644,root,root,755) | |
86 | %doc AUTHORS README.md | |
915d385e | 87 | %attr(755,root,root) %{_libdir}/libKF5Attica.so.*.*.* |
db094ad6 | 88 | %ghost %{_libdir}/libKF5Attica.so.5 |
276235e2 | 89 | %{_datadir}/qlogging-categories5/attica.categories |
aa469114 | 90 | %{_datadir}/qlogging-categories5/attica.renamecategories |
5035f594 WF |
91 | |
92 | %files devel | |
93 | %defattr(644,root,root,755) | |
db094ad6 | 94 | %{_libdir}/libKF5Attica.so |
5035f594 WF |
95 | %{_includedir}/KF5/Attica |
96 | %{_includedir}/KF5/attica_version.h | |
97 | %{_libdir}/cmake/KF5Attica | |
5035f594 | 98 | %{_pkgconfigdir}/libKF5Attica.pc |
915d385e | 99 | %{_libdir}/qt5/mkspecs/modules/qt_Attica.pri |