]> git.pld-linux.org Git - packages/kp5-discover.git/blame - kp5-discover.spec
rebuild against QT 5.15.10
[packages/kp5-discover.git] / kp5-discover.spec
CommitLineData
c2a1a095
WF
1#
2# Conditional build:
3%bcond_with tests # build with tests
e6faa2a7 4%define kdeplasmaver 5.27.5
244805b2 5%define qtver 5.15.2
e3a47781
WF
6%define kpname discover
7Summary: discover
8Name: kp5-%{kpname}
e6faa2a7 9Version: 5.27.5
e1f6aa0b 10Release: 2
e3a47781
WF
11License: GPL v2+/LGPL v2.1+
12Group: X11/Libraries
cf214597 13Source0: https://download.kde.org/stable/plasma/%{kdeplasmaver}/%{kpname}-%{version}.tar.xz
e6faa2a7 14# Source0-md5: 3f192d5ae11e72dedee2686ca1fd5133
e3a47781 15URL: http://www.kde.org/
93ebfd38 16BuildRequires: AppStream-qt-devel >= 0.15.3
e3a47781
WF
17BuildRequires: Qt5Concurrent-devel >= %{qtver}
18BuildRequires: Qt5Core-devel >= %{qtver}
19BuildRequires: Qt5DBus-devel >= %{qtver}
20BuildRequires: Qt5Gui-devel >= %{qtver}
21BuildRequires: Qt5Network-devel >= %{qtver}
22BuildRequires: Qt5Qml-devel >= %{qtver}
23BuildRequires: Qt5Quick-devel >= %{qtver}
24BuildRequires: Qt5Svg-devel >= %{qtver}
25BuildRequires: Qt5Test-devel >= %{qtver}
e21bc5a7 26BuildRequires: Qt5WebView-devel >= %{qtver}
e3a47781
WF
27BuildRequires: Qt5Widgets-devel >= %{qtver}
28BuildRequires: Qt5Xml-devel >= %{qtver}
29BuildRequires: cmake >= 2.8.12
b202b5f5
WF
30BuildRequires: flatpak-devel
31BuildRequires: fwupd-devel
e3a47781
WF
32BuildRequires: kf5-extra-cmake-modules >= 1.4.0
33BuildRequires: kf5-karchive-devel
34BuildRequires: kf5-kconfig-devel
35BuildRequires: kf5-kconfigwidgets-devel
36BuildRequires: kf5-kcoreaddons-devel
5d6b0b18 37BuildRequires: kf5-kcrash-devel
e3a47781
WF
38BuildRequires: kf5-kdbusaddons-devel
39BuildRequires: kf5-kdeclarative-devel
40BuildRequires: kf5-ki18n-devel
41BuildRequires: kf5-kiconthemes-devel
b19536be 42BuildRequires: kf5-kidletime-devel
e3a47781 43BuildRequires: kf5-kio-devel
b19536be 44BuildRequires: kf5-kitemmodels-devel
e3a47781
WF
45BuildRequires: kf5-kitemviews-devel
46BuildRequires: kf5-knewstuff-devel
47BuildRequires: kf5-knotifications-devel
48BuildRequires: kf5-ktextwidgets-devel
49BuildRequires: kf5-kwallet-devel
50BuildRequires: kf5-kwidgetsaddons-devel
3bda6c82 51BuildRequires: kf5-purpose-devel
e3a47781 52BuildRequires: kf5-solid-devel
0fe958f4 53BuildRequires: libmarkdown-devel
6c51aff6 54BuildRequires: ninja
e3a47781
WF
55BuildRequires: qt5-build >= %{qtver}
56BuildRequires: rpmbuild(macros) >= 1.164
57BuildRequires: tar >= 1:1.22
58BuildRequires: xz
cf214597
WF
59Suggests: flatpak
60Suggests: fwupd
e3a47781
WF
61BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
62
63%description
64discover
65
66%prep
67%setup -q -n %{kpname}-%{version}
68
69%build
70install -d build
71cd build
6c51aff6 72%cmake -G Ninja \
c2a1a095 73 %{!?with_tests:-DBUILD_TESTING=OFF} \
e3a47781 74 -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
16072031 75 -DHTML_INSTALL_DIR=%{_kdedocdir} \
e3a47781 76 ..
6c51aff6 77%ninja_build
e3a47781 78
c2a1a095
WF
79%if %{with tests}
80ctest
81%endif
82
e3a47781
WF
83%install
84rm -rf $RPM_BUILD_ROOT
6c51aff6 85%ninja_install -C build
e3a47781 86
34a17683
KM
87# not supported by glibc yet
88%{__rm} -r $RPM_BUILD_ROOT%{_localedir}/ie
89
e3a47781
WF
90%find_lang discover --all-name --with-kde
91
92%clean
93rm -rf $RPM_BUILD_ROOT
94
e3a47781
WF
95%files -f discover.lang
96%defattr(644,root,root,755)
10542fef 97%dir %{_libdir}/qt5/plugins/discover
975ad4fd 98%attr(755,root,root) %{_libdir}/qt5/plugins/discover/fwupd-backend.so
e3a47781 99%{_desktopdir}/org.kde.discover.desktop
10542fef
WF
100%attr(755,root,root) %{_bindir}/plasma-discover
101%{_libdir}/plasma-discover
102%{_desktopdir}/org.kde.discover.urlhandler.desktop
103%{_iconsdir}/hicolor/128x128/apps/plasmadiscover.png
104%{_iconsdir}/hicolor/16x16/apps/plasmadiscover.png
105%{_iconsdir}/hicolor/22x22/apps/plasmadiscover.png
106%{_iconsdir}/hicolor/32x32/apps/plasmadiscover.png
107%{_iconsdir}/hicolor/48x48/apps/plasmadiscover.png
5b2e8974 108%{_iconsdir}/hicolor/scalable/apps/plasmadiscover.svg*
10542fef
WF
109%dir %{_datadir}/kxmlgui5/plasmadiscover
110%{_datadir}/kxmlgui5/plasmadiscover/plasmadiscoverui.rc
111%{_datadir}/metainfo/org.kde.discover.appdata.xml
16072031
WF
112/etc/xdg/autostart/org.kde.discover.notifier.desktop
113%attr(755,root,root) %{_libexecdir}/DiscoverNotifier
114%{_desktopdir}/org.kde.discover.notifier.desktop
115%{_datadir}/knotifications5/discoverabstractnotifier.notifyrc
116%{_datadir}/qlogging-categories5/discover.categories
117%attr(755,root,root) %{_bindir}/plasma-discover-update
16072031
WF
118%{_desktopdir}/org.kde.discover.snap.desktop
119%dir %{_datadir}/kpackage/kcms/kcm_updates
120%dir %{_datadir}/kpackage/kcms/kcm_updates/contents
121%dir %{_datadir}/kpackage/kcms/kcm_updates/contents/ui
122%{_datadir}/kpackage/kcms/kcm_updates/contents/ui/main.qml
2ab76c91 123%{_libdir}/qt5/plugins/plasma/kcms/systemsettings/kcm_updates.so
cf214597 124%{_desktopdir}/kcm_updates.desktop
34a17683 125%dir %{_libdir}/qt5/plugins/discover-notifier
93ebfd38
WF
126%{_libdir}/qt5/plugins/discover-notifier/FlatpakNotifier.so
127%{_libdir}/qt5/plugins/discover/flatpak-backend.so
128%{_libdir}/qt5/plugins/discover/kns-backend.so
129%{_desktopdir}/org.kde.discover-flatpak.desktop
130%{_iconsdir}/hicolor/scalable/apps/flatpak-discover.svg
34a17683
KM
131%dir %{_datadir}/libdiscover
132%dir %{_datadir}/libdiscover/categories
93ebfd38
WF
133%{_datadir}/libdiscover/categories/flatpak-backend-categories.xml
134%{_datadir}/metainfo/org.kde.discover.flatpak.appdata.xml
This page took 0.598348 seconds and 4 git commands to generate.