]> git.pld-linux.org Git - packages/kf5-kwindowsystem.git/blame - kf5-kwindowsystem.spec
relup
[packages/kf5-kwindowsystem.git] / kf5-kwindowsystem.spec
CommitLineData
d44641d0
WF
1#
2# Conditional build:
3%bcond_with tests # build with tests
09b8fdc3 4%define kdeframever 5.97
5a98a766 5%define qtver 5.15.2
026eba87 6%define kfname kwindowsystem
0d1101c1
WF
7
8Summary: Access to the windowing system
026eba87 9Name: kf5-%{kfname}
09b8fdc3 10Version: 5.97.0
1f195b43 11Release: 2
0d1101c1
WF
12License: LGPL v2.1+
13Group: X11/Libraries
c1d523b1 14Source0: https://download.kde.org/stable/frameworks/%{kdeframever}/%{kfname}-%{version}.tar.xz
09b8fdc3 15# Source0-md5: 9b561803e8776cc1eda0809cb31f9dda
0d1101c1 16URL: http://www.kde.org/
5a98a766 17BuildRequires: Qt5Core-devel >= %{qtver}
026eba87
AM
18BuildRequires: Qt5Gui-devel >= %{qtver}
19BuildRequires: Qt5Test-devel >= %{qtver}
20BuildRequires: Qt5Widgets-devel >= %{qtver}
21BuildRequires: Qt5X11Extras-devel >= %{qtver}
5a98a766 22BuildRequires: cmake >= 3.16
eafe27cb 23BuildRequires: kf5-extra-cmake-modules >= %{version}
ff9f6591 24BuildRequires: libxcb-devel
ef77b2ea 25BuildRequires: ninja
0d1101c1 26BuildRequires: pkgconfig
026eba87 27BuildRequires: qt5-linguist >= %{qtver}
3dae240a 28BuildRequires: rpmbuild(macros) >= 1.736
2ab755f0 29BuildRequires: tar >= 1:1.22
ff9f6591 30BuildRequires: xcb-util-keysyms-devel
cec85429
JP
31BuildRequires: xcb-util-wm-devel
32BuildRequires: xorg-lib-libX11-devel
33BuildRequires: xorg-lib-libXfixes-devel
2ab755f0 34BuildRequires: xz
cec85429
JP
35Requires: Qt5Gui >= %{qtver}
36Requires: Qt5Widgets >= %{qtver}
37Requires: Qt5X11Extras >= %{qtver}
2779bcca 38Requires: kf5-dirs
0d1101c1
WF
39BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
40
41%define qt5dir %{_libdir}/qt5
42
43%description
44Convenience access to certain properties and features of the windowing
45system.
46
47KWindowSystem provides information about the windowing system and
48allows interaction with the windowing system. It provides an high
49level API which is windowing system independent and has platform
50specific implementations. This API is inspired by X11 and thus not all
51functionality is available on all windowing systems.
52
53In addition to the high level API, this framework also provides
54several more low level classes for interaction with the X Windowing
55System.
56
57%package devel
026eba87
AM
58Summary: Header files for %{kfname} development
59Summary(pl.UTF-8): Pliki nagłówkowe dla programistów używających %{kfname}
0d1101c1
WF
60Group: X11/Development/Libraries
61Requires: %{name} = %{version}-%{release}
cec85429 62Requires: Qt5Widgets-devel >= %{qtver}
0d1101c1
WF
63
64%description devel
026eba87 65Header files for %{kfname} development.
0d1101c1
WF
66
67%description devel -l pl.UTF-8
026eba87 68Pliki nagłówkowe dla programistów używających %{kfname}.
0d1101c1
WF
69
70%prep
026eba87 71%setup -q -n %{kfname}-%{version}
0d1101c1
WF
72
73%build
74install -d build
75cd build
ef77b2ea 76%cmake -G Ninja \
d44641d0 77 %{!?with_tests:-DBUILD_TESTING=OFF} \
026eba87 78 -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
0d1101c1 79 ../
ef77b2ea 80%ninja_build
0d1101c1 81
d44641d0
WF
82%if %{with tests}
83ctest
84%endif
85
86
0d1101c1
WF
87%install
88rm -rf $RPM_BUILD_ROOT
ef77b2ea 89%ninja_install -C build
0d1101c1 90
55b9cca2 91%find_lang %{kfname}5_qt --with-qm --all-name --with-kde
0d1101c1
WF
92
93%clean
94rm -rf $RPM_BUILD_ROOT
95
96%post -p /sbin/ldconfig
97%postun -p /sbin/ldconfig
98
026eba87 99%files -f %{kfname}5_qt.lang
0d1101c1
WF
100%defattr(644,root,root,755)
101%doc README.md
76c8e1eb 102%ghost %{_libdir}/libKF5WindowSystem.so.5
f548483f 103%attr(755,root,root) %{_libdir}/libKF5WindowSystem.so.*.*
5fa71611 104%dir %{_libdir}/qt5/plugins/kf5/kwindowsystem
5fa71611
WF
105%attr(755,root,root) %{_libdir}/qt5/plugins/kf5/kwindowsystem/KF5WindowSystemX11Plugin.so
106%{_datadir}/qlogging-categories5/kwindowsystem.renamecategories
1ba6a140 107%{_datadir}/qlogging-categories5/kwindowsystem.categories
0d1101c1
WF
108
109%files devel
110%defattr(644,root,root,755)
111%{_includedir}/KF5/KWindowSystem
0d1101c1
WF
112%{_libdir}/cmake/KF5WindowSystem
113%{_libdir}/libKF5WindowSystem.so
114%{qt5dir}/mkspecs/modules/qt_KWindowSystem.pri
This page took 0.320302 seconds and 4 git commands to generate.