]> git.pld-linux.org Git - packages/kf5-kcoreaddons.git/blame - kf5-kcoreaddons.spec
- updated to 5.105.0
[packages/kf5-kcoreaddons.git] / kf5-kcoreaddons.spec
CommitLineData
33f59a00
ER
1#
2# Conditional build:
519e4d44 3%bcond_with tests # build with tests
33f59a00 4
5ac406ba 5# TODO:
5ac406ba 6# - runtime Requires if any
3c1e7cb9 7
bb3a30cc 8%define kdeframever 5.105
e8c6165d 9%define qtver 5.15.2
33f59a00 10%define kfname kcoreaddons
5ac406ba 11Summary: Utilities for core application functionality and accessing the OS
33f59a00 12Name: kf5-%{kfname}
bb3a30cc
WF
13Version: 5.105.0
14Release: 1
5ac406ba
WF
15License: GPL v2+/LGPL v2.1+
16Group: X11/Libraries
6f24f9f8 17Source0: https://download.kde.org/stable/frameworks/%{kdeframever}/%{kfname}-%{version}.tar.xz
bb3a30cc 18# Source0-md5: 1d37ff9402afa62c9b5bd630c22246e7
ccdad5cc 19Patch0: flaky-tests.patch
5ac406ba 20URL: http://www.kde.org/
33f59a00 21BuildRequires: Qt5Core-devel >= %{qtver}
5ced6b28 22%if %{with tests}
33f59a00 23BuildRequires: Qt5Test-devel >= %{qtver}
5ced6b28
JP
24BuildRequires: Qt5Widgets-devel >= %{qtver}
25%endif
e8c6165d 26BuildRequires: cmake >= 3.16
5ced6b28 27BuildRequires: kf5-extra-cmake-modules >= %{version}
660a4795 28BuildRequires: ninja
33f59a00 29BuildRequires: qt5-linguist >= %{qtver}
4104425e 30BuildRequires: rpmbuild(macros) >= 1.736
5ced6b28 31BuildRequires: shared-mime-info >= 1.3
ddbe1ed5
ER
32BuildRequires: tar >= 1:1.22
33BuildRequires: xz
5ced6b28 34Requires: Qt5Core >= %{qtver}
3dc0910e 35Requires: kf5-dirs
5ac406ba
WF
36BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
37
38%description
39KCoreAddons provides classes built on top of QtCore to perform various
40tasks such as manipulating mime types, autosaving files, creating
41backup files, generating random sequences, performing text
42manipulations such as macro replacement, accessing user information
43and many more.
44
45%package devel
33f59a00
ER
46Summary: Header files for %{kfname} development
47Summary(pl.UTF-8): Pliki nagłówkowe dla programistów używających %{kfname}
5ac406ba
WF
48Group: X11/Development/Libraries
49Requires: %{name} = %{version}-%{release}
8b60ebee 50Requires: Qt5Core >= %{qtver}
e8c6165d 51Requires: cmake >= 3.16
5ac406ba
WF
52
53%description devel
33f59a00 54Header files for %{kfname} development.
5ac406ba
WF
55
56%description devel -l pl.UTF-8
33f59a00 57Pliki nagłówkowe dla programistów używających %{kfname}.
5ac406ba
WF
58
59%prep
33f59a00 60%setup -q -n %{kfname}-%{version}
3dc0910e 61#%patch0 -p1
5ac406ba
WF
62
63%build
64install -d build
65cd build
660a4795 66%cmake -G Ninja \
e7f0c914 67 %{!?with_tests:-DBUILD_TESTING=OFF} \
3c1e7cb9 68 -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
5ac406ba 69 ../
660a4795 70%ninja_build
5ac406ba 71
660a4795 72%{?with_tests:%ninja_build test}
3c1e7cb9 73
e7f0c914 74
5ac406ba
WF
75%install
76rm -rf $RPM_BUILD_ROOT
660a4795 77%ninja_install -C build
5ac406ba 78
cfd4d676 79# not supported by glibc yet
d5ed4ff5 80%{__rm} -r $RPM_BUILD_ROOT%{_localedir}/{ie,tok}
cfd4d676 81
d768fe92 82%find_lang %{kfname}5_qt --with-qm --all-name --with-kde
5ac406ba
WF
83
84%clean
85rm -rf $RPM_BUILD_ROOT
86
33f59a00
ER
87%post -p /sbin/ldconfig
88%postun -p /sbin/ldconfig
5ac406ba 89
33f59a00 90%files -f %{kfname}5_qt.lang
5ac406ba
WF
91%defattr(644,root,root,755)
92%doc README.md
93%{_datadir}/mime/packages/kde5.xml
3c1e7cb9 94%attr(755,root,root) %{_libdir}/libKF5CoreAddons.so.*.*.*
3772000c 95%ghost %{_libdir}/libKF5CoreAddons.so.5
08833e86
WF
96##%dir %{_libdir}/qt5/plugins/namespace
97##%attr(755,root,root) %{_libdir}/qt5/plugins/namespace/jsonplugin_cmake_macro.so
98##%attr(755,root,root) %{_libdir}/qt5/plugins/namespace/pluginwithoutmetadata.so
a61cd107 99%{_datadir}/qlogging-categories5/kcoreaddons.categories
7772a76b
WF
100%dir %{_datadir}/kf5/licenses
101%{_datadir}/kf5/licenses/ARTISTIC
102%{_datadir}/kf5/licenses/BSD
103%{_datadir}/kf5/licenses/GPL_V2
104%{_datadir}/kf5/licenses/GPL_V3
105%{_datadir}/kf5/licenses/LGPL_V2
106%{_datadir}/kf5/licenses/LGPL_V21
107%{_datadir}/kf5/licenses/LGPL_V3
108%{_datadir}/kf5/licenses/QPL_V1.0
257459df 109%{_datadir}/qlogging-categories5/kcoreaddons.renamecategories
5ac406ba
WF
110
111%files devel
112%defattr(644,root,root,755)
3c1e7cb9 113%attr(755,root,root) %{_bindir}/desktoptojson
5ac406ba 114%{_includedir}/KF5/KCoreAddons
5ac406ba 115%{_libdir}/cmake/KF5CoreAddons
3772000c 116%{_libdir}/libKF5CoreAddons.so
3c1e7cb9 117%{_libdir}/qt5/mkspecs/modules/qt_KCoreAddons.pri
This page took 0.96814 seconds and 4 git commands to generate.