]>
Commit | Line | Data |
---|---|---|
7c4bd58c | 1 | # |
ec36c311 AG |
2 | # note: disabling plugins will still build them if deps are met |
3 | # | |
7c4bd58c AG |
4 | # Conditional build: |
5 | %bcond_without exec # do not build exec plugin | |
7c4bd58c AG |
6 | %bcond_without rdp # do not build rdp plugin |
7 | %bcond_without secret # do not build secret plugin | |
8 | %bcond_without spice # do not build spice plugin | |
9 | %bcond_without vnc # do not build vnc plugin | |
6236602e | 10 | %bcond_without vte # do not build vte plugin |
2cd7a1fc | 11 | %bcond_without www # do not build www plugin |
7c4bd58c | 12 | # |
bff36d36 AG |
13 | Summary: Remote Desktop Client |
14 | Name: remmina | |
4bf08c54 | 15 | Version: 1.4.31 |
a10659f5 | 16 | Release: 1 |
bff36d36 AG |
17 | License: GPLv2+ and MIT |
18 | Group: X11/Applications | |
d66ee200 | 19 | Source0: https://gitlab.com/Remmina/Remmina/-/archive/v%{version}/Remmina-v%{version}.tar.bz2 |
4bf08c54 | 20 | # Source0-md5: 72d0975ad6899c9017ad9e3699933e46 |
bff36d36 AG |
21 | # Cmake helper file to easy build plugins outside remmina source tree |
22 | # See http://www.muflone.com/remmina-plugin-rdesktop/english/install.html which | |
23 | # use http://www.muflone.com/remmina-plugin-builder/ with remmina bundled source. | |
24 | # So we can't use it directly only as instructions. | |
25 | Source1: pluginBuild-CMakeLists.txt | |
2cd7a1fc | 26 | Patch0: fix-shebangs.patch |
bff36d36 | 27 | URL: http://remmina.org |
b9dff668 JP |
28 | BuildRequires: atk-devel |
29 | BuildRequires: avahi-devel >= 0.6.30 | |
bff36d36 | 30 | BuildRequires: avahi-ui-gtk3-devel >= 0.6.30 |
b9dff668 JP |
31 | BuildRequires: cairo-devel |
32 | BuildRequires: cmake >= 3.10.0 | |
33 | %{?with_rdp:BuildRequires: cups-devel} | |
7c4bd58c | 34 | %{?with_rdp:BuildRequires: freerdp2-devel >= 2.0.0-0.20190320} |
b9dff668 JP |
35 | BuildRequires: gdk-pixbuf2-devel |
36 | BuildRequires: gettext-tools | |
37 | BuildRequires: glib2-devel | |
38 | BuildRequires: gtk+3-devel >= 3.14.0 | |
2cd7a1fc | 39 | %{?with_www:BuildRequires: gtk-webkit4-devel} |
b9dff668 | 40 | BuildRequires: harfbuzz-devel |
bff36d36 | 41 | BuildRequires: json-glib-devel |
b9dff668 | 42 | BuildRequires: libayatana-appindicator-gtk3-devel |
bff36d36 | 43 | BuildRequires: libgcrypt-devel |
7c4bd58c | 44 | %{?with_secret:BuildRequires: libsecret-devel} |
02211378 | 45 | BuildRequires: libsodium-devel |
b9dff668 JP |
46 | %{?with_www:BuildRequires: libsoup3-devel} |
47 | BuildRequires: libssh-devel >= 0.6 | |
7c4bd58c | 48 | %{?with_vnc:BuildRequires: libvncserver-devel} |
b9dff668 | 49 | BuildRequires: pango-devel |
b422c8cb | 50 | BuildRequires: pcre2-8-devel |
b9dff668 | 51 | BuildRequires: pkgconfig |
f68e105d | 52 | BuildRequires: python3-devel |
7c4bd58c | 53 | BuildRequires: rpmbuild(macros) >= 1.742 |
b9dff668 JP |
54 | %if %{with spice} |
55 | BuildRequires: spice-glib-devel | |
56 | BuildRequires: spice-gtk-devel | |
57 | BuildRequires: spice-protocol | |
58 | %endif | |
59 | BuildRequires: wayland-devel | |
60 | %{?with_vte:BuildRequires: vte-devel >= 0.38} | |
61 | BuildRequires: xorg-lib-libxkbcommon-devel | |
791ee4d2 | 62 | Requires(post,postun): gtk-update-icon-cache |
d8865dbe | 63 | Requires: avahi-ui-gtk3 >= 0.6.30 |
b9dff668 | 64 | Requires: gtk+3 >= 3.14.0 |
791ee4d2 | 65 | Requires: hicolor-icon-theme |
b422c8cb KM |
66 | Obsoletes: remmina-plugins-nx < 1.4.20 |
67 | Obsoletes: remmina-plugins-xdmcp < 1.4.20 | |
c2acb0d6 | 68 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
bff36d36 AG |
69 | |
70 | %description | |
71 | Remmina is a remote desktop client written in GTK+, aiming to be | |
72 | useful for system administrators and travelers, who need to work with | |
73 | lots of remote computers in front of either large monitors or tiny | |
74 | net-books. | |
75 | ||
76 | Remmina supports multiple network protocols in an integrated and | |
77 | consistent user interface. Currently RDP, VNC, XDMCP and SSH are | |
78 | supported. | |
79 | ||
80 | Please don't forget to install the plugins for the protocols you want | |
81 | to use. | |
82 | ||
83 | %package devel | |
84 | Summary: Development files for %{name} | |
85 | Requires: %{name} = %{version}-%{release} | |
86 | Requires: pkgconfig | |
87 | ||
88 | %description devel | |
89 | The %{name}-devel package contains header files for developing plugins | |
90 | for %{name}. | |
91 | ||
92 | %package plugins-exec | |
93 | Summary: External execution plugin for Remmina Remote Desktop Client | |
94 | Requires: %{name} = %{version}-%{release} | |
95 | ||
96 | %description plugins-exec | |
97 | Remmina is a remote desktop client written in GTK+, aiming to be | |
98 | useful for system administrators and travelers, who need to work with | |
99 | lots of remote computers in front of either large monitors or tiny | |
100 | net-books. | |
101 | ||
102 | This package contains the plugin to execute external processes | |
103 | (commands or applications) from the Remmina window. | |
104 | ||
f68e105d KM |
105 | %package plugins-python_wrapper |
106 | Summary: Python Wrapper plugin for Remmina Remote Desktop Client | |
107 | Requires: %{name} = %{version}-%{release} | |
f68e105d KM |
108 | |
109 | %description plugins-python_wrapper | |
110 | Remmina is a remote desktop client written in GTK+, aiming to be | |
111 | useful for system administrators and travelers, who need to work with | |
112 | lots of remote computers in front of either large monitors or tiny | |
113 | net-books. | |
114 | ||
115 | This package enables Python plugins for Remmina. | |
116 | ||
bff36d36 AG |
117 | %package plugins-rdp |
118 | Summary: RDP plugin for Remmina Remote Desktop Client | |
119 | Requires: %{name} = %{version}-%{release} | |
d8865dbe | 120 | Requires: freerdp2-libs >= 2.0.0-0.20190320 |
bff36d36 AG |
121 | |
122 | %description plugins-rdp | |
123 | Remmina is a remote desktop client written in GTK+, aiming to be | |
124 | useful for system administrators and travelers, who need to work with | |
125 | lots of remote computers in front of either large monitors or tiny | |
126 | net-books. | |
127 | ||
128 | This package contains the Remote Desktop Protocol (RDP) plugin for the | |
129 | Remmina remote desktop client. | |
130 | ||
c64abc6f AG |
131 | %package plugins-secret |
132 | Summary: Keyring integration for Remmina Remote Desktop Client | |
bff36d36 | 133 | Requires: %{name} = %{version}-%{release} |
c64abc6f AG |
134 | Provides: %{name}-plugins-gnome%{?_isa} = %{version}-%{release} |
135 | Obsoletes: remmina-plugins-gnome < %{version}-%{release} | |
bff36d36 | 136 | |
c64abc6f | 137 | %description plugins-secret |
bff36d36 AG |
138 | Remmina is a remote desktop client written in GTK+, aiming to be |
139 | useful for system administrators and travelers, who need to work with | |
140 | lots of remote computers in front of either large monitors or tiny | |
141 | net-books. | |
142 | ||
c64abc6f AG |
143 | This package contains the plugin with keyring support for the Remmina |
144 | remote desktop client. | |
145 | ||
146 | %package plugins-spice | |
147 | Summary: SPICE plugin for Remmina Remote Desktop Client | |
148 | Requires: %{name} = %{version}-%{release} | |
149 | ||
150 | %description plugins-spice | |
151 | Remmina is a remote desktop client written in GTK+, aiming to be | |
152 | useful for system administrators and travelers, who need to work with | |
153 | lots of remote computers in front of either large monitors or tiny | |
154 | net-books. | |
155 | ||
156 | This package contains the SPICE plugin for the Remmina remote desktop | |
bff36d36 AG |
157 | client. |
158 | ||
c64abc6f AG |
159 | %package plugins-vnc |
160 | Summary: VNC plugin for Remmina Remote Desktop Client | |
bff36d36 | 161 | Requires: %{name} = %{version}-%{release} |
bff36d36 | 162 | |
c64abc6f | 163 | %description plugins-vnc |
bff36d36 AG |
164 | Remmina is a remote desktop client written in GTK+, aiming to be |
165 | useful for system administrators and travelers, who need to work with | |
166 | lots of remote computers in front of either large monitors or tiny | |
167 | net-books. | |
168 | ||
c64abc6f | 169 | This package contains the VNC plugin for the Remmina remote desktop |
bff36d36 AG |
170 | client. |
171 | ||
2cd7a1fc KM |
172 | %package plugins-www |
173 | Summary: Browser plugin for Remmina Remote Desktop Client | |
174 | Requires: %{name} = %{version}-%{release} | |
175 | ||
176 | %description plugins-www | |
177 | Remmina is a remote desktop client written in GTK+, aiming to be | |
178 | useful for system administrators and travelers, who need to work with | |
179 | lots of remote computers in front of either large monitors or tiny | |
180 | net-books. | |
181 | ||
182 | This package contains the www plugin for the Remmina remote desktop | |
183 | client. | |
184 | ||
bff36d36 AG |
185 | %prep |
186 | %setup -qn Remmina-v%{version} | |
762693bc AG |
187 | %{__sed} -i s/^pt_PT$// po/LINGUAS |
188 | %{__rm} -f po/pt_PT.po | |
2cd7a1fc | 189 | %patch0 -p1 |
bff36d36 AG |
190 | |
191 | %build | |
192 | mkdir -p build | |
43d9808f KM |
193 | cd build |
194 | %cmake \ | |
bff36d36 AG |
195 | -DCMAKE_INSTALL_LIBDIR=%{_lib} \ |
196 | -DCMAKE_INSTALL_PREFIX=%{_prefix} \ | |
197 | -DWITH_APPINDICATOR=ON \ | |
198 | -DWITH_AVAHI=ON \ | |
1c511928 | 199 | -DWITH_CUPS=ON \ |
bff36d36 AG |
200 | -DWITH_GCRYPT=ON \ |
201 | -DWITH_GETTEXT=ON \ | |
b255c188 | 202 | -DWITH_ICON_CACHE=OFF \ |
1c511928 | 203 | -DWITH_LIBSECRET=ON \ |
1c511928 KM |
204 | %{cmake_on_off vnc WITH_LIBVNCSERVER} \ |
205 | %{cmake_on_off spice WITH_SPICE} \ | |
b255c188 | 206 | -DWITH_UPDATE_DESKTOP_DB=OFF \ |
1c511928 | 207 | %{cmake_on_off vte WITH_VTE} \ |
43d9808f | 208 | .. |
bff36d36 AG |
209 | |
210 | %{__make} | |
211 | ||
212 | %install | |
213 | rm -rf $RPM_BUILD_ROOT | |
43d9808f | 214 | cd build |
bff36d36 AG |
215 | %{__make} install \ |
216 | DESTDIR=$RPM_BUILD_ROOT | |
43d9808f | 217 | cd .. |
bff36d36 | 218 | |
b422c8cb KM |
219 | install -d $RPM_BUILD_ROOT%{_libdir}/cmake/%{name}/ |
220 | cp -pr cmake/*.cmake $RPM_BUILD_ROOT%{_libdir}/cmake/%{name}/ | |
221 | cp -pr config.h.in $RPM_BUILD_ROOT%{_includedir}/%{name}/ | |
222 | cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_includedir}/%{name}/ | |
bff36d36 | 223 | |
2cd7a1fc | 224 | # not supported by glibc yet |
bc859550 | 225 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/{ber,br,ckb,eo,ie,ka,hi,shn} |
2cd7a1fc | 226 | |
bff36d36 AG |
227 | %find_lang %{name} |
228 | ||
229 | %clean | |
230 | rm -rf $RPM_BUILD_ROOT | |
231 | ||
791ee4d2 JP |
232 | %post |
233 | %update_icon_cache hicolor | |
234 | ||
235 | %postun | |
236 | %update_icon_cache hicolor | |
237 | ||
bff36d36 AG |
238 | %files -f %{name}.lang |
239 | %defattr(644,root,root,755) | |
240 | %doc LICENSE AUTHORS ChangeLog README.md | |
2cd7a1fc | 241 | %attr(755,root,root) %{_bindir}/remmina-file-wrapper |
bff36d36 AG |
242 | %attr(755,root,root) %{_bindir}/remmina |
243 | %{_datadir}/metainfo/*.appdata.xml | |
244 | %{_desktopdir}/*.desktop | |
245 | %{_iconsdir}/hicolor/*/actions/*.* | |
246 | %{_iconsdir}/hicolor/*/apps/*.* | |
a10659f5 KM |
247 | %{_iconsdir}/hicolor/*/emblems/org.remmina.Remmina-sftp-symbolic.svg |
248 | %{_iconsdir}/hicolor/*/emblems/org.remmina.Remmina-ssh-symbolic.svg | |
249 | %{_iconsdir}/hicolor/*/emblems/org.remmina.Remmina-tool-symbolic.svg | |
250 | %{_iconsdir}/hicolor/*/status/org.remmina.Remmina-status.svg | |
2cd7a1fc KM |
251 | %dir %{_iconsdir}/hicolor/apps |
252 | %{_iconsdir}/hicolor/apps/*.* | |
bff36d36 AG |
253 | %{_datadir}/mime/packages/*.xml |
254 | %{_datadir}/%{name}/ | |
255 | %dir %{_libdir}/remmina/ | |
256 | %dir %{_libdir}/remmina/plugins/ | |
c2acb0d6 | 257 | %{_mandir}/man1/remmina.1* |
2cd7a1fc | 258 | %{_mandir}/man1/remmina-file-wrapper.1* |
bff36d36 AG |
259 | |
260 | %files devel | |
261 | %defattr(644,root,root,755) | |
262 | %{_includedir}/%{name}/ | |
263 | %{_pkgconfigdir}/%{name}.pc | |
762693bc | 264 | %dir %{_libdir}/cmake/%{name} |
bff36d36 AG |
265 | %{_libdir}/cmake/%{name}/*.cmake |
266 | ||
7c4bd58c | 267 | %if %{with exec} |
bff36d36 AG |
268 | %files plugins-exec |
269 | %defattr(644,root,root,755) | |
2cd7a1fc | 270 | %attr(755,root,root) %{_libdir}/remmina/plugins/remmina-plugin-exec.so |
7c4bd58c | 271 | %endif |
bff36d36 | 272 | |
f68e105d KM |
273 | %files plugins-python_wrapper |
274 | %defattr(644,root,root,755) | |
275 | %attr(755,root,root) %{_libdir}/remmina/plugins/remmina-plugin-python_wrapper.so | |
276 | ||
7c4bd58c | 277 | %if %{with rdp} |
bff36d36 AG |
278 | %files plugins-rdp |
279 | %defattr(644,root,root,755) | |
2cd7a1fc | 280 | %attr(755,root,root) %{_libdir}/remmina/plugins/remmina-plugin-rdp.so |
a10659f5 KM |
281 | %{_iconsdir}/hicolor/*/emblems/org.remmina.Remmina-rdp-ssh-symbolic.svg |
282 | %{_iconsdir}/hicolor/*/emblems/org.remmina.Remmina-rdp-symbolic.svg | |
7c4bd58c | 283 | %endif |
bff36d36 | 284 | |
7c4bd58c | 285 | %if %{with secret} |
c64abc6f AG |
286 | %files plugins-secret |
287 | %defattr(644,root,root,755) | |
2cd7a1fc | 288 | %attr(755,root,root) %{_libdir}/remmina/plugins/remmina-plugin-secret.so |
7c4bd58c | 289 | %endif |
c64abc6f | 290 | |
7c4bd58c | 291 | %if %{with spice} |
c64abc6f AG |
292 | %files plugins-spice |
293 | %defattr(644,root,root,755) | |
2cd7a1fc | 294 | %attr(755,root,root) %{_libdir}/remmina/plugins/remmina-plugin-spice.so |
a10659f5 KM |
295 | %{_iconsdir}/hicolor/*/emblems/org.remmina.Remmina-spice-symbolic.svg |
296 | %{_iconsdir}/hicolor/*/emblems/org.remmina.Remmina-spice-ssh-symbolic.svg | |
7c4bd58c | 297 | %endif |
c64abc6f | 298 | |
7c4bd58c | 299 | %if %{with vnc} |
bff36d36 AG |
300 | %files plugins-vnc |
301 | %defattr(644,root,root,755) | |
2cd7a1fc | 302 | %attr(755,root,root) %{_libdir}/remmina/plugins/remmina-plugin-vnc.so |
a10659f5 KM |
303 | %{_iconsdir}/hicolor/*/emblems/org.remmina.Remmina-vnc-ssh-symbolic.svg |
304 | %{_iconsdir}/hicolor/*/emblems/org.remmina.Remmina-vnc-symbolic.svg | |
7c4bd58c | 305 | %endif |
bff36d36 | 306 | |
2cd7a1fc KM |
307 | %if %{with www} |
308 | %files plugins-www | |
309 | %defattr(644,root,root,755) | |
310 | %attr(755,root,root) %{_libdir}/remmina/plugins/remmina-plugin-www.so | |
a10659f5 | 311 | %{_iconsdir}/hicolor/*/emblems/org.remmina.Remmina-www-symbolic.svg |
2cd7a1fc KM |
312 | %endif |
313 | ||
bff36d36 | 314 | %changelog |