]> git.pld-linux.org Git - packages/kf5-kcmutils.git/blob - kf5-kcmutils.spec
relup
[packages/kf5-kcmutils.git] / kf5-kcmutils.spec
1 #
2 # Conditional build:
3 %bcond_with     tests           # build with tests
4 %define         kdeframever     5.108
5 %define         qtver           5.15.2
6 %define         kfname          kcmutils
7
8 Summary:        Utilities for KDE System Settings modules
9 Name:           kf5-%{kfname}
10 Version:        5.108.0
11 Release:        2
12 License:        LGPL v2.1+
13 Group:          X11/Libraries
14 Source0:        https://download.kde.org/stable/frameworks/%{kdeframever}/%{kfname}-%{version}.tar.xz
15 # Source0-md5:  21d41cb4c637264ad1c12711aec89ca6
16 URL:            http://www.kde.org/
17 BuildRequires:  Qt5Core-devel >= %{qtver}
18 BuildRequires:  Qt5DBus-devel >= %{qtver}
19 BuildRequires:  Qt5Gui-devel >= %{qtver}
20 BuildRequires:  Qt5Test-devel >= %{qtver}
21 BuildRequires:  Qt5Widgets-devel >= %{qtver}
22 BuildRequires:  Qt5Xml-devel >= %{qtver}
23 BuildRequires:  cmake >= 2.8.12
24 BuildRequires:  gettext-devel
25 BuildRequires:  kf5-attica-devel >= %{version}
26 BuildRequires:  kf5-extra-cmake-modules >= %{version}
27 BuildRequires:  kf5-kauth-devel >= %{version}
28 BuildRequires:  kf5-kcodecs-devel >= %{version}
29 BuildRequires:  kf5-kcompletion-devel >= %{version}
30 BuildRequires:  kf5-kconfig-devel >= %{version}
31 BuildRequires:  kf5-kconfigwidgets-devel >= %{version}
32 BuildRequires:  kf5-kcoreaddons-devel >= %{version}
33 BuildRequires:  kf5-kdbusaddons-devel >= %{version}
34 BuildRequires:  kf5-kdeclarative-devel >= %{version}
35 BuildRequires:  kf5-kglobalaccel-devel >= %{version}
36 BuildRequires:  kf5-kguiaddons-devel >= %{version}
37 BuildRequires:  kf5-ki18n-devel >= %{version}
38 BuildRequires:  kf5-kiconthemes-devel >= %{version}
39 BuildRequires:  kf5-kitemviews-devel >= %{version}
40 BuildRequires:  kf5-kservice-devel >= %{version}
41 BuildRequires:  kf5-ktextwidgets-devel >= %{version}
42 BuildRequires:  kf5-kwidgetsaddons-devel >= %{version}
43 BuildRequires:  kf5-kwindowsystem-devel >= %{version}
44 BuildRequires:  kf5-kxmlgui-devel >= %{version}
45 BuildRequires:  kf5-sonnet-devel >= %{version}
46 BuildRequires:  ninja
47 BuildRequires:  rpmbuild(macros) >= 1.164
48 BuildRequires:  tar >= 1:1.22
49 BuildRequires:  xz
50 Requires:       kf5-dirs
51 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
52
53 %define         qt5dir          %{_libdir}/qt5
54
55 %description
56 KCMUtils provides various classes to work with KCModules. KCModules
57 can be created with the KConfigWidgets framework.
58
59 %package devel
60 Summary:        Header files for %{kfname} development
61 Summary(pl.UTF-8):      Pliki nagłówkowe dla programistów używających %{kfname}
62 Group:          X11/Development/Libraries
63 Requires:       %{name} = %{version}-%{release}
64 Requires:       kf5-kconfigwidgets-devel >= %{version}
65
66 %description devel
67 Header files for %{kfname} development.
68
69 %description devel -l pl.UTF-8
70 Pliki nagłówkowe dla programistów używających %{kfname}.
71
72 %prep
73 %setup -q -n %{kfname}-%{version}
74
75 %build
76 install -d build
77 cd build
78 %cmake -G Ninja \
79         %{!?with_tests:-DBUILD_TESTING=OFF} \
80         -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
81         ../
82 %ninja_build
83
84 %if %{with tests}
85 ctest
86 %endif
87
88
89 %install
90 rm -rf $RPM_BUILD_ROOT
91 %ninja_install -C build
92
93 %find_lang %{kfname}5
94
95 %clean
96 rm -rf $RPM_BUILD_ROOT
97
98 %post -p /sbin/ldconfig
99 %postun -p /sbin/ldconfig
100
101 %files -f %{kfname}5.lang
102 %defattr(644,root,root,755)
103 %doc README.md
104 %ghost %{_libdir}/libKF5KCMUtils.so.5
105 %attr(755,root,root) %{_libdir}/libKF5KCMUtils.so.*.*
106 %ghost %{_libdir}/libKF5KCMUtilsCore.so.5
107 %attr(755,root,root) %{_libdir}/libKF5KCMUtilsCore.so.*.*
108 %{_datadir}/kservicetypes5/kcmodule.desktop
109 %{_datadir}/kservicetypes5/kcmoduleinit.desktop
110 %{_datadir}/qlogging-categories5/kcmutils.categories
111 %dir %{_libdir}/qt5/qml/org/kde/kcmutils
112 %dir %{_libdir}/qt5/qml/org/kde/kcmutils/components
113 %{_libdir}/qt5/qml/org/kde/kcmutils/components/KPluginDelegate.qml
114 %{_libdir}/qt5/qml/org/kde/kcmutils/components/KPluginSelector.qml
115 %dir %{_libdir}/qt5/qml/org/kde/kcmutils/components/private
116 %{_libdir}/qt5/qml/org/kde/kcmutils/components/private/AboutPlugin.qml
117 %attr(755,root,root) %{_libdir}/qt5/qml/org/kde/kcmutils/libkcmutilsqmlplugin.so
118 %{_libdir}/qt5/qml/org/kde/kcmutils/qmldir
119 %attr(755,root,root) %{_prefix}/libexec/kf5/kcmdesktopfilegenerator
120
121 %files devel
122 %defattr(644,root,root,755)
123 %{_includedir}/KF5/KCMUtils
124 %{_libdir}/cmake/KF5KCMUtils
125 %{_libdir}/libKF5KCMUtils.so
126 %{qt5dir}/mkspecs/modules/qt_KCMUtils.pri
127 %{_includedir}/KF5/KCMUtilsCore
128 %{_libdir}/libKF5KCMUtilsCore.so
129
This page took 0.109811 seconds and 4 git commands to generate.