/[packages]/backports/4/mumble/current/SPECS/mumble.spec
ViewVC logotype

Diff of /backports/4/mumble/current/SPECS/mumble.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 818074 by daviddavid, Sat Mar 7 20:25:14 2015 UTC revision 818075 by daviddavid, Sat Mar 7 20:51:12 2015 UTC
# Line 1  Line 1 
1  # configuration options for the server (murmur)  # configuration options for the server (murmur)
2  %define build_server    1  %define build_server    1
3  %define build_web       0  %define build_web       1
4  %define build_ice       0  %define build_ice       0
5  # configuration options for the client  # configuration options for the client
6  %define build_client    1  %define build_client    1
7  %define build_speechd   1  %define build_speechd   1
8  %define build_g15       1  %define build_g15       1
9    
 %define subrel          2  
   
10  %{?_without_server: %{expand: %%global build_server 0}}  %{?_without_server: %{expand: %%global build_server 0}}
11  %{?_without_server: %{expand: %%global build_ice 0}}  %{?_without_server: %{expand: %%global build_ice 0}}
12  %{?_with_server: %{expand: %%global build_server 1}}  %{?_with_server: %{expand: %%global build_server 1}}
# Line 29  Line 27 
27    
28  Summary:        Low-latency, high-quality voice communication for gamers  Summary:        Low-latency, high-quality voice communication for gamers
29  Name:           mumble  Name:           mumble
30  Version:        1.2.3  Version:        1.2.8
31  Release:        %mkrel 14  Release:        %mkrel 1
32  License:        BSD-like  License:        BSD-like
33  Group:          Communications/Telephony  Group:          Communications/Telephony
34  Url:            http://mumble.sourceforge.net/  Url:            http://mumble.sourceforge.net/
# Line 43  Source4:       README.install.urpmi.mumble-ser Line 41  Source4:       README.install.urpmi.mumble-ser
41  Source5:        %{name}-server-init.mdv  Source5:        %{name}-server-init.mdv
42  Source6:        %{name}-server.logrotate  Source6:        %{name}-server.logrotate
43  Source7:        %{name}-tmpfiles.conf  Source7:        %{name}-tmpfiles.conf
44  Patch0:         %{name}-1.2.1-mdv-fix-string-error.patch  Patch0:         mumble-1.2.5-fdr-slice2cpp.patch
45  Patch1:         mumble-1.2.2-link.patch  Patch1:         mumble-1.2.4-fdr-celt071_include_dir.patch
46  Patch2:         mumble-1.2.3-build-with-celt071.patch  # Fix broken logrotate script (start-stop-daemon not available anymore), BZ 730129
47    Patch2:         mumble-1.2.3-fdr-logrotate.patch
48    Patch3:         mumble-1.2.5-fdr-mga-fix-speechd.patch
49    Patch4:         mumble-1.2.5-fdr-compile-fix.patch
50  # Fix broken celt-0.11.3 (uncompatible with mumble) mga#12853  # Fix broken celt-0.11.3 (uncompatible with mumble) mga#12853
51  Patch3:         mumble-1.2.3-mga-only-use-celt071-libnames.patch  Patch5:         mumble-1.2.8-mga-only-use-celt071-libnames.patch
52  Patch4:         0001-Explicitly-remove-file-permissions-for-settings-and-.patch  Patch6:         mumble-1.2.8-mga-celt071-AudioInput.patch
 Patch5:         mumble-1.2.3-ice-3.3.1-path.patch  
 Patch6:         mumble-1.2.3-ice-php-include-path.patch  
 Patch7:         mumble-1.2.3-speech-dispatcher-pkgconfig.patch  
 Patch8:         mumble-1.2.3-mga-CVE-2014-3755.patch  
 Patch9:         mumble-1.2.3-mga-CVE-2014-3756.patch  
53    
54  BuildConflicts: celt-devel >= 0.7.0  BuildConflicts: celt-devel >= 0.7.0
55  BuildRequires:  kde4-macros  BuildRequires:  kde4-macros
56  BuildRequires:  libspeex-devel  BuildRequires:  desktop-file-utils
 BuildRequires:  celt071-devel  
