3 %bcond_with tests # build without tests
6 # - runtime Requires if any
8 %define kdeframever 5.99
11 Summary: A Qt library that implements the Open Collaboration Services API
15 License: GPL v2+/LGPL v2.1+
17 Source0: https://download.kde.org/stable/frameworks/%{kdeframever}/%{kfname}-%{version}.tar.xz
18 # Source0-md5: 56e9d9ee149fa1e4ce2e4359678b6a54
19 URL: http://www.kde.org/
20 BuildRequires: Qt5Core-devel >= %{qtver}
21 BuildRequires: Qt5Network-devel >= %{qtver}
23 BuildRequires: Qt5Test-devel >= %{qtver}
25 BuildRequires: cmake >= 3.16
26 BuildRequires: kf5-extra-cmake-modules >= %{version}
28 BuildRequires: qt5-build >= %{qtver}
29 BuildRequires: rpmbuild(macros) >= 1.736
30 BuildRequires: tar >= 1:1.22
32 Requires: Qt5Core >= %{qtver}
33 Requires: Qt5Network >= %{qtver}
35 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
38 Attica is a Qt library that implements the Open Collaboration Services
39 API version 1.6. The REST API is defined here:
40 <http://freedesktop.org/wiki/Specifications/open-collaboration-services-draft/>.
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.
48 Summary: Header files for %{kfname} development
49 Summary(pl.UTF-8): Pliki nagłówkowe dla programistów używających %{kfname}
50 Group: X11/Development/Libraries
51 Requires: %{name} = %{version}-%{release}
52 Requires: Qt5Core-devel >= %{qtver}
53 Requires: Qt5Network-devel >= %{qtver}
56 Header files for %{kfname} development.
58 %description devel -l pl.UTF-8
59 Pliki nagłówkowe dla programistów używających %{kfname}.
62 %setup -q -n %{kfname}-%{version}
68 %{!?with_tests:-DBUILD_TESTING=OFF} \
69 -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
73 %{?with_tests:%ninja_build test}
77 rm -rf $RPM_BUILD_ROOT
78 %ninja_install -C build
81 rm -rf $RPM_BUILD_ROOT
83 %post -p /sbin/ldconfig
84 %postun -p /sbin/ldconfig
87 %defattr(644,root,root,755)
88 %doc AUTHORS README.md
89 %attr(755,root,root) %{_libdir}/libKF5Attica.so.*.*.*
90 %ghost %{_libdir}/libKF5Attica.so.5
91 %{_datadir}/qlogging-categories5/attica.categories
92 %{_datadir}/qlogging-categories5/attica.renamecategories
95 %defattr(644,root,root,755)
96 %{_libdir}/libKF5Attica.so
97 %{_includedir}/KF5/Attica
98 %{_libdir}/cmake/KF5Attica
99 %{_pkgconfigdir}/libKF5Attica.pc
100 %{_libdir}/qt5/mkspecs/modules/qt_Attica.pri