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