57  BuildRequires:  qt4-devel >= 4.4.1  BuildRequires:  qt4-devel >= 4.4.1
 BuildRequires:  boost-devel  
 BuildRequires:  pulseaudio-devel  
 BuildRequires:  libalsa-devel  
 BuildRequires:  libogg-devel  
 BuildRequires:  openssl-devel  
 BuildRequires:  libxevie-devel  
58  BuildRequires:  qt4-linguist >= 4.4.1  BuildRequires:  qt4-linguist >= 4.4.1
59  BuildRequires:  protobuf-devel  BuildRequires:  boost-devel
60  BuildRequires:  protobuf-compiler  BuildRequires:  protobuf-compiler
61  BuildRequires:  avahi-compat-libdns_sd-devel  BuildRequires:  avahi-compat-libdns_sd-devel
 BuildRequires:  pkgconfig(sndfile)  
62  BuildRequires:  cap-devel  BuildRequires:  cap-devel
63    BuildRequires:  pkgconfig(protobuf)
64    BuildRequires:  pkgconfig(speex) >= 1.2
65    BuildRequires:  pkgconfig(celt071)
66    BuildRequires:  pkgconfig(libpulse)
67    BuildRequires:  pkgconfig(alsa)
68    BuildRequires:  pkgconfig(ogg)
69    BuildRequires:  pkgconfig(libssl)
70    BuildRequires:  pkgconfig(xevie)
71    BuildRequires:  pkgconfig(sndfile)
72    BuildRequires:  pkgconfig(opus)
73    BuildRequires:  pkgconfig(xi) >= 1.6.
74    
75  %if %build_speechd  %if %build_speechd
76  BuildRequires:  speech-dispatcher-devel  BuildRequires:  speech-dispatcher-devel
# Line 87  BuildRequires: g15daemon_client-devel Line 86  BuildRequires: g15daemon_client-devel
86  # support it.  # support it.
87  # Using mklibname is not ideal but it's the easiest option for now  # Using mklibname is not ideal but it's the easiest option for now
88  Requires:       %{mklibname celt 071 0}  Requires:       %{mklibname celt 071 0}
 # Fix broken celt-0.11.3 (uncompatible with mumble) mga#12853  
 #Suggests:      %%{mklibname celt 0 2}  
89    
90  Requires:       qt4-database-plugin-sqlite >= 4.3.0  Requires:       qt4-database-plugin-sqlite >= 4.3.0
91  Requires:       %{name}-plugins = %{version}-%{release}  Requires:       %{name}-plugins = %{version}-%{release}
92  Suggests:       %{name}.protocol  Suggests:       %{name}.protocol
93    Obsoletes:      mumble-11x < 1.2.3-15
94    
95  %if %build_speechd  %if %build_speechd
96  Suggests:       speech-dispatcher  Suggests:       speech-dispatcher
# Line 105  Suggests:      g15daemon Line 103  Suggests:      g15daemon
103  %description  %description
104  Low-latency, high-quality voice communication for gamers.  Low-latency, high-quality voice communication for gamers.
105    
106  Includes game linking, so voice from other players comes  Includes game linking, so voice from other players comes
107  from the direction of their characters, and has echo  from the direction of their characters, and has echo
108  cancellation so the sound from your loudspeakers won't be  cancellation so the sound from your loudspeakers won't be
109  audible to other players.  audible to other players.
110    
111  %package 11x  %package        protocol-kde4
 Summary:        The 1.1.x compatible client for mumble  
 Group:          Communications/Telephony  
 Requires:       %{name} = %{version}-%{release}  
   
 %description 11x  
 This package provides the 1.1.x compatible client for Mumble, used  
 to connect to older servers.  
   
 %package protocol-kde4  
