2 # - subpackages for themes (see metacity.spec)
3 # - find proper packages for %files
6 %bcond_with gtk3 # use GTK 3.x instead of 2.x
8 Summary: MATE Desktop window manager
9 Summary(pl.UTF-8): Zarządca okien środowiska MATE Desktop
13 License: LGPL v2+ and GPL v2+
14 Group: X11/Window Managers
15 Source0: http://pub.mate-desktop.org/releases/1.12/%{name}-%{version}.tar.xz
16 # Source0-md5: e483b4e1c4c0a486f064147fff335d54
17 # https://bugzilla.gnome.org/show_bug.cgi?id=622517
18 Patch0: Allow-breaking-out-from-maximization-during-mouse.patch
19 # https://bugs.launchpad.net/ubuntu/+source/metacity/+bug/583847
20 Patch1: initialise_all_workspace_names.patch
21 URL: http://wiki.mate-desktop.org/mate-window-manager
22 BuildRequires: autoconf >= 2.50
23 BuildRequires: automake
24 BuildRequires: desktop-file-utils
25 BuildRequires: gdk-pixbuf2-devel >= 2.0
26 BuildRequires: gettext-tools >= 0.10.40
27 BuildRequires: glib2-devel >= 1:2.32.0
28 %{!?with_gtk3:BuildRequires: gtk+2-devel >= 2:2.24.0}
29 %{?with_gtk3:BuildRequires: gtk+3-devel >= 3.0.0}
30 BuildRequires: intltool >= 0.50.1
31 %{!?with_gtk3:BuildRequires: libcanberra-gtk-devel}
32 %{?with_gtk3:BuildRequires: libcanberra-gtk3-devel}
33 BuildRequires: libgtop-devel
34 BuildRequires: mate-common
35 %{?with_gtk3:BuildRequires: mate-desktop-devel >= 1.9.3}
36 BuildRequires: pango-devel >= 1:1.2.0
37 BuildRequires: rpmbuild(find_lang) >= 1.36
38 BuildRequires: startup-notification-devel >= 0.7
39 BuildRequires: tar >= 1:1.22
40 BuildRequires: xorg-lib-libICE-devel
41 BuildRequires: xorg-lib-libSM-devel
42 BuildRequires: xorg-lib-libX11-devel
43 BuildRequires: xorg-lib-libXcomposite-devel >= 0.3
44 BuildRequires: xorg-lib-libXcursor-devel
45 BuildRequires: xorg-lib-libXext-devel
46 BuildRequires: xorg-lib-libXdamage-devel
47 BuildRequires: xorg-lib-libXinerama-devel
48 BuildRequires: xorg-lib-libXrandr-devel
49 BuildRequires: xorg-lib-libXrender-devel
51 BuildRequires: yelp-tools
52 Requires: %{name}-libs = %{version}-%{release}
53 Requires: glib2 >= 1:2.32.0
54 Requires: gsettings-desktop-schemas
55 Requires: mate-icon-theme
56 Requires: mate-settings-daemon
58 Suggests: mate-control-center
59 # can use any gtk+2 themes nicely, Adwaita specially
60 Suggests: %{name}-themes
61 Obsoletes: mate-window-manager
62 Obsoletes: mate-window-manager-libs < 1.4.1-2
63 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
66 MATE Desktop window manager. MATE Marco is a fork of GNOME Metacity.
68 %description -l pl.UTF-8
69 Zarządca okien środowiska MATE Desktop. MATE Marco to odgałęzienie
70 pakietu GNOME Metacity.
73 Summary: Marco (MATE window manager) library
74 Summary(pl.UTF-8): Biblioteka Macro (zarządcy okien MATE)
76 Requires: glib2 >= 1:2.32.0
77 %{!?with_gtk3:Requires: gtk+2 >= 2:2.24.0}
78 %{?with_gtk3:Requires: gtk+3 >= 3.0.0}
79 %{?with_gtk3:Requires: mate-desktop-libs >= 1.9.3}
80 Requires: pango >= 1:1.2.0
81 Requires: startup-notification >= 0.7
82 Requires: xorg-lib-libXcomposite >= 0.3
83 Obsoletes: mate-window-manager-libs >= 1.4.1-2
86 This package contains the shared library for Marco, the MATE window
89 %description libs -l pl.UTF-8
90 Pakiet zawierający bibliotekę współdzieloną Marco (zarządcy okien
94 Summary: Development files for Marco (Mate window manager)
95 Summary(pl.UTF-8): Pliki programistyczne Marco (zarządcy okien MATE)
96 Group: Development/Libraries
97 Requires: %{name}-libs = %{version}-%{release}
98 Requires: glib2-devel >= 1:2.32.0
99 %{!?with_gtk3:Requires: gtk+2-devel >= 2:2.24.0}
100 %{?with_gtk3:Requires: gtk+3-devel >= 3.0.0}
101 %{?with_gtk3:Requires: mate-desktop-devel >= 1.9.3}
102 Obsoletes: mate-window-manager-devel
105 Development files for Marco (Mate window manager).
107 %description devel -l pl.UTF-8
108 Pliki programistyczne Marco (zarządcy okien MATE).
111 Summary: Themes for MATE Window Manager
112 Summary(pl.UTF-8): Motywy dla zarządcy okien MATE
114 Requires: %{name} = %{version}-%{release}
115 Obsoletes: mate-window-manager-themes
118 Themes for MATE Window Manager.
120 %description themes -l pl.UTF-8
121 Motywy dla zarządcy okien MATE
135 ZENITY=%{_bindir}/zenity \
136 --disable-scrollkeeper \
137 --disable-silent-rules \
140 %{?with_gtk3:--with-gtk=3.0} \
146 rm -rf $RPM_BUILD_ROOT
148 DESTDIR=$RPM_BUILD_ROOT
150 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libmarco-private.la
152 # mate < 1.5 did not exist in pld, avoid dependency on mate-conf
153 %{__rm} $RPM_BUILD_ROOT%{_datadir}/MateConf/gsettings/marco.convert
155 desktop-file-install \
156 --remove-category="MATE" \
158 --dir=$RPM_BUILD_ROOT%{_desktopdir} \
159 $RPM_BUILD_ROOT%{_desktopdir}/marco.desktop
161 %find_lang %{name} --all-name --with-mate
164 rm -rf $RPM_BUILD_ROOT
167 %glib_compile_schemas
170 %glib_compile_schemas
172 %post libs -p /sbin/ldconfig
173 %postun libs -p /sbin/ldconfig
175 %files -f %{name}.lang
176 %defattr(644,root,root,755)
177 %doc AUTHORS ChangeLog NEWS README
178 %attr(755,root,root) %{_bindir}/marco
179 %attr(755,root,root) %{_bindir}/marco-message
181 %{_datadir}/mate-control-center/keybindings/50-marco*.xml
182 %dir %{_datadir}/mate/wm-properties
183 %{_datadir}/mate/wm-properties/marco-wm.desktop
184 %{_datadir}/glib-2.0/schemas/org.mate.marco.gschema.xml
185 %{_desktopdir}/marco.desktop
186 %{_mandir}/man1/marco.1*
187 %{_mandir}/man1/marco-message.1*
189 # TODO: find better packages
190 %dir %{_datadir}/mate-control-center
191 %dir %{_datadir}/mate-control-center/keybindings
194 %defattr(644,root,root,755)
195 %attr(755,root,root) %{_libdir}/libmarco-private.so.*.*.*
196 %attr(755,root,root) %ghost %{_libdir}/libmarco-private.so.0
199 %defattr(644,root,root,755)
200 %attr(755,root,root) %{_bindir}/marco-theme-viewer
201 %attr(755,root,root) %{_bindir}/marco-window-demo
202 %attr(755,root,root) %{_libdir}/libmarco-private.so
203 %{_includedir}/marco-1
204 %{_pkgconfigdir}/libmarco-private.pc
205 %{_mandir}/man1/marco-theme-viewer.1*
206 %{_mandir}/man1/marco-window-demo.1*
209 %defattr(644,root,root,755)
210 %{_datadir}/themes/ClearlooksRe
211 %{_datadir}/themes/Dopple-Left
212 %{_datadir}/themes/Dopple
213 %{_datadir}/themes/DustBlue
214 %{_datadir}/themes/Spidey-Left
215 %{_datadir}/themes/Spidey
216 %{_datadir}/themes/Splint-Left
217 %{_datadir}/themes/Splint
218 %{_datadir}/themes/WinMe
219 %{_datadir}/themes/eOS