]> git.pld-linux.org Git - packages/kf5-attica.git/blame - kf5-attica.spec
- Up to 5.62.0.
[packages/kf5-attica.git] / kf5-attica.spec
CommitLineData
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
276235e2 8%define kdeframever 5.62
3fc5a1ff 9%define qtver 5.9.0
b4de0220 10%define kfname attica
5035f594 11Summary: A Qt library that implements the Open Collaboration Services API
b4de0220 12Name: kf5-%{kfname}
276235e2 13Version: 5.62.0
503a77da 14Release: 1
5035f594
WF
15License: GPL v2+/LGPL v2.1+
16Group: X11/Libraries
b4de0220 17Source0: http://download.kde.org/stable/frameworks/%{kdeframever}/%{kfname}-%{version}.tar.xz
276235e2 18# Source0-md5: 516c84e8e758786b6b201164fdc5ecc2
5035f594 19URL: http://www.kde.org/
b4de0220
ER
20BuildRequires: Qt5Core-devel >= %{qtver}
21BuildRequires: Qt5Gui-devel >= %{qtver}
22BuildRequires: Qt5Network-devel >= %{qtver}
23BuildRequires: Qt5Test-devel >= %{qtver}
915d385e 24%if %{with tests}
b4de0220
ER
25BuildRequires: Qt5Gui-devel >= %{qtver}
26BuildRequires: Qt5Widgets-devel >= %{qtver}
915d385e 27%endif
5035f594 28BuildRequires: cmake >= 2.8.12
915d385e 29BuildRequires: kf5-extra-cmake-modules >= 1.4.0
dea768fd 30BuildRequires: ninja
f0e29796 31BuildRequires: qt5-build >= %{qtver}
5035f594 32BuildRequires: rpmbuild(macros) >= 1.164
58755248
WF
33BuildRequires: tar >= 1:1.22
34BuildRequires: xz
17b59847 35Requires: kf5-dirs
5035f594
WF
36BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
37
5035f594
WF
38%description
39Attica is a Qt library that implements the Open Collaboration Services
40API version 1.6. The REST API is defined here:
b4de0220 41<http://freedesktop.org/wiki/Specifications/open-collaboration-services-draft/>.
5035f594
WF
42
43It grants easy access to the services such as querying information
44about persons and contents. The library is used in KNewStuff3 as
45content provider. In order to integrate with KDE's Plasma Desktop, a
46platform plugin exists in kdebase.
47
48%package devel
b4de0220
ER
49Summary: Header files for %{kfname} development
50Summary(pl.UTF-8): Pliki nagłówkowe dla programistów używających %{kfname}
5035f594
WF
51Group: X11/Development/Libraries
52Requires: %{name} = %{version}-%{release}
53
54%description devel
b4de0220 55Header files for %{kfname} development.
5035f594
WF
56
57%description devel -l pl.UTF-8
b4de0220 58Pliki nagłówkowe dla programistów używających %{kfname}.
5035f594
WF
59
60%prep
b4de0220 61%setup -q -n %{kfname}-%{version}
5035f594
WF
62
63%build
64install -d build
65cd build
dea768fd 66%cmake -G Ninja \
915d385e 67 -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
5035f594 68 ..
dea768fd 69%ninja_build
5035f594 70
dea768fd 71%{?with_tests:%ninja_build test}
915d385e 72
5035f594
WF
73%install
74rm -rf $RPM_BUILD_ROOT
dea768fd 75%ninja_install -C build
5035f594
WF
76
77%clean
78rm -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
276235e2 88%{_datadir}/qlogging-categories5/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
This page took 0.105626 seconds and 4 git commands to generate.