]>
Commit | Line | Data |
---|---|---|
8c551d10 WF |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with tests # build with tests | |
5611564e | 4 | %define kdeappsver 22.08.0 |
35e20215 WF |
5 | %define kframever 5.94.0 |
6 | %define qtver 5.15.2 | |
f240b913 WF |
7 | %define kaname knotes |
8 | Summary: knotes | |
9 | Name: ka5-%{kaname} | |
5611564e | 10 | Version: 22.08.0 |
142c13dd | 11 | Release: 2 |
f240b913 WF |
12 | License: GPL v2+/LGPL v2.1+ |
13 | Group: X11/Applications/Games | |
e71393a2 | 14 | Source0: https://download.kde.org/stable/release-service/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz |
5611564e | 15 | # Source0-md5: 69ce3df36d10024daefd01a794593d83 |
f240b913 WF |
16 | URL: http://www.kde.org/ |
17 | BuildRequires: Qt5Core-devel >= %{qtver} | |
18 | BuildRequires: Qt5DBus-devel | |
19 | BuildRequires: Qt5Gui-devel | |
20 | BuildRequires: Qt5Network-devel | |
21 | BuildRequires: Qt5PrintSupport-devel | |
22 | BuildRequires: Qt5Test-devel | |
23 | BuildRequires: Qt5Widgets-devel | |
24 | BuildRequires: Qt5Xml-devel | |
25 | BuildRequires: cmake >= 2.8.12 | |
26 | BuildRequires: gettext-devel | |
27 | BuildRequires: grantlee-qt5-devel >= 5.1 | |
d1bf7c26 WF |
28 | BuildRequires: ka5-akonadi-devel >= %{kdeappsver} |
29 | BuildRequires: ka5-akonadi-notes-devel >= %{kdeappsver} | |
30 | BuildRequires: ka5-akonadi-search-devel >= %{kdeappsver} | |
31 | BuildRequires: ka5-kcalutils-devel >= %{kdeappsver} | |
32 | BuildRequires: ka5-kmime-devel >= %{kdeappsver} | |
33 | BuildRequires: ka5-kontactinterface-devel >= %{kdeappsver} | |
34 | BuildRequires: ka5-kpimtextedit-devel >= %{kdeappsver} | |
35 | BuildRequires: ka5-libkdepim-devel >= %{kdeappsver} | |
36 | BuildRequires: ka5-pimcommon-devel >= %{kdeappsver} | |
e062fefd WF |
37 | BuildRequires: kf5-extra-cmake-modules >= %{kframever} |
38 | BuildRequires: kf5-kcmutils-devel >= %{kframever} | |
39 | BuildRequires: kf5-kcompletion-devel >= %{kframever} | |
40 | BuildRequires: kf5-kconfig-devel >= %{kframever} | |
41 | BuildRequires: kf5-kconfigwidgets-devel >= %{kframever} | |
42 | BuildRequires: kf5-kcoreaddons-devel >= %{kframever} | |
43 | BuildRequires: kf5-kcrash-devel >= %{kframever} | |
44 | BuildRequires: kf5-kdbusaddons-devel >= %{kframever} | |
45 | BuildRequires: kf5-kdelibs4support-devel >= %{kframever} | |
46 | BuildRequires: kf5-kdnssd-devel >= %{kframever} | |
47 | BuildRequires: kf5-kdoctools-devel >= %{kframever} | |
48 | BuildRequires: kf5-kglobalaccel-devel >= %{kframever} | |
49 | BuildRequires: kf5-kiconthemes-devel >= %{kframever} | |
50 | BuildRequires: kf5-kitemmodels-devel >= %{kframever} | |
51 | BuildRequires: kf5-kitemviews-devel >= %{kframever} | |
52 | BuildRequires: kf5-knewstuff-devel >= %{kframever} | |
53 | BuildRequires: kf5-knotifications-devel >= %{kframever} | |
54 | BuildRequires: kf5-knotifyconfig-devel >= %{kframever} | |
55 | BuildRequires: kf5-kparts-devel >= %{kframever} | |
56 | BuildRequires: kf5-ktextwidgets-devel >= %{kframever} | |
57 | BuildRequires: kf5-kwidgetsaddons-devel >= %{kframever} | |
58 | BuildRequires: kf5-kwindowsystem-devel >= %{kframever} | |
59 | BuildRequires: kf5-kxmlgui-devel >= %{kframever} | |
f240b913 | 60 | BuildRequires: libxslt-progs |
d1bf7c26 | 61 | BuildRequires: ninja |
f240b913 WF |
62 | BuildRequires: qt5-build >= %{qtver} |
63 | BuildRequires: rpmbuild(macros) >= 1.164 | |
64 | BuildRequires: shared-mime-info | |
65 | BuildRequires: tar >= 1:1.22 | |
66 | BuildRequires: xz | |
67 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
68 | ||
69 | %description | |
70 | KNotes is a program that lets you write the computer equivalent of | |
71 | sticky notes. The notes are saved automatically when you exit the | |
72 | program, and they display when you open the program. Features. Write | |
73 | notes in your choice of font and background color. | |
74 | ||
64aa60cb WF |
75 | %description -l pl.UTF-8 |
76 | KNotes jest programem pozwalającym pisać na komputerze notatki, | |
77 | odpowiedniki samoprzylepnych karteczek. Notatki są zapisywane | |
78 | automatycznie przy wyjściu z programu i wyświetlane przy otwieraniu | |
5611564e WF |
79 | programu. Właściwości: pisz notatki wybraną czcionką i kolorem |
80 | tła. | |
64aa60cb | 81 | |
f240b913 WF |
82 | %prep |
83 | %setup -q -n %{kaname}-%{version} | |
84 | ||
85 | %build | |
86 | install -d build | |
87 | cd build | |
88 | %cmake \ | |
d1bf7c26 | 89 | -G Ninja \ |
8c551d10 | 90 | %{!?with_tests:-DBUILD_TESTING=OFF} \ |
e062fefd | 91 | -DHTML_INSTALL_DIR=%{_kdedocdir} \ |
f240b913 WF |
92 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ |
93 | .. | |
d1bf7c26 | 94 | %ninja_build |
f240b913 | 95 | |
8c551d10 WF |
96 | %if %{with tests} |
97 | ctest | |
98 | %endif | |
99 | ||
100 | ||
f240b913 WF |
101 | %install |
102 | rm -rf $RPM_BUILD_ROOT | |
d1bf7c26 | 103 | %ninja_install -C build |
f240b913 WF |
104 | |
105 | %find_lang %{kaname} --all-name --with-kde | |
106 | ||
107 | %clean | |
108 | rm -rf $RPM_BUILD_ROOT | |
109 | ||
01b531d2 WF |
110 | %post -p /sbin/ldconfig |
111 | %postun -p /sbin/ldconfig | |
112 | ||
f240b913 WF |
113 | %files -f %{kaname}.lang |
114 | %defattr(644,root,root,755) | |
f240b913 WF |
115 | %attr(755,root,root) %{_bindir}/akonadi_notes_agent |
116 | %attr(755,root,root) %{_bindir}/knotes | |
4fdc7b0c | 117 | %ghost %{_libdir}/libknotesprivate.so.5 |
f240b913 | 118 | %attr(755,root,root) %{_libdir}/libknotesprivate.so.5.*.* |
4fdc7b0c | 119 | %ghost %{_libdir}/libnotesharedprivate.so.5 |
f240b913 | 120 | %attr(755,root,root) %{_libdir}/libnotesharedprivate.so.5.*.* |
f240b913 WF |
121 | %{_datadir}/akonadi/agents/notesagent.desktop |
122 | %{_desktopdir}/org.kde.knotes.desktop | |
123 | %{_datadir}/config.kcfg/knotesglobalconfig.kcfg | |
124 | %{_datadir}/config.kcfg/notesagentsettings.kcfg | |
125 | %{_datadir}/dbus-1/interfaces/org.kde.KNotes.xml | |
126 | %{_datadir}/dbus-1/interfaces/org.kde.kontact.KNotes.xml | |
127 | %{_iconsdir}/hicolor/128x128/apps/knotes.png | |
128 | %{_iconsdir}/hicolor/16x16/actions/knotes_alarm.png | |
129 | %{_iconsdir}/hicolor/16x16/actions/knotes_close.png | |
130 | %{_iconsdir}/hicolor/16x16/actions/knotes_date.png | |
131 | %{_iconsdir}/hicolor/16x16/actions/knotes_delete.png | |
132 | %{_iconsdir}/hicolor/16x16/apps/knotes.png | |
133 | %{_iconsdir}/hicolor/22x22/apps/knotes.png | |
134 | %{_iconsdir}/hicolor/32x32/apps/knotes.png | |
135 | %{_iconsdir}/hicolor/48x48/apps/knotes.png | |
136 | %{_iconsdir}/hicolor/64x64/apps/knotes.png | |
137 | %{_iconsdir}/hicolor/scalable/apps/knotes.svg | |
f240b913 WF |
138 | %{_datadir}/knotes |
139 | %{_datadir}/knotifications5/akonadi_notes_agent.notifyrc | |
f240b913 WF |
140 | %{_datadir}/kxmlgui5/knotes |
141 | %{_datadir}/metainfo/org.kde.knotes.appdata.xml | |
e5c6732d WF |
142 | %{_datadir}/knsrcfiles/knotes_printing_theme.knsrc |
143 | %{_datadir}/qlogging-categories5/knotes.categories | |
144 | %{_datadir}/qlogging-categories5/knotes.renamecategories | |
5611564e WF |
145 | %dir %{_libdir}/qt5/plugins/pim5/kcms/knotes |
146 | %{_libdir}/qt5/plugins/pim5/kcms/knotes/kcm_knote_action.so | |
147 | %{_libdir}/qt5/plugins/pim5/kcms/knotes/kcm_knote_collection.so | |
148 | %{_libdir}/qt5/plugins/pim5/kcms/knotes/kcm_knote_display.so | |
149 | %{_libdir}/qt5/plugins/pim5/kcms/knotes/kcm_knote_editor.so | |
150 | %{_libdir}/qt5/plugins/pim5/kcms/knotes/kcm_knote_misc.so | |
151 | %{_libdir}/qt5/plugins/pim5/kcms/knotes/kcm_knote_network.so | |
152 | %{_libdir}/qt5/plugins/pim5/kcms/knotes/kcm_knote_print.so | |
153 | %{_libdir}/qt5/plugins/pim5/kcms/summary/kcmknotessummary.so | |
154 | %{_libdir}/qt5/plugins/pim5/kontact/kontact_knotesplugin.so |