b3b28de1fa5518a092e13b9d579efd3bb100d36e
[packages/kf5-kcmutils.git] / kf5-kcmutils.spec
1 %define         kdeframever     5.24
2 %define         qtver           5.3.2
3 %define         kfname          kcmutils
4
5 Summary:        Utilities for KDE System Settings modules
6 Name:           kf5-%{kfname}
7 Version:        5.24.0
8 Release:        1
9 License:        LGPL v2.1+
10 Group:          X11/Libraries
11 Source0:        http://download.kde.org/stable/frameworks/%{kdeframever}/%{kfname}-%{version}.tar.xz
12 # Source0-md5:  0b69990be71134efdce1f818ecf82826
13 URL:            http://www.kde.org/
14 BuildRequires:  Qt5Core-devel >= %{qtver}
15 BuildRequires:  Qt5DBus-devel >= %{qtver}
16 BuildRequires:  Qt5Gui-devel >= %{qtver}
17 BuildRequires:  Qt5Test-devel >= %{qtver}
18 BuildRequires:  Qt5Widgets-devel >= %{qtver}
19 BuildRequires:  Qt5Xml-devel >= %{qtver}
20 BuildRequires:  cmake >= 2.8.12
21 BuildRequires:  gettext-devel
22 BuildRequires:  kf5-attica-devel >= %{version}
23 BuildRequires:  kf5-extra-cmake-modules >= 1.4.0
24 BuildRequires:  kf5-kauth-devel >= %{version}
25 BuildRequires:  kf5-kcodecs-devel >= %{version}
26 BuildRequires:  kf5-kcompletion-devel >= %{version}
27 BuildRequires:  kf5-kconfig-devel >= %{version}
28 BuildRequires:  kf5-kconfigwidgets-devel >= %{version}
29 BuildRequires:  kf5-kcoreaddons-devel >= %{version}
30 BuildRequires:  kf5-kdbusaddons-devel >= %{version}
31 BuildRequires:  kf5-kdeclarative-devel >= %{version}
32 BuildRequires:  kf5-kglobalaccel-devel >= %{version}
33 BuildRequires:  kf5-kguiaddons-devel >= %{version}
34 BuildRequires:  kf5-ki18n-devel >= %{version}
35 BuildRequires:  kf5-kiconthemes-devel >= %{version}
36 BuildRequires:  kf5-kitemviews-devel >= %{version}
37 BuildRequires:  kf5-kservice-devel >= %{version}
38 BuildRequires:  kf5-ktextwidgets-devel >= %{version}
39 BuildRequires:  kf5-kwidgetsaddons-devel >= %{version}
40 BuildRequires:  kf5-kwindowsystem-devel >= %{version}
41 BuildRequires:  kf5-kxmlgui-devel >= %{version}
42 BuildRequires:  kf5-sonnet-devel >= %{version}
43 BuildRequires:  rpmbuild(macros) >= 1.164
44 BuildRequires:  tar >= 1:1.22
45 BuildRequires:  xz
46 Requires:       kf5-dirs
47 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
48
49 %define         qt5dir          %{_libdir}/qt5
50
51 %description
52 KCMUtils provides various classes to work with KCModules. KCModules
53 can be created with the KConfigWidgets framework.
54
55 %package devel
56 Summary:        Header files for %{kfname} development
57 Summary(pl.UTF-8):      Pliki nagłówkowe dla programistów używających %{kfname}
58 Group:          X11/Development/Libraries
59 Requires:       %{name} = %{version}-%{release}
60
61 %description devel
62 Header files for %{kfname} development.
63
64 %description devel -l pl.UTF-8
65 Pliki nagłówkowe dla programistów używających %{kfname}.
66
67 %prep
68 %setup -q -n %{kfname}-%{version}
69
70 %build
71 install -d build
72 cd build
73 %cmake \
74         -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
75         ../
76 %{__make}
77
78 %install
79 rm -rf $RPM_BUILD_ROOT
80
81 %{__make} -C build/ install \
82         DESTDIR=$RPM_BUILD_ROOT
83
84 %find_lang %{kfname}5
85
86 %clean
87 rm -rf $RPM_BUILD_ROOT
88
89 %post -p /sbin/ldconfig
90 %postun -p /sbin/ldconfig
91
92 %files -f %{kfname}5.lang
93 %defattr(644,root,root,755)
94 %doc README.md
95 %attr(755,root,root) %ghost %{_libdir}/libKF5KCMUtils.so.5
96 %attr(755,root,root) %{_libdir}/libKF5KCMUtils.so.*.*
97 %{_datadir}/kservicetypes5/kcmodule.desktop
98 %{_datadir}/kservicetypes5/kcmoduleinit.desktop
99
100 %files devel
101 %defattr(644,root,root,755)
102 %{_includedir}/KF5/KCMUtils
103 %{_includedir}/KF5/kcmutils_version.h
104 %{_libdir}/cmake/KF5KCMUtils
105 %attr(755,root,root) %{_libdir}/libKF5KCMUtils.so
106 %{qt5dir}/mkspecs/modules/qt_KCMUtils.pri
This page took 0.058118 seconds and 2 git commands to generate.