]> git.pld-linux.org Git - packages/kf5-kwidgetsaddons.git/blame - kf5-kwidgetsaddons.spec
- updated to 5.112.0
[packages/kf5-kwidgetsaddons.git] / kf5-kwidgetsaddons.spec
CommitLineData
9ef68a43
WF
1#
2# Conditional build:
3%bcond_with tests # build with tests
47e25935 4%define kdeframever 5.112
9b4c09f5 5%define qtver 5.15.2
2382771a 6%define kfname kwidgetsaddons
938c12b8
WF
7
8Summary: Large set of desktop widgets
2382771a 9Name: kf5-%{kfname}
47e25935 10Version: 5.112.0
f3c9422b 11Release: 1
938c12b8
WF
12License: LGPL v2.1+
13Group: X11/Libraries
a1cb7c81 14Source0: https://download.kde.org/stable/frameworks/%{kdeframever}/%{kfname}-%{version}.tar.xz
47e25935 15# Source0-md5: 3ea2b36c47f8da3d224174b2493dbff3
a069a333 16Patch0: failed-tests.patch
938c12b8 17URL: http://www.kde.org/
9b4c09f5 18BuildRequires: Qt5Core-devel >= %{qtver}
2382771a 19BuildRequires: Qt5Test-devel >= %{qtver}
9b4c09f5 20BuildRequires: Qt5UiTools-devel >= %{qtver}
2382771a 21BuildRequires: Qt5Widgets-devel >= %{qtver}
9b4c09f5 22BuildRequires: cmake >= 3.16
2b8e4a0c 23BuildRequires: kf5-extra-cmake-modules >= %{version}
9fdb64b6 24BuildRequires: ninja
2382771a 25BuildRequires: qt5-linguist >= %{qtver}
04801e38 26BuildRequires: rpmbuild(macros) >= 1.736
4e91442d
ER
27BuildRequires: tar >= 1:1.22
28BuildRequires: xz
a5134952 29Requires: Qt5Widgets >= %{qtver}
3416b7c4 30Requires: kf5-dirs
938c12b8
WF
31BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32
33%define qt5dir %{_libdir}/qt5
34
35%description
36This repository contains add-on widgets and classes for applications
37that use the Qt Widgets module. If you are porting applications from
38KDE Platform 4 "kdeui" library, you will find many of its classes
39here.
40
41Provided are action classes that can be added to toolbars or menus, a
42wide range of widgets for selecting characters, fonts, colors,
43actions, dates and times, or MIME types, as well as platform-aware
44dialogs for configuration pages, message boxes, and password requests.
45
46Further widgets and classes can be found in other KDE frameworks. For
47a full list, please see
48<https://projects.kde.org/projects/frameworks/>
49
50
51%package devel
2382771a
AM
52Summary: Header files for %{kfname} development
53Summary(pl.UTF-8): Pliki nagłówkowe dla programistów używających %{kfname}
938c12b8
WF
54Group: X11/Development/Libraries
55Requires: %{name} = %{version}-%{release}
38aea8e8 56Requires: Qt5Widgets-devel >= %{qtver}
9b4c09f5 57Requires: cmake >= 3.16
938c12b8
WF
58
59%description devel
2382771a 60Header files for %{kfname} development.
938c12b8
WF
61
62%description devel -l pl.UTF-8
2382771a 63Pliki nagłówkowe dla programistów używających %{kfname}.
938c12b8
WF
64
65%prep
2382771a 66%setup -q -n %{kfname}-%{version}
da3aa334 67#%%patch0 -p1
938c12b8
WF
68
69%build
0885e0ee
WF
70%cmake -B build \
71 -G Ninja \
9ef68a43 72 %{!?with_tests:-DBUILD_TESTING=OFF} \
0885e0ee
WF
73 -DKDE_INSTALL_USE_QT_SYS_PATHS=ON
74
75%ninja_build -C build
938c12b8 76
9ef68a43 77%if %{with tests}
0885e0ee 78%ninja_build -C build test
9ef68a43
WF
79%endif
80
81
938c12b8
WF
82%install
83rm -rf $RPM_BUILD_ROOT
9fdb64b6 84%ninja_install -C build
938c12b8 85
e7f5a885 86%find_lang %{kfname}5_qt --with-qm --all-name --with-kde
938c12b8
WF
87
88%clean
89rm -rf $RPM_BUILD_ROOT
90
91%post -p /sbin/ldconfig
92%postun -p /sbin/ldconfig
93
2382771a 94%files -f %{kfname}5_qt.lang
938c12b8
WF
95%defattr(644,root,root,755)
96%doc README.md
3a708c04 97%ghost %{_libdir}/libKF5WidgetsAddons.so.5
fe0f7078 98%attr(755,root,root) %{_libdir}/libKF5WidgetsAddons.so.*.*
db93af64 99%attr(755,root,root) %{_libdir}/qt5/plugins/designer/kwidgetsaddons5widgets.so
938c12b8
WF
100%dir %{_datadir}/kf5/kcharselect
101%{_datadir}/kf5/kcharselect/kcharselect-data
08da70fc 102%{_datadir}/qlogging-categories5/kwidgetsaddons.categories
938c12b8
WF
103
104%files devel
105%defattr(644,root,root,755)
106%{_includedir}/KF5/KWidgetsAddons
938c12b8 107%{_libdir}/cmake/KF5WidgetsAddons
3a708c04 108%{_libdir}/libKF5WidgetsAddons.so
938c12b8 109%{qt5dir}/mkspecs/modules/qt_KWidgetsAddons.pri
This page took 0.470019 seconds and 4 git commands to generate.