]> git.pld-linux.org Git - packages/kf5-attica.git/blame - kf5-attica.spec
- updated to 5.115.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
1072092a 8%define kdeframever 5.115
3402e72e 9%define qtver 5.15.2
b4de0220 10%define kfname attica
5035f594 11Summary: A Qt library that implements the Open Collaboration Services API
b4de0220 12Name: kf5-%{kfname}
1072092a 13Version: 5.115.0
c48fa772 14Release: 1
5035f594
WF
15License: GPL v2+/LGPL v2.1+
16Group: X11/Libraries
c48fa772 17Source0: https://download.kde.org/stable/frameworks/%{kdeframever}/%{kfname}-%{version}.tar.xz
1072092a 18# Source0-md5: 28643b6e6d1883390ba8cc138f98e4e0
5035f594 19URL: http://www.kde.org/
c48fa772
WF
20BuildRequires: Qt5Core-devel >= %{qtver}
21BuildRequires: Qt5Network-devel >= %{qtver}
915d385e 22%if %{with tests}
c48fa772 23BuildRequires: Qt5Test-devel >= %{qtver}
915d385e 24%endif
3402e72e 25BuildRequires: cmake >= 3.16
e8e4e6fe 26BuildRequires: kf5-extra-cmake-modules >= %{version}
dea768fd 27BuildRequires: ninja
f0e29796 28BuildRequires: qt5-build >= %{qtver}
56572efe 29BuildRequires: rpmbuild(macros) >= 1.736
58755248
WF
30BuildRequires: tar >= 1:1.22
31BuildRequires: xz
c48fa772
WF
32Requires: Qt5Core >= %{qtver}
33Requires: Qt5Network >= %{qtver}
17b59847 34Requires: kf5-dirs
5035f594
WF
35BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
36
5035f594
WF
37%description
38Attica is a Qt library that implements the Open Collaboration Services
39API version 1.6. The REST API is defined here:
b4de0220 40<http://freedesktop.org/wiki/Specifications/open-collaboration-services-draft/>.
5035f594
WF
41
42It grants easy access to the services such as querying information
43about persons and contents. The library is used in KNewStuff3 as
44content provider. In order to integrate with KDE's Plasma Desktop, a
45platform plugin exists in kdebase.
46
47%package devel
b4de0220
ER
48Summary: Header files for %{kfname} development
49Summary(pl.UTF-8): Pliki nagłówkowe dla programistów używających %{kfname}
5035f594
WF
50Group: X11/Development/Libraries
51Requires: %{name} = %{version}-%{release}
c48fa772
WF
52Requires: Qt5Core-devel >= %{qtver}
53Requires: Qt5Network-devel >= %{qtver}
5035f594
WF
54
55%description devel
b4de0220 56Header files for %{kfname} development.
5035f594
WF
57
58%description devel -l pl.UTF-8
b4de0220 59Pliki 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
96953817
WF
65%cmake -B build \
66 -G Ninja \
d0125b1c 67 %{!?with_tests:-DBUILD_TESTING=OFF} \
96953817
WF
68 -DKDE_INSTALL_USE_QT_SYS_PATHS=ON
69%ninja_build -C build
5035f594 70
96953817 71%{?with_tests:%ninja_build -C build test}
915d385e 72
d0125b1c 73
5035f594
WF
74%install
75rm -rf $RPM_BUILD_ROOT
dea768fd 76%ninja_install -C build
5035f594
WF
77
78%clean
79rm -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
c48fa772
WF
87%attr(755,root,root) %{_libdir}/libKF5Attica.so.*.*.*
88%ghost %{_libdir}/libKF5Attica.so.5
89%{_datadir}/qlogging-categories5/attica.categories
90%{_datadir}/qlogging-categories5/attica.renamecategories
5035f594
WF
91
92%files devel
93%defattr(644,root,root,755)
c48fa772
WF
94%{_libdir}/libKF5Attica.so
95%{_includedir}/KF5/Attica
96%{_libdir}/cmake/KF5Attica
97%{_pkgconfigdir}/libKF5Attica.pc
98%{_libdir}/qt5/mkspecs/modules/qt_Attica.pri
This page took 0.530643 seconds and 4 git commands to generate.