3 %bcond_with gtk3 # use GTK+ 3.x instead of 2.x
5 Summary: MATE media programs
6 Summary(pl.UTF-8): Programy multimedialne dla środowiska MATE
10 License: GPL v2+ (volume control, sound theme), FDL (documentation)
11 Group: X11/Applications/Multimedia
12 Source0: http://pub.mate-desktop.org/releases/1.14/%{name}-%{version}.tar.xz
13 # Source0-md5: e1d243247582ec94f39402ed24126228
14 URL: https://github.com/mate-desktop/mate-media
15 BuildRequires: autoconf >= 2.60
16 BuildRequires: automake >= 1:1.9
17 BuildRequires: desktop-file-utils
18 BuildRequires: docbook-dtd412-xml
19 BuildRequires: gettext-tools
20 BuildRequires: glib2-devel >= 1:2.36.0
21 %{!?with_gtk3:BuildRequires: gtk+2-devel >= 2:2.24.0}
22 %{?with_gtk3:BuildRequires: gtk+3-devel >= 3.0.0}
23 BuildRequires: intltool >= 0.35.0
24 BuildRequires: libcanberra-devel >= 0.13
25 %{!?with_gtk3:BuildRequires: libcanberra-gtk-devel >= 0.13}
26 %{?with_gtk3:BuildRequires: libcanberra-gtk3-devel >= 0.13}
27 BuildRequires: libmatemixer-devel >= 1.9.1
28 BuildRequires: libtool >= 1:1.4.3
29 %{!?with_gtk3:BuildRequires: libunique-devel >= 1.0}
30 %{?with_gtk3:BuildRequires: libunique3-devel >= 3.0}
31 BuildRequires: libxml2-devel >= 2.0
32 BuildRequires: mate-common >= 1.2.1
33 BuildRequires: mate-desktop-devel >= 1.9.3
34 BuildRequires: rpmbuild(find_lang) >= 1.36
35 BuildRequires: tar >= 1:1.22
37 BuildRequires: yelp-tools
38 Requires: desktop-file-utils
39 Requires: glib2 >= 1:2.36.0
40 %{!?with_gtk3:Requires: gtk+2 >= 2:2.24.0}
41 %{?with_gtk3:Requires: gtk+3 >= 3.0.0}
42 Requires: libcanberra >= 0.13
43 %{!?with_gtk3:Requires: libcanberra-gtk >= 0.13}
44 %{?with_gtk3:Requires: libcanberra-gtk3 >= 0.13}
45 Requires: libmatemixer >= 1.9.1
46 Requires: mate-desktop-libs >= 1.9.3
47 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
50 This package contains a few media utilities for the MATE desktop,
51 including a volume control.
53 %description -l pl.UTF-8
54 Ten pakiet zawiera kilka narzędzi multimedialnych dla środowiska MATE,
55 w tym do sterowania głośnością dźwięku.
68 --disable-schemas-compile \
69 --disable-silent-rules \
72 %{?with_gtk3:--with-gtk=3.0}
77 rm -rf $RPM_BUILD_ROOT
79 DESTDIR=$RPM_BUILD_ROOT
81 %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/{frp,jv,ku_IQ,pms}
83 desktop-file-install \
84 --remove-category="MATE" \
85 --add-category="X-Mate" \
87 --dir=$RPM_BUILD_ROOT%{_desktopdir} \
88 $RPM_BUILD_ROOT%{_desktopdir}/mate-volume-control.desktop
90 %find_lang %{name} --with-mate --all-name
93 rm -rf $RPM_BUILD_ROOT
96 %update_desktop_database
99 %update_desktop_database
101 %files -f %{name}.lang
102 %defattr(644,root,root,755)
103 %doc AUTHORS ChangeLog NEWS README
104 %attr(755,root,root) %{_bindir}/mate-volume-control
105 %attr(755,root,root) %{_bindir}/mate-volume-control-applet
106 /etc/xdg/autostart/mate-volume-control-applet.desktop
107 %{_datadir}/mate-media
108 %{_datadir}/sounds/mate
109 %{_desktopdir}/mate-volume-control.desktop
110 %{_mandir}/man1/mate-volume-control.1*
111 %{_mandir}/man1/mate-volume-control-applet.1*