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