]>
Commit | Line | Data |
---|---|---|
b4de0220 ER |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # build without tests | |
4 | ||
5035f594 | 5 | # TODO: |
5035f594 | 6 | # - runtime Requires if any |
915d385e | 7 | |
2ebbc1c2 | 8 | %define kdeframever 5.39 |
b4de0220 ER |
9 | %define qtver 5.3.2 |
10 | %define kfname attica | |
5035f594 | 11 | Summary: A Qt library that implements the Open Collaboration Services API |
b4de0220 | 12 | Name: kf5-%{kfname} |
2ebbc1c2 | 13 | Version: 5.39.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 |
2ebbc1c2 | 18 | # Source0-md5: b72d8db01a36deaa50ac46e221bbd469 |
5035f594 | 19 | URL: http://www.kde.org/ |
b4de0220 ER |
20 | BuildRequires: Qt5Core-devel >= %{qtver} |
21 | BuildRequires: Qt5Gui-devel >= %{qtver} | |
22 | BuildRequires: Qt5Network-devel >= %{qtver} | |
23 | BuildRequires: Qt5Test-devel >= %{qtver} | |
915d385e | 24 | %if %{with tests} |
b4de0220 ER |
25 | BuildRequires: Qt5Gui-devel >= %{qtver} |
26 | BuildRequires: Qt5Widgets-devel >= %{qtver} | |
915d385e | 27 | %endif |
5035f594 | 28 | BuildRequires: cmake >= 2.8.12 |
915d385e | 29 | BuildRequires: kf5-extra-cmake-modules >= 1.4.0 |
f0e29796 | 30 | BuildRequires: qt5-build >= %{qtver} |
5035f594 | 31 | BuildRequires: rpmbuild(macros) >= 1.164 |
58755248 WF |
32 | BuildRequires: tar >= 1:1.22 |
33 | BuildRequires: xz | |
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} | |
52 | ||
53 | %description devel | |
b4de0220 | 54 | Header files for %{kfname} development. |
5035f594 WF |
55 | |
56 | %description devel -l pl.UTF-8 | |
b4de0220 | 57 | Pliki nagłówkowe dla programistów używających %{kfname}. |
5035f594 WF |
58 | |
59 | %prep | |
b4de0220 | 60 | %setup -q -n %{kfname}-%{version} |
5035f594 WF |
61 | |
62 | %build | |
63 | install -d build | |
64 | cd build | |
65 | %cmake \ | |
915d385e | 66 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ |
5035f594 WF |
67 | .. |
68 | %{__make} | |
69 | ||
915d385e AM |
70 | %{?with_tests:%{__make} test} |
71 | ||
5035f594 WF |
72 | %install |
73 | rm -rf $RPM_BUILD_ROOT | |
b4de0220 ER |
74 | %{__make} -C build install \ |
75 | DESTDIR=$RPM_BUILD_ROOT | |
5035f594 WF |
76 | |
77 | %clean | |
78 | rm -rf $RPM_BUILD_ROOT | |
79 | ||
b4de0220 ER |
80 | %post -p /sbin/ldconfig |
81 | %postun -p /sbin/ldconfig | |
5035f594 WF |
82 | |
83 | %files | |
84 | %defattr(644,root,root,755) | |
85 | %doc AUTHORS README.md | |
915d385e | 86 | %attr(755,root,root) %{_libdir}/libKF5Attica.so.*.*.* |
b4de0220 | 87 | %attr(755,root,root) %ghost %{_libdir}/libKF5Attica.so.5 |
2ebbc1c2 | 88 | /etc/xdg/attica.categories |
5035f594 WF |
89 | |
90 | %files devel | |
91 | %defattr(644,root,root,755) | |
915d385e | 92 | %attr(755,root,root) %{_libdir}/libKF5Attica.so |
5035f594 WF |
93 | %{_includedir}/KF5/Attica |
94 | %{_includedir}/KF5/attica_version.h | |
95 | %{_libdir}/cmake/KF5Attica | |
5035f594 | 96 | %{_pkgconfigdir}/libKF5Attica.pc |
915d385e | 97 | %{_libdir}/qt5/mkspecs/modules/qt_Attica.pri |