112  Summary:        The mumble protocol for KDE4  Summary:        The mumble protocol for KDE4
113  Group:          Graphical desktop/KDE  Group:          Graphical desktop/KDE
114  Requires:       %{name} = %{version}-%{release}  Requires:       %{name} = %{version}-%{release}
115    
116  %description protocol-kde4  %description    protocol-kde4
117  The mumble protocol for KDE4.  The mumble protocol for KDE4.
118    
119  %package plugins  %package        plugins
120  Summary:        Mumble plugins  Summary:        Mumble plugins
121  Group:          Communications/Telephony  Group:          Communications/Telephony
122  Requires:       %{name} = %{version}-%{release}  Requires:       %{name} = %{version}-%{release}
 # 24 may 2009 : necessary for upgrading  
 Provides:       %mklibname %{name} 1  
 Provides:       %mklibname %{name} -d  
 Obsoletes:      %mklibname %{name} 1  
 Obsoletes:      %mklibname %{name} -d  
123    
124  %description plugins  %description    plugins
125  This packages provides the Mumble plugins.  This packages provides the Mumble plugins.
126    
127  %if %build_server  %if %build_server
128  %package server  %package        server
129  Summary:        Murmur, the VOIP server for Mumble  Summary:        Murmur, the VOIP server for Mumble
130  Group:          Communications/Telephony  Group:          Communications/Telephony
131  Requires(post): systemd >= %{systemd_required_version}  Requires(post): systemd >= %{systemd_required_version}
# Line 149  Requires(pre): rpm-helper Line 133  Requires(pre): rpm-helper
133  Requires(post): rpm-helper  Requires(post): rpm-helper
134  Requires(preun):        rpm-helper  Requires(preun):        rpm-helper
135  %if %build_ice  %if %build_ice
136  BuildRequires:  ice-devel  BuildRequires:  pkgconfig(ice)
137  # (cg) ice-devel should require this itself, but it doesn't...  # (cg) ice-devel should require this itself, but it doesn't...
138  BuildRequires:  ice  BuildRequires:  ice
139  %endif  %endif
# Line 159  Requires:      dbus Line 143  Requires:      dbus
143  Conflicts:      %{name}-server-web  Conflicts:      %{name}-server-web
144  %endif  %endif
145    
146  %description server  %description    server
147  This package provides Murmur, the VOIP server for Mumble.  This package provides Murmur, the VOIP server for Mumble.
148    
149  %if %build_web  %if %build_web
150  %package server-web  %package        server-web
151  Summary:        Web scripts for mumble-server  Summary:        Web scripts for mumble-server
152  Group:          Communications/Telephony  Group:          Communications/Telephony
153  Requires:       apache  Requires:       apache
# Line 175  Requires:      ice Line 159  Requires:      ice
159  %endif  %endif
160  Requires:       %{name}-server = %{version}-%{release}  Requires:       %{name}-server = %{version}-%{release}
161    
162  %description server-web  %description    server-web
163  This package contains the web scripts for mumble-server.  This package contains the web scripts for mumble-server.
164    
165  %endif  %endif
# Line 187  This package contains the web scripts fo Line 171  This package contains the web scripts fo
171    
172  cp -p %{SOURCE4} README.install.urpmi  cp -p %{SOURCE4} README.install.urpmi
173    
 #remove bundled celt  
 rm -rf celt*  
   
