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