1 |
%define api 46 |
2 |
%define major 0 |
3 |
%define libname %mklibname gnote %{api} %{major} |
4 |
|
5 |
%define url_ver %{lua: ver = rpm.expand("%{version}"); majmin, count1 = string.gsub(ver, "^(%d+%.%d+).*", "%1", 1); if count1 == 0 then ver = string.gsub(ver, "~.*", ""); print(ver); return; end; maj, count2 = string.gsub(majmin, "^(%d+).*", "%1", 1); if count2 == 0 then print(majmin) elseif tonumber(majmin) < 40 then print(majmin) else print(maj) end} |
6 |
|
7 |
%global tarball_version %%(echo %{version} | tr '~' '.') |
8 |
|
9 |
Summary: Note-taking application |
10 |
Name: gnote |
11 |
Version: 46.0 |
12 |
Release: %mkrel 1 |
13 |
Group: Graphical desktop/GNOME |
14 |
License: GPLv3 |
15 |
URL: https://wiki.gnome.org/Gnote |
16 |
Source0: https://download.gnome.org/sources/%{name}/%{url_ver}/%{name}-%{tarball_version}.tar.xz |
17 |
BuildRequires: meson |
18 |
BuildRequires: pkgconfig(gio-2.0) |
19 |
BuildRequires: pkgconfig(giomm-2.68) |
20 |
BuildRequires: pkgconfig(glibmm-2.68) |
21 |
BuildRequires: pkgconfig(gtkmm-4.0) >= 4.10.0 |
22 |
BuildRequires: pkgconfig(libadwaita-1) |
23 |
BuildRequires: pkgconfig(libsecret-1) >= 0.8 |
24 |
BuildRequires: pkgconfig(libxml-2.0) |
25 |
BuildRequires: pkgconfig(libxslt) |
26 |
BuildRequires: pkgconfig(uuid) |
27 |
BuildRequires: boost-devel |
28 |
BuildRequires: appstream-util |
29 |
BuildRequires: itstool |
30 |
BuildRequires: libxml2-utils |
31 |
BuildRequires: intltool |
32 |
BuildRequires: desktop-file-utils |
33 |
BuildRequires: gettext-devel |
34 |
|
35 |
%global __provides_exclude_from ^%{_libdir}/%{name}/plugins/*/.*\\.so$ |
36 |
|
37 |
%description |
38 |
Gnote is a simple desktop note-taking application for GNOME. |
39 |
Easy to use, but with potential to help you organize the ideas and |
40 |
information you deal with every day. Using a |
41 |
WikiWiki-like linking system, organizing ideas is as simple as typing |
42 |
a name. Branching an idea off is easy as pressing the Link button. And |
43 |
links between your ideas won't break, even when renaming and |
44 |
reorganizing them. |
45 |
|
46 |
This is a clone of Tomboy, in C++. |
47 |
|
48 |
%package -n %{libname} |
49 |
Group: System/Libraries |
50 |
Summary: Note-taking application library |
51 |
|
52 |
%description -n %{libname} |
53 |
This is the note-taking application library. |
54 |
|
55 |
%prep |
56 |
%autosetup -p1 -n %{name}-%{tarball_version} |
57 |
|
58 |
%build |
59 |
%meson |
60 |
%meson_build |
61 |
|
62 |
%install |
63 |
%meson_install |
64 |
|
65 |
rm -f %{buildroot}%{_libdir}/*.so |
66 |
|
67 |
%find_lang %{name} --with-gnome |
68 |
|
69 |
desktop-file-install --vendor="" \ |
70 |
--remove-only-show-in="GNOME" \ |
71 |
--remove-only-show-in="XFCE" \ |
72 |
--dir %{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/* |
73 |
|
74 |
%files -f %{name}.lang |
75 |
%license COPYING COPYING-DOCS |
76 |
%doc AUTHORS NEWS README.md |
77 |
%{_bindir}/%{name} |
78 |
%{_libdir}/%{name}/ |
79 |
%{_datadir}/dbus-1/services/*.service |
80 |
%{_datadir}/glib-2.0/schemas/*.xml |
81 |
%{_datadir}/%{name}/ |
82 |
%{_metainfodir}/org.gnome.Gnote.appdata.xml |
83 |
%{_datadir}/applications/* |
84 |
%{_iconsdir}/hicolor/*/apps/* |
85 |
%{_datadir}/gnome-shell/search-providers/org.gnome.Gnote.search-provider.ini |
86 |
%{_mandir}/man1/%{name}.1* |
87 |
|
88 |
%files -n %{libname} |
89 |
%{_libdir}/lib%{name}-%{api}.so.%{major}{,.*} |