174  %build  %build
175  %qmake_qt4 main.pro \  %qmake_qt4 main.pro \
176  %if %build_server == 0  %if %build_server == 0
# Line 209  rm -rf celt* Line 190  rm -rf celt*
190  %endif  %endif
191          CONFIG+=no-bundled-speex \          CONFIG+=no-bundled-speex \
192          CONFIG+=no-bundled-celt \          CONFIG+=no-bundled-celt \
193            CONFIG+=no-bundled-opus \
194          CONFIG+=no-embed-qt-translations \          CONFIG+=no-embed-qt-translations \
195          CONFIG+=no-update \          CONFIG+=no-update \
196          DEFINES+=PLUGIN_PATH=%{_libdir}/%{name} \          DEFINES+=PLUGIN_PATH=%{_libdir}/%{name} \
197          DEFINES+=DEFAULT_SOUNDSYSTEM=PulseAudio          DEFINES+=DEFAULT_SOUNDSYSTEM=PulseAudio
198    
199  %make -j2  %{qt4bin}/lrelease src/mumble/*.ts
200    %make
201    
202  %install  %install
 rm -rf %{buildroot}  
   
203  %if %build_client  %if %build_client
204  # --- Mumble install ---  # --- Mumble install ---
205    
206  install -D -m 0755 release/%{name} %{buildroot}%{_bindir}/%{name}  install -D -m 0755 release/%{name} %{buildroot}%{_bindir}/%{name}
207  install -m 0755 scripts/%{name}-overlay %{buildroot}%{_bindir}/%{name}-overlay  install -m 0755 scripts/%{name}-overlay %{buildroot}%{_bindir}/%{name}-overlay
208  install -D -m 0755 scripts/%{name}.protocol %{buildroot}%{_kde_datadir}/kde4/services/%{name}.protocol  install -D -m 0644 scripts/%{name}.protocol %{buildroot}%{_kde_services}/%{name}.protocol
209  install -d -m 0755 %{buildroot}%{_libdir}/%{name}/plugins  install -d -m 0755 %{buildroot}%{_libdir}/%{name}/plugins
210  cp -Pp release/libmumble* %{buildroot}%{_libdir}/%{name}/  cp -pr release/libmumble* %{buildroot}%{_libdir}/%{name}/
211  cp -p release/plugins/liblink.so %{buildroot}%{_libdir}/%{name}/  cp -pr release/plugins/liblink.so %{buildroot}%{_libdir}/%{name}/
   
 # ---Mumble 11X ---  
 install -D -m 0755 release/%{name}11x %{buildroot}%{_bindir}/%{name}11x  
212    
213  # Mumble icons  # Mumble icons
214  install -D -m 0644 icons/%{name}.svg %{buildroot}%{_iconsdir}/hicolor/scalable/apps/%{name}.svg  install -D -m 0644 icons/%{name}.svg %{buildroot}%{_iconsdir}/hicolor/scalable/apps/%{name}.svg
# Line 242  desktop-file-install \ Line 220  desktop-file-install \
220                       --remove-category="Qt" \                       --remove-category="Qt" \
221                       --dir %{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/*                       --dir %{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/*
222    
223  # Create a Mumble11x desktop file from the Mumble one  #translations
224  sed -e "s/Name\=Mumble/Name\=Mumble-11x/g" \  mkdir -p %{buildroot}%{_datadir}/%{name}/translations
225          -e "s/Exec\=mumble/Exec\=mumble11x/g" \  install -m 0644 src/%{name}/*.qm %{buildroot}%{_datadir}/%{name}/translations/
         %{buildroot}%{_datadir}/applications/%{name}.desktop \  
         > %{buildroot}%{_datadir}/applications/%{name}11x.desktop  
226  %endif  %endif
227    
228  %if %build_server  %if %build_server
229  # --- Mumble-server/Murmur install ---  # --- Mumble-server/Murmur install ---
230    
231  install -D -m0755 release/murmurd "%{buildroot}%{_sbindir}/murmurd"  install -D -m 0755 release/murmurd "%{buildroot}%{_sbindir}/murmurd"
232  install -D -m0755 scripts/murmur-user-wrapper %{buildroot}%{_bindir}/murmur-user-wrapper  install -D -m 0755 scripts/murmur-user-wrapper %{buildroot}%{_bindir}/murmur-user-wrapper
233  mkdir -p %{buildroot}%{_sysconfdir}/{dbus-1/system.d,logrotate.d}  mkdir -p %{buildroot}%{_sysconfdir}/{dbus-1/system.d,logrotate.d}
234  install -m0644 scripts/murmur.conf %{buildroot}%{_sysconfdir}/dbus-1/system.d/%{name}-server.conf  install -m 0644 scripts/murmur.conf %{buildroot}%{_sysconfdir}/dbus-1/system.d/%{name}-server.conf
235  install -m0644 %{SOURCE6} %{buildroot}%{_sysconfdir}/logrotate.d/%{name}-server  install -m 0644 %{SOURCE6} %{buildroot}%{_sysconfdir}/logrotate.d/%{name}-server
236  install -m0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/%{name}-server.ini  install -m 0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/%{name}-server.ini
237    
238  %if %build_ice  %if %build_ice
239  # install Mumur.ice  in /usr/share/slice  # install Mumur.ice  in /usr/share/slice
240  install -D -m0755 src/murmur/Murmur.ice %{buildroot}%{_datadir}/slice/Murmur.ice  install -D -m 0755 src/murmur/Murmur.ice %{buildroot}%{_datadir}/slice/Murmur.ice
241  %endif  %endif
242    
243  # install initscript  # install initscript
244  mkdir -p %{buildroot}%{_initrddir}  mkdir -p %{buildroot}%{_initrddir}
245  install -m0744 %{SOURCE5} %{buildroot}%{_initrddir}/%{name}-server  install -m 0744 %{SOURCE5} %{buildroot}%{_initrddir}/%{name}-server
246    
247  # create database directory  # create database directory
248  install -d -m0755 %{buildroot}%{_var}/lib/%{name}-server  install -d -m 0755 %{buildroot}%{_localstatedir}/lib/%{name}-server
249    
250  # create log directory  # create log directory
251  install -d -m0755 %{buildroot}%{_var}/log/%{name}-server  install -d -m 0755 %{buildroot}%{_localstatedir}/log/%{name}-server
252    
253  # create tmpfiles directory  # create tmpfiles directory
254  install -D -p -m 0644 %{SOURCE7} %{buildroot}%{_tmpfilesdir}/%{name}-server.conf  install -D -p -m 0644 %{SOURCE7} %{buildroot}%{_tmpfilesdir}/%{name}-server.conf
255    
256  # install example  # install example
257  mkdir -p %{buildroot}%{_var}/%{name}-server/examples  mkdir -p %{buildroot}%{_localstatedir}/%{name}-server/examples
258    
259    # create pidfile directory
260    install -d -m 0755 %{buildroot}%{_localstatedir}/run/%{name}-server
261    
262  %if %build_web  %if %build_web
263  # --- Mumble-server-web files ---  # --- Mumble-server-web files ---
264  install -D -m0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/httpd/conf.d/%{name}-server-web.conf  install -D -m 0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/httpd/conf.d/%{name}-server-web.conf
265  %if %build_ice  %if %build_ice
266  install -D -m0644 %{SOURCE3} %{buildroot}%{_sysconfdir}/php.d/MurmurPHP.ini  install -D -m 0644 %{SOURCE3} %{buildroot}%{_sysconfdir}/php.d/MurmurPHP.ini
267  install -D -m0644 scripts/weblist.php %{buildroot}%{_datadir}/%{name}-server-web/www/weblist.php  install -D -m 0644 scripts/weblist.php %{buildroot}%{_datadir}/%{name}-server-web/www/weblist.php
268  %endif  %endif
269  install -D -m0755 scripts/weblist.pl %{buildroot}%{_datadir}/%{name}-server-web/www/weblist.cgi  install -D -m 0755 scripts/weblist.pl %{buildroot}%{_datadir}/%{name}-server-web/www/weblist.cgi
270  install -D -m0755 scripts/murmur.pl %{buildroot}%{_datadir}/%{name}-server-web/www/register.cgi  install -D -m 0755 scripts/murmur.pl %{buildroot}%{_datadir}/%{name}-server-web/www/register.cgi
271  pushd %{buildroot}%{_datadir}/%{name}-server-web/www  pushd %{buildroot}%{_datadir}/%{name}-server-web/www
272  ln -s weblist.php index.php  ln -s weblist.php index.php
273  popd  popd
# Line 323  install -m 0644 man/mumble* %{buildroot} Line 301  install -m 0644 man/mumble* %{buildroot}
301    
302  %if %build_client  %if %build_client
303  %files  %files
 %defattr(-,root,root)  
304  %doc README README.Linux CHANGES LICENSE  %doc README README.Linux CHANGES LICENSE
305  %{_bindir}/%{name}  %{_bindir}/%{name}
306  %{_bindir}/%{name}-overlay  %{_bindir}/%{name}-overlay
307    %{_datadir}/%{name}/
308  %{_datadir}/applications/%{name}.desktop  %{_datadir}/applications/%{name}.desktop
309  %{_iconsdir}/hicolor/*/apps/%{name}.svg  %{_iconsdir}/hicolor/*/apps/%{name}.svg
310  %{_mandir}/man1/%{name}.*  %{_mandir}/man1/%{name}.*
311  %{_mandir}/man1/%{name}-overlay.*  %{_mandir}/man1/%{name}-overlay.*
312    
 %files 11x  
 %defattr(-,root,root,-)  
 %{_bindir}/%{name}11x  
 %{_datadir}/applications/%{name}11x.desktop  
 %{_mandir}/man1/%{name}11x.*  
   
313  %files protocol-kde4  %files protocol-kde4
 %defattr(-,root,root)  
314  %{_kde_datadir}/kde4/services/%{name}.protocol  %{_kde_datadir}/kde4/services/%{name}.protocol
315    
316  %files plugins  %files plugins
 %defattr(-,root,root,-)  
317  %{_libdir}/%{name}  %{_libdir}/%{name}
318  %endif  %endif
319    
# Line 352  install -m 0644 man/mumble* %{buildroot} Line 322  install -m 0644 man/mumble* %{buildroot}
322  %if %build_client == 0  %if %build_client == 0
323  %doc README README.Linux CHANGES LICENSE  %doc README README.Linux CHANGES LICENSE
324  %endif  %endif
 %defattr(-,root,root)  
325  %doc scripts/murmur.ini  %doc scripts/murmur.ini
326  %{_bindir}/murmur-user-wrapper  %{_bindir}/murmur-user-wrapper
327  %{_sbindir}/murmurd  %{_sbindir}/murmurd
# Line 361  install -m 0644 man/mumble* %{buildroot} Line 330  install -m 0644 man/mumble* %{buildroot}
330  %config(noreplace) %{_sysconfdir}/%{name}-server.ini  %config(noreplace) %{_sysconfdir}/%{name}-server.ini
331  %{_sysconfdir}/logrotate.d/%{name}-server  %{_sysconfdir}/logrotate.d/%{name}-server
332  %{_sysconfdir}/dbus-1/system.d/%{name}-server.conf  %{_sysconfdir}/dbus-1/system.d/%{name}-server.conf
333  %attr(-,mumble-server,mumble-server) %dir %{_var}/lib/%{name}-server  %attr(-,mumble-server,mumble-server) %dir %{_localstatedir}/lib/%{name}-server
334  %attr(-,mumble-server,root) %dir %{_var}/log/%{name}-server  %attr(-,mumble-server,root) %dir %{_localstatedir}/log/%{name}-server
335    %attr(-,mumble-server,mumble-server) %ghost %dir %{_localstatedir}/run/%{name}-server
336  %if %build_ice  %if %build_ice
337  %{_datadir}/slice/Murmur.ice  %{_datadir}/slice/Murmur.ice
338  %endif  %endif
# Line 372  install -m 0644 man/mumble* %{buildroot} Line 342  install -m 0644 man/mumble* %{buildroot}
342  %if %build_web  %if %build_web
343  %files server-web  %files server-web
344  %doc README.install.urpmi  %doc README.install.urpmi
 %defattr(-,root,root)  
345  %config(noreplace) %{_sysconfdir}/httpd/conf.d/%{name}-server-web.conf  %config(noreplace) %{_sysconfdir}/httpd/conf.d/%{name}-server-web.conf
346  %if %build_ice  %if %build_ice
347  %config(noreplace) %{_sysconfdir}/php.d/MurmurPHP.ini  %config(noreplace) %{_sysconfdir}/php.d/MurmurPHP.ini

Legend:
Removed from v.818074  
changed lines
  Added in v.818075

  ViewVC Help
Powered by ViewVC 1.1.30