]>
Commit | Line | Data |
---|---|---|
92aeed86 | 1 | # TODO: separate ModemManager/ofono/sofia-sip plugins? |
1014ffa8 | 2 | # - system call-ui library |
433fe877 JB |
3 | # |
4 | # Conditional build: | |
5 | %bcond_without apidocs # gtk-doc based API documentation | |
6 | ||
92aeed86 JB |
7 | Summary: GNOME phone dialer and call handler |
8 | Summary(pl.UTF-8): Aplikacja GNOME do dzwonienia i przyjmowania połączeń | |
9 | Name: gnome-calls | |
1014ffa8 | 10 | Version: 43.3 |
c31c1e61 | 11 | Release: 2 |
92aeed86 JB |
12 | License: GPL v3+ |
13 | Group: Applications/Communication | |
1014ffa8 JB |
14 | Source0: https://download.gnome.org/sources/calls/43/calls-%{version}.tar.xz |
15 | # Source0-md5: 1fa5af6d6f9e0c3d0c54a44f29d62b22 | |
92aeed86 JB |
16 | URL: https://gitlab.gnome.org/GNOME/calls |
17 | BuildRequires: ModemManager-devel >= 1.12.0 | |
18 | BuildRequires: evolution-data-server-devel >= 1.2 | |
19 | BuildRequires: folks-devel | |
20 | BuildRequires: gettext-tools | |
41a9a2e8 JB |
21 | %{?with_apidocs:BuildRequires: gi-docgen >= 2021.1} |
22 | BuildRequires: glib2-devel >= 1:2.62 | |
92aeed86 | 23 | BuildRequires: gom-devel |
c4e8a4c0 | 24 | BuildRequires: gstreamer-devel >= 1.0 |
41a9a2e8 | 25 | BuildRequires: gtk+3-devel >= 3.22 |
433fe877 | 26 | %{?with_apidocs:BuildRequires: gtk-doc} |
1014ffa8 | 27 | BuildRequires: libcallaudio-devel >= 0.1 |
92aeed86 | 28 | BuildRequires: libfeedback-devel |
41a9a2e8 | 29 | BuildRequires: libhandy1-devel >= 1.4.0 |
92aeed86 | 30 | BuildRequires: libpeas-devel |
c4e8a4c0 | 31 | BuildRequires: libsecret-devel |
41a9a2e8 | 32 | BuildRequires: meson >= 0.56.0 |
92aeed86 JB |
33 | BuildRequires: ninja >= 1.5 |
34 | BuildRequires: pkgconfig | |
35 | # pkgconfig(sofia-sip-ua-glib) | |
36 | BuildRequires: sofia-sip-devel | |
41a9a2e8 | 37 | BuildRequires: rpm-build >= 4.6 |
92aeed86 JB |
38 | BuildRequires: rpmbuild(macros) >= 1.736 |
39 | BuildRequires: tar >= 1:1.22 | |
40 | BuildRequires: vala | |
41 | BuildRequires: vala-evolution-data-server >= 1.2 | |
42 | BuildRequires: vala-folks | |
43 | BuildRequires: xz | |
44 | Requires(post,postun): desktop-file-utils | |
45 | Requires(post,postun): glib2 >= 1:2.58 | |
46 | Requires(post,postun): gtk-update-icon-cache | |
47 | Requires: ModemManager >= 1.12.0 | |
48 | Requires: evolution-data-server | |
41a9a2e8 JB |
49 | Requires: glib2 >= 1:2.62 |
50 | Requires: gtk+3 >= 3.22 | |
92aeed86 | 51 | Requires: hicolor-icon-theme |
41a9a2e8 | 52 | Requires: libhandy1 >= 1.4.0 |
92aeed86 JB |
53 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
54 | ||
55 | %description | |
56 | GNOME phone dialer and call handler. | |
57 | ||
58 | %description -l pl.UTF-8 | |
59 | Aplikacja GNOME do dzwonienia i przyjmowania połączeń. | |
60 | ||
61 | %package apidocs | |
62 | Summary: Documentation of GNOME Calls DBus API | |
63 | Summary(pl.UTF-8): Dokumentacja API DBus aplikacji GNOME Calls | |
64 | Group: Documentation | |
41a9a2e8 | 65 | BuildArch: noarch |
92aeed86 JB |
66 | |
67 | %description apidocs | |
68 | Documentation of GNOME Calls DBus API. | |
69 | ||
70 | %description apidocs -l pl.UTF-8 | |
71 | Dokumentacja API DBus aplikacji GNOME Calls. | |
72 | ||
73 | %prep | |
433fe877 | 74 | %setup -q -n calls-%{version} |
92aeed86 JB |
75 | |
76 | %build | |
77 | %meson build \ | |
433fe877 | 78 | %{?with_apidocs:-Dgtk_doc=true} |
92aeed86 JB |
79 | |
80 | %ninja_build -C build | |
81 | ||
82 | %install | |
83 | rm -rf $RPM_BUILD_ROOT | |
84 | ||
85 | %ninja_install -C build | |
86 | ||
41a9a2e8 JB |
87 | # calls and calls-ui domains |
88 | %find_lang calls --all-name | |
92aeed86 JB |
89 | |
90 | %clean | |
91 | rm -rf $RPM_BUILD_ROOT | |
92 | ||
93 | %post | |
94 | %glib_compile_schemas | |
95 | %update_desktop_database | |
96 | %update_icon_cache hicolor | |
97 | ||
98 | %postun | |
99 | %glib_compile_schemas | |
100 | %update_desktop_database | |
101 | %update_icon_cache hicolor | |
102 | ||
103 | %files -f calls.lang | |
104 | %defattr(644,root,root,755) | |
105 | %doc NEWS README.md | |
106 | %attr(755,root,root) %{_bindir}/gnome-calls | |
107 | %{_sysconfdir}/xdg/autostart/org.gnome.Calls-daemon.desktop | |
108 | %dir %{_libdir}/calls | |
c31c1e61 | 109 | %dir %{_libdir}/calls/plugins |
1014ffa8 JB |
110 | %dir %{_libdir}/calls/plugins/provider |
111 | %dir %{_libdir}/calls/plugins/provider/dummy | |
112 | %attr(755,root,root) %{_libdir}/calls/plugins/provider/dummy/libdummy.so | |
113 | %{_libdir}/calls/plugins/provider/dummy/dummy.plugin | |
114 | %dir %{_libdir}/calls/plugins/provider/mm | |
92aeed86 | 115 | # R: ModemManager |
1014ffa8 JB |
116 | %attr(755,root,root) %{_libdir}/calls/plugins/provider/mm/libmm.so |
117 | %{_libdir}/calls/plugins/provider/mm/mm.plugin | |
118 | %dir %{_libdir}/calls/plugins/provider/ofono | |
92aeed86 | 119 | # R: ofono |
1014ffa8 JB |
120 | %attr(755,root,root) %{_libdir}/calls/plugins/provider/ofono/libofono.so |
121 | %{_libdir}/calls/plugins/provider/ofono/ofono.plugin | |
92aeed86 | 122 | # R: sofia-sip |
1014ffa8 JB |
123 | %dir %{_libdir}/calls/plugins/provider/sip |
124 | %attr(755,root,root) %{_libdir}/calls/plugins/provider/sip/libsip.so | |
125 | %{_libdir}/calls/plugins/provider/sip/sip.plugin | |
126 | %{_datadir}/dbus-1/services/org.gnome.Calls.service | |
92aeed86 JB |
127 | %{_datadir}/glib-2.0/schemas/org.gnome.Calls.gschema.xml |
128 | %{_datadir}/metainfo/org.gnome.Calls.metainfo.xml | |
129 | %{_desktopdir}/org.gnome.Calls.desktop | |
130 | %{_iconsdir}/hicolor/scalable/apps/org.gnome.Calls.svg | |
131 | %{_iconsdir}/hicolor/symbolic/apps/org.gnome.Calls-symbolic.svg | |
1014ffa8 | 132 | %{_mandir}/man1/gnome-calls.1* |
92aeed86 | 133 | |
433fe877 | 134 | %if %{with apidocs} |
92aeed86 JB |
135 | %files apidocs |
136 | %defattr(644,root,root,755) | |
137 | %{_gtkdocdir}/calls | |
433fe877 | 138 | %